Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore MSB4011 when running dotnet build

When I run dotnet build I get this warning many times:

C:\Program Files\dotnet\sdk\1.0.4\Microsoft.Common.CrossTargeting.targets(145,3):
warning MSB4011: "*.fsproj.proj-info.targets" cannot be imported again.
It was already imported at "Microsoft.Common.targets (127,3)".
This is most likely a build authoring error.
This subsequent import will be ignored.
[*.fsproj]

How can I prevent these warnings from displaying?

like image 510
Wallace Kelly Avatar asked Aug 11 '17 13:08

Wallace Kelly


1 Answers

Add /nowarn:msb4011 to the command line.

dotnet build /nowarn:msb4011
like image 193
Wallace Kelly Avatar answered Sep 18 '22 20:09

Wallace Kelly