MSBuild Ignore absent <TargetFrameworks> for every .csproj in .sln?

  Uncategorised

The project that I’ve cloned locally uses the following dependencies:

<TargetFrameworks>netstandard2.0;MonoAndroid10.0;Xamarin.Mac20;netcoreapp3.0;netcoreapp3.1;net40;net45;net46;net47;net48</TargetFrameworks>

I need to tell Visual Studio to ignore those frameworks and projects<->frameworks dependencies that aren’t installed in my system and build only existing ones without manually deleting them from the whole solution and every project in the solution.

Is there a way to do this?

Source: Visual Studio Questions

LEAVE A COMMENT