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

标签 f# .net-core dotnet-cli

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

相关文章:

f# - 是否有预先存在的函数将元组作为参数传递?

linux - F# on Mono (2.11) 的尾调用优化的当前状态是什么?

c# - 将 HTML 转换为 PDF 发票

caching - 创建 ASP.NET Core SQL 缓存表

.net - 确定 nuget 使用哪个 nuget.config 文件

f# - "^"在类型前面时是什么意思?

.net-core - Serilog 命名连接字符串

c# - .net core类库dll与文件夹名称相同

.net - 找不到库 hostpolicy.dll

xamarin.forms - F# 中的 DependencyAttribute 类