File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ " $( dirname " $0 " ) /dotnet" dnx " $@ "
Original file line number Diff line number Diff line change 1+ @ echo off
2+ " %~dp0 dotnet.exe" dnx %*
Original file line number Diff line number Diff line change 6464 Overwrite =" true" />
6565 </Target >
6666
67+ <Target Name =" LayoutDnxScript" >
68+ <PropertyGroup >
69+ <DnxScriptSource Condition =" $([MSBuild]::IsOSPlatform('WINDOWS'))" >dnx.cmd</DnxScriptSource >
70+ <DnxScriptSource Condition =" !$([MSBuild]::IsOSPlatform('WINDOWS'))" >dnx</DnxScriptSource >
71+ </PropertyGroup >
72+ <Copy SourceFiles =" $(DnxScriptSource)" DestinationFolder =" $(RedistInstallerLayoutPath)" />
73+
74+ <!-- Mark script as executable -->
75+ <Exec Command =" chmod 644 " $(RedistInstallerLayoutPath)/dnx" " Condition =" !$([MSBuild]::IsOSPlatform('Windows'))" />
76+ </Target >
77+
6778 <!-- Replace files from the runtime packs with symbolic links to the corresponding shared framework files (and hostfxr) to reduce the size of the runtime pack directories. -->
6879 <Target Name =" ReplaceBundledRuntimePackFilesWithSymbolicLinks" DependsOnTargets =" LayoutBundledComponents"
6980 Condition =" '$(BundleRuntimePacks)' == 'true' and !$([MSBuild]::IsOSPlatform('WINDOWS'))" >
8192 LayoutManifests;
8293 LayoutBaselineWorkloadSet;
8394 LayoutWorkloadUserLocalMarker;
95+ LayoutDnxScript;
8496 CrossgenLayout;
8597 ReplaceBundledRuntimePackFilesWithSymbolicLinks"
8698 AfterTargets =" AfterBuild" />
101113 DestinationFiles =" @(SdkOutputFile -> '$(IntermediateSdkInstallerOutputPath)sdk\$(Version)\%(RecursiveDir)%(Filename)%(Extension)')"
102114 UseHardLinksIfPossible =" true"
103115 SkipUnchangedFiles =" true" />
116+
117+ <!-- Copy dnx script to root dotnet folder (which will map to DOTNETHOME) -->
118+ <Copy SourceFiles =" dnx.cmd" DestinationFolder =" $(IntermediateSdkInstallerOutputPath)" />
119+
104120 </Target >
105121
106122</Project >
Original file line number Diff line number Diff line change 278278 DestinationFiles =" $(OutputPath)/%(BundledTools.Identity).runtimeconfig.json"
279279 SkipUnchangedFiles =" true" />
280280
281- <Delete Files =" $(OutputPath)/$(TargetName).deps.json;
282- $(OutputPath)/$(TargetName).runtimeconfig.json" />
283-
284281 <Delete Files =" $(OutputPath)/%(BundledToolProjects.Identity).dll;
285282 $(OutputPath)/%(BundledToolProjects.Identity).pdb" />
286283
You can’t perform that action at this time.
0 commit comments