Vstest.console.exe 使用了不正确的 nuget 路径 - 如何设置 nuget 路径

问题描述

当我执行 Vstest.console.exe 时,它​​会自动查找路径中的 nuget 文件C:\Windows\System32\config\systemprofile\.nuget\packages。如果 nuget 包不在此处,则测试失败,说明找不到该包。

在同一个 Jenkins 构建服务器上,nugets 实际上恢复到 C:\Windows\SysWOW64\config\systemprofile\.nuget\packages

进程不使用nuget.exe,它使用dotnet restore

我尝试了各种选择,例如未成功说明平台 (vstest.console.exe [assembly] /Platform:x64)。

如何指明 vstest.console.exe 的正确 nuget 路径?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)