2016-04-19 6 views

答えて

11

dotnet/cli gitterチャネルで高速応答ができます。以下の変数を使用できます。

%publish:ProjectPath% 
%publish:Configuration% 
%publish:OutputPath% 
%publish:TargetFramework% 
%publish:FullTargetFramework% 
%publish:Runtime% 

Source

そしてここでは、プリ/ postcompileのためのものです:

%compile:TargetFramework% 
%compile:FullTargetFramework% 
%compile:Configuration% 
%compile:OutputFile% 
%compile:OutputDir% 
%compile:ResponseFile% 
%compile:RuntimeOutputDir% 
%compile:RuntimeIdentifier% 
%compile:CompilerExitCode%  // postcompile only 

Source

+2

これらAnywhereは...どこかに文書化する必要があります! 'project.json'はソースコードを見つけて分析できない限りブラックボックスです。 – Robula

+0

@BradRobinson私はこれらの変数の使い方を正確に理解していません。私はあなたの%compile:OutputPath%ではなく、 ''でOutputPathを表示することができます。 REAL OutputPathを表示する方法を知りたいので、表示すると、_。\ bin \ Debug \ net461 \ win7-x64_の代わりに_。\ bin_を取得します。 –

+1

@JérômeMével上記の変数は、あなたの 'project.json'ファイル。私はMSBuildから 'bin \ Debug \ net461 \ win7-x64'を解決する方法があるとは思わない。しかし、 'project.json'の'%compile:RuntimeOutputDir% 'を' D:\ ... \ \ bin \ Debug \ net461 \ win7-x64'に解決します – Robula

関連する問題