Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NuGet.exe(命令行)(在 中NuGetToolsPath)的当前值为$(SolutionDir)\.nuget\NuGet.exe
NuGetToolsPath
$(SolutionDir)\.nuget\NuGet.exe
我想将此值修改为%USERPROFILE%\AppData\Roaming\NuGet\NuGet.Config
%USERPROFILE%\AppData\Roaming\NuGet\NuGet.Config
问题是,如何在中使用 windows 变量Nuget.targets
Nuget.targets
我找到了答案:)
只需使用$(USERPROFILE)
$(USERPROFILE)
感兴趣的人可以点击链接:http: //msdn.microsoft.com/en-us/library/ms171459.aspx