Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Doesn't Work and Breaks Other Projects #646

Open
zuidell opened this issue Dec 3, 2023 · 1 comment
Open

Template Doesn't Work and Breaks Other Projects #646

zuidell opened this issue Dec 3, 2023 · 1 comment

Comments

@zuidell
Copy link

zuidell commented Dec 3, 2023

  • .NET SDK Version: 8.0.100 (mac)

Steps to Reproduce:

  1. dotnet new install Ardalis.CleanArchitecture.Template

  2. dotnet new clean-arch -o 2023-12-example

  3. note project references include /_2023 instead of /2023.

  4. Replace all references to correct, and there were one or two others, repeat until project loads

  5. Build results in errors

  6. Go to any existing project

  7. dotnet build

  8. observe NuGet Error NU1008

  9. open project/obj/project.assets.json

  10. observe 9 Ardalis references which are not part of that project.

  11. dotnet new uninstall Ardalis.CleanArchitecture.Template

  12. mkdir fresh

  13. cd fresh

  14. dotnet new webapi

  15. dotnet build

  16. observe NuGet Error NU1008

@zuidell
Copy link
Author

zuidell commented Dec 3, 2023

If you find this problem, you can search your disk for Directory.Packages.props and Directory.Build.props. Delete those and the standard templates will start working again. For some reason this template dumped them in my root code directory, which impacted all projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant