【发布时间】:2018-03-06 04:03:59
【问题描述】:
我将我的 nuget 更新到 4.3,从那时起,当我的构建系统尝试恢复 nuget 包时总是出现错误
我使用的是 VS2017,版本 15.3.5,并安装了 wixtoolset
"C:\NuGet\NuGet.exe" restore "C:\...\....sln" -ConfigFile "C:\....\NuGet.config" -NoCache -NonInteractive -Verbosity detailed
NuGet Version: 4.3.0.4406
MSBuild auto-detection: using msbuild version '15.3.409.57025' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
C:\... \Setup\Setup.wixproj : error MSB4057: The target "_IsProjectRestoreSupported" does not exist in the project.
【问题讨论】:
-
这个问题是只出现在 tfs build 上还是在本地通过 VS/Msbuild 出现?
-
如果我在命令行上运行命令,即使我在 VS 上运行,它也会在本地发生。我正在使用 XAML 构建
-
如果是的话,好像和TFS端没有关系,建议你去掉TFS标签,加Nuget标签,这样可以获得更准确的关注。
-
好的,谢谢您的建议
-
VS中是否安装了NuGet包管理器? (签入 vs 安装程序 > 修改 > 单个组件)。如果没有,您可以共享该项目的 wixproj 文件和 packages.config 吗?
标签: .net visual-studio msbuild wix nuget