Missing closure of project references leads to crash in GenerateDepsFile
See original GitHub issueRepro steps
- Make new projects with following P2P reference graph
- ConsoleApp (.NET Core) -> ClassLibrary1 (.NET Standard) -> ClassLibrary2 (.NET Standard)
- Add reference to nuget package in ClassLibrary2 (say Newtonsoft.Json)
- build
Expected result
- While transitive P2P refs are still not supported:
- Build warns about missing project reference, or fails with a clear error.
- When transitive P2P refs are supported (https://github.com/dotnet/roslyn-project-system/issues/199, https://github.com/dotnet/sdk/issues/200):
- Build succeeds and all dependencies are handled correctly in deps file.
Actual result
3>ConsoleApp -> C:\...\bin\Debug\netcoreapp1.0\ConsoleApp.dll
3>C:\...\Microsoft.NET.Sdk.targets(77,5): error MSB4018: The "GenerateDepsFile" task failed unexpectedly.
3>C:\...\Microsoft.NET.Sdk.targets(77,5): error MSB4018: System.Exception: Could not find valid a SingleProjectInfo for project 'C:\...\ClassLibrary2.csproj'
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:10 (4 by maintainers)
Top Results From Across the Web
c# - .NET Core project reference issues - "Cannot find ...
NET Framework)', the following error appears: "Cannot find project info for 'XXX.csproj'. This can indicate a missing project reference." Below ...
Read more >Doxygen Manual: Changelog
When upgrading the Doxyfile (using doxygen -u) the existing values of DOT_FONTNAME and DOT_FONTSIZE will be migrated. Refactoring and cleanup. Dependency ...
Read more >Xamarin
Our app is crashing when it's a release arm only build and is deployed on a x86_64 emulator (API 33 emulator). There are...
Read more >Recent changes
Recent changes. This page lists all modifications and evolutions done in PlantUML. V1.2023.10 (12 Jul, 2023). Exception error when adding note to timing ......
Read more >coNCePTuaL User's Guide
This document presents a simple, special-purpose language called coNCePTuaL. coN-. CePTuaL is intended for rapidly generating programs that measure the ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The error message here was improved. However since we are doing transitive P2Ps now we shouldn’t get into this situation. Closing this issue. @rocifier if you see a repro for the crash mentioned above please file a separate issue.
+1