运行 dotnet build 时如何忽略 MSB4011

How to ignore MSB4011 when running dotnet build

当我 运行 dotnet build 我多次收到此警告:

C:\Program Files\dotnet\sdk.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]

如何防止显示这些警告?

/nowarn:msb4011添加到命令行。

dotnet build /nowarn:msb4011