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

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]

如何防止显示这些警告?

最佳答案

/nowarn:msb4011 添加到命令行。

dotnet build /nowarn:msb4011

关于f# - 运行 dotnet build 时如何忽略 MSB4011,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45636848/

10-11 06:54