DNT: switch-to-projects: the project 'path/myproject.csproj' could not be loaded. Not a project...
A couple of months ago it worked.
Now I’m receiving this error:
The project ‘path/myproject.csproj’ could not be loaded: Not a project: path\myproject.csproj
I’m using DNT v1.3.1.0, installed via dotnet tool install -g dnt
Current workaround is to reinstall DNT using npm: npm i -g dotnettools
“myproject.csproj” is an ASP.NET MVC Visual Studio Project that is using .NET Framework 4.6.1
Here it is a snippet of my .csproj file
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
In my solution I have also other types of .csproj (class and library) that are correctly switched.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 16 (10 by maintainers)
@lucaritossa Thanks for the info. I’ll get a test environment put together and start working on reproducing the problem. I may not have time until the weekend because of work responsibilities. Hopefully that’s not too much of a problem because there’s a workaround.
I think
dotnet tool install -g dntinstalls DNT as global tool. Global tools only support .NET Core as runtime and maybe this is why loading full .NET Framework (4.6.1) projects cannot be loaded? The npm version also contains a full .net version.