Nuget:谁设置了NuProjTasksPath [英] Nuget: Who sets NuProjTasksPath
问题描述
请检查文件 C:\Program Files(x86)\ MSBuild \ NuProj \ NuProj.targets。我的问题是谁设置了 $(NuProjTasksPath)?
谢谢
我想我终于明白了。 Nu.Projects.props有条目:
< NuProjTasksPath Condition =" '
(NuProjTasksPath)'==''">
(MSBuildThisFileDirectory)NuProj.Tasks.dll< / NuProjTasksPath>
https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-reserved-and-well-known-properties
本文档指出:
MSBuildThisFileDirectory
MSBuildThisFileFullPath 。
在路径中包含最后的反斜杠。
& MSBuildThisFileFullPath is:
MSBuildThisFileFullPath
包含正在运行的目标的项目或目标文件的绝对路径。
提示:您可以指定目标文件中相对于目标文件而不是相对于原始项目文件的相对路径。
然后我找到了关于发现什么是我的MSBuildThisFileFullPath
https://stackoverflow.com/questions/2111256/how-can-i-get-current-的信息directory-in-msbuild-script
这进一步指向我:
http://sedodream.com/2010/03/11/MSBuild40ReservedProperties .aspx
所以现在我完全知道它的设置和设置方式。它始终是我正在运行的当前目录路径。
问候
ananda
Please check the file C:\Program Files (x86)\MSBuild\NuProj\NuProj.targets. My question who and where is the $(NuProjTasksPath) is set?
Thanks
I think I finally figured it out. The Nu.Projects.props has the entry:
<NuProjTasksPath Condition=" '
(NuProjTasksPath)' == '' ">
(MSBuildThisFileDirectory)NuProj.Tasks.dll</NuProjTasksPath>https://docs.microsoft.com/en-us/visualstudio/msbuild/msbuild-reserved-and-well-known-properties
This document pointed out that:
MSBuildThisFileDirectory
The directory portion of MSBuildThisFileFullPath
.
Include the final backslash in the path.& MSBuildThisFileFullPath is:
MSBuildThisFileFullPath
The absolute path of the project or targets file that contains the target that is running.
Tip: You can specify a relative path in a targets file that's relative to the targets file and not relative to the original project file.Then I found information on discovering what is my MSBuildThisFileFullPath
https://stackoverflow.com/questions/2111256/how-can-i-get-current-directory-in-msbuild-script
Which further pointed me to:
http://sedodream.com/2010/03/11/MSBuild40ReservedProperties.aspx
So now I exactly know what it is set and how it gets set. It is always the current directory path where I am running.
regards
ananda
这篇关于Nuget:谁设置了NuProjTasksPath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!