ASP.NET Core Web-API template generated does not include "Web.AcceptanceTests" #1242
lsantos2000
started this conversation in
General
Replies: 1 comment
-
Also, when I run the project, I see there is no connection to db and/or data, so I try: PS C:\source\MyTestCleanArchProject\src\Web> dotnet ef database update A simple "dotnet add package Microsoft.EntityFrameworkCore.Design" fixed it (perhaps add it to the generated code and/or README?) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Excellent work, thanks.
Just a minor issue, which I resolved locally, but should be taken into account.
Created ASP.NET Core Web API-only solution: dotnet new ca-sln -cf None -o MyTest
Template generated does not include this project "Web.AcceptanceTests", thus clean or build fails
Build started 2024-10-12 11:58:12 AM.
1>Project "C:\source\MyTestCleanArchProject\MyTestCleanArchProject.sln" on node 1 (Clean target(s)).
1>ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
1>C:\source\MyTestCleanArchProject\MyTestCleanArchProject.sln.metaproj : error MSB3202: The project file "C:\source\MyTestCleanArchProject\tests\Web.AcceptanceTests\Web.AcceptanceTests.cspro
j" was not found. [C:\source\MyTestCleanArchProject\MyTestCleanArchProject.sln]
I .sln file I removed all references to {21334974-6B07-47BB-B664-AC62FE58C12B} and then it worked.
e.g.
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Web.AcceptanceTests", "tests\Web.AcceptanceTests\Web.AcceptanceTests.csproj", "{21334974-6B07-47BB-B664-AC62FE58C12B}"
EndProject
Beta Was this translation helpful? Give feedback.
All reactions