NoWarn applies to compilation warnings generated by Csc and Vbc .
MSB warnings * are the main warnings of MSBuild. To suppress the warning MSB3644, skip the explicit TargetFrameworkMoniker :
msbuild your.csproj /t:Rebuild /p:TargetFrameworkMoniker=".NETFramework,Version=v4.0"
A list of possible inputs can be found here .
v1.1.4322 v2.0.50727 Client v4.0 v4.0.30319 .NET Framework, Version=v4.0, Profile=Client .NET Framework, Version=v4.0 .NET Framework, Version=v4.0.1, Profile=Client .NET Framework, Version=v4.0.1 .NET Framework, Version=v4.0.2, Profile=Client .NET Framework, Version=v4.0.2 .NET Framework, Version=v4.0.3, Profile=Client .NET Framework, Version=v4.0.3 .NET Framework, Version=v4.5
MSBuild 4.5 has a new flag, IgnoreVersionForFrameworkReferences , which can come in handy in these warnings.
Kmoraz
source share