DNT icon indicating copy to clipboard operation
DNT copied to clipboard

switch-to-projects with MSIX: Unable to find project information for MyNugetProject.csproj

Open tripleacoder opened this issue 2 years ago • 1 comments

I have a solution MyApp which also contains an installer for MSIX.

When I use switch-to-projects, I get:

NU1105 Unable to find project information for 'C:\Users\lpedersen\source\repos\MyNugetSolution\MyNugetProject.csproj'. If you are using Visual Studio, this may be because the project is unloaded or not part of the current solution so run a restore from the command-line. Otherwise, the project file may be invalid or missing targets required for restore. MyApp.Installer C:\Users\lpedersen\source\repos\MyApp\MyApp.Installer\MyApp.Installer.wapproj 1

The installer is complaining about the project being outside the solution it seems.

I can build the solution and debug it. The.csproj file has replaced the Nuget reference with a ProjectReference. However, the reference is adorned with a yellow triangle. And when I try stepping into the Nuget project, it is using outdated code from SourceLink.

Is the tool compatible with MSIX?

tripleacoder avatar Oct 11 '23 11:10 tripleacoder

Never mind. It worked when a dialog appeared in Visual Studio and I clicked on "Reload project".

tripleacoder avatar Oct 11 '23 11:10 tripleacoder