diff options
author | Gaurav Khanna <gkhanna@microsoft.com> | 2015-12-15 23:45:12 +0300 |
---|---|---|
committer | Gaurav Khanna <gkhanna@microsoft.com> | 2015-12-15 23:45:12 +0300 |
commit | d01f2369b70ed937561141a779f1100663e0912b (patch) | |
tree | 8a1f54149b43c53792b0ad4490ed181bcab55e54 /src/packaging | |
parent | a55a1d6136bccca166efc4f7a10bba7e49438e03 (diff) |
Specify the exact runtime for both restore and publish operations
Diffstat (limited to 'src/packaging')
-rw-r--r-- | src/packaging/packages.targets | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/packaging/packages.targets b/src/packaging/packages.targets index 4d8ee1f37..f7e63605d 100644 --- a/src/packaging/packages.targets +++ b/src/packaging/packages.targets @@ -235,8 +235,8 @@ <MakeDir Directories="$(Stage0ProjectDir)" Condition="!Exists('$(Stage0ProjectDir)')" /> <WriteLinesToFile File="$(Stage0ProjectJsonFile)" Lines="$(Stage0ProjectJsonLines)" Overwrite="true" /> <WriteLinesToFile File="$(Stage0ProjectDir)/Program.cs" Lines="class Program { public static void Main() { } }" Overwrite="true" /> - <Exec Command=""$(DnuToolPath)" restore -s "$(ProductPackageDir)" $(DnuRestoreSource) "$(Stage0ProjectDir)"" /> - <Exec Command=""$(DnuToolPath)" publish "$(Stage0ProjectDir)" -o "$(Stage0PublishDir)" -f "dnxcore50" -r "$(NuPkgRid)"" /> + <Exec Command=""$(DnuToolPath)" restore -s "$(ProductPackageDir)" $(DnuRestoreSource) "$(Stage0ProjectDir)" --runtime "$(NuPkgRid)"" /> + <Exec Command=""$(DnuToolPath)" publish "$(Stage0ProjectDir)" -o "$(Stage0PublishDir)" -f "dnxcore50" --runtime "$(NuPkgRid)"" /> <!-- =================== self-host ================= --> <!-- Use stage0 ilc.exe/corerun to compile stage1 runtime libs --> @@ -281,8 +281,8 @@ <MakeDir Directories="$(Stage1ProjectDir)" Condition="!Exists('$(Stage1ProjectDir)')" /> <WriteLinesToFile File="$(Stage1ProjectJsonFile)" Lines="$(Stage1ProjectJsonLines)" Overwrite="true" /> <WriteLinesToFile File="$(Stage1ProjectDir)/Program.cs" Lines="class Program { public static void Main() { } }" Overwrite="true" /> - <Exec Command=""$(DnuToolPath)" restore -s "$(ProductPackageDir)" $(DnuRestoreSource) "$(Stage1ProjectDir)"" /> - <Exec Command=""$(DnuToolPath)" publish "$(Stage1ProjectDir)" -o "$(Stage1PublishDir)" -f "dnxcore50" -r "$(NuPkgRid)"" /> + <Exec Command=""$(DnuToolPath)" restore -s "$(ProductPackageDir)" $(DnuRestoreSource) "$(Stage1ProjectDir)" --runtime "$(NuPkgRid)"" /> + <Exec Command=""$(DnuToolPath)" publish "$(Stage1ProjectDir)" -o "$(Stage1PublishDir)" -f "dnxcore50" --runtime "$(NuPkgRid)"" /> </Target> </Project> |