gpt4 book ai didi

f# - 运行 dotnet build 时如何忽略 MSB4011

转载 作者:行者123 更新时间:2023-12-01 05:46:49 25 4
gpt4 key购买 nike

当我跑 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com