When I do dotnet sln add {myProject.csproj}
for a .NET Core/Standard project, it adds it as project type (I think) {FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
instead of .NET Core's {9A19103F-16F7-4668-BE54-9A1E7A4F7556}
.
Hence, when I open the solution in Visual Studio, it complains and "upgrades" the csproj
to a .NET Framework csproj
, not a .NET Core one. I can manually edit the sln
but it's a chore.
Am I doing something wrong? Are there arguments I'm missing?