- Notifications
You must be signed in to change notification settings - Fork1.4k
Get build errors if a solution is missing references#10780
-
I need some advice. We have a monorepo with many .csproj files and solutions. Long story short, both scenarios involve the \bin\ and \obj\ folders being wiped from all projects. If I build a solution with MSBuild, it builds fine: However, when I build the same solution in Visual Studio 2022, I get the following error: This error indicates that the .csproj file is missing from the solution, and someone needs to add the missing project. We would like to have a way to be alerted when a project is missing from a solution. How would one go about making this happen? My initial thought was to add some arguments to MSBuild that would cause it to fail if a solution is missing a reference, but I haven't been able to make MSBuild produce a build error in this case. Any help would be appreciated. |
BetaWas this translation helpful?Give feedback.