5

当我发布我的项目时

dotnet publish

它输出到一个文件夹

bin/Debug/dnxcore50/osx.10.11-x64/publish

(或者也许是 Release 等价物)

是否可以为 project.json 文件中指定的发布后脚本确定此文件夹位置?

4

1 回答 1

12

感谢 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

资源

于 2016-04-19T23:06:59.617 回答