5
私は<p>project.jsonで指定された公開後スクリプトのこのフォルダの場所を特定することはできますかファイル?</p>
dotnet publish
で私のプロジェクトを公開すると、それはフォルダ
bin/Debug/dnxcore50/osx.10.11-x64/publish
(あるいはリリース相当)に出力
を公開DNU/DOTNETの出力フォルダを決定する方法私は<p>project.jsonで指定された公開後スクリプトのこのフォルダの場所を特定することはできますかファイル?</p>
dotnet publish
で私のプロジェクトを公開すると、それはフォルダ
bin/Debug/dnxcore50/osx.10.11-x64/publish
(あるいはリリース相当)に出力
を公開DNU/DOTNETの出力フォルダを決定する方法dotnet/cli gitterチャネルで高速応答ができます。以下の変数を使用できます。
%publish:ProjectPath%
%publish:Configuration%
%publish:OutputPath%
%publish:TargetFramework%
%publish:FullTargetFramework%
%publish:Runtime%
そしてここでは、プリ/ postcompileのためのものです:
%compile:TargetFramework%
%compile:FullTargetFramework%
%compile:Configuration%
%compile:OutputFile%
%compile:OutputDir%
%compile:ResponseFile%
%compile:RuntimeOutputDir%
%compile:RuntimeIdentifier%
%compile:CompilerExitCode% // postcompile only
これらAnywhereは...どこかに文書化する必要があります! 'project.json'はソースコードを見つけて分析できない限りブラックボックスです。 – Robula
@BradRobinson私はこれらの変数の使い方を正確に理解していません。私はあなたの%compile:OutputPath%ではなく、 ' 'でOutputPathを表示することができます。 REAL OutputPathを表示する方法を知りたいので、表示すると、_。\ bin \ Debug \ net461 \ win7-x64_の代わりに_。\ bin_を取得します。 –
@JérômeMével上記の変数は、あなたの 'project.json'ファイル。私はMSBuildから 'bin \ Debug \ net461 \ win7-x64'を解決する方法があるとは思わない。しかし、 'project.json'の'%compile:RuntimeOutputDir% 'を' D:\ ... \ \ bin \ Debug \ net461 \ win7-x64'に解決します –
Robula