在我的 csproj 文件中,我有不同的构建路径。
<BaseIntermediateOutputPath>C:\Temp\Build\MyProject</BaseIntermediateOutputPath>
在预构建和构建后事件中,我可以访问某些宏变量。
$(OutDir)
$(ProjectName)
$(ProjectPath)
$(SolutionDir)
我可以在我的 csproj 中使用这些变量吗?
例如,我尝试了以下但没有成功。
<BaseIntermediateOutputPath>C:\Temp\Build\$(ProjectName)</BaseIntermediateOutputPath>