当我发布我的项目时
dotnet publish
它输出到一个文件夹
bin/Debug/dnxcore50/osx.10.11-x64/publish
(或者也许是 Release 等价物)
是否可以为 project.json 文件中指定的发布后脚本确定此文件夹位置?
当我发布我的项目时
dotnet publish
它输出到一个文件夹
bin/Debug/dnxcore50/osx.10.11-x64/publish
(或者也许是 Release 等价物)
是否可以为 project.json 文件中指定的发布后脚本确定此文件夹位置?
感谢 dotnet/cli gitter 频道的快速响应,您可以。以下变量可用:
%publish:ProjectPath%
%publish:Configuration%
%publish:OutputPath%
%publish:TargetFramework%
%publish:FullTargetFramework%
%publish:Runtime%
以下是预编译/后编译的:
%compile:TargetFramework%
%compile:FullTargetFramework%
%compile:Configuration%
%compile:OutputFile%
%compile:OutputDir%
%compile:ResponseFile%
%compile:RuntimeOutputDir%
%compile:RuntimeIdentifier%
%compile:CompilerExitCode% // postcompile only