Search code examples
f#.net-coredotnet-cli

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?


Solution

  • Add /nowarn:msb4011 to the command line.

    dotnet build /nowarn:msb4011