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 64
64
Overwrite =" true" />
65
65
</Target >
66
66
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
+
67
78
<!-- 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. -->
68
79
<Target Name =" ReplaceBundledRuntimePackFilesWithSymbolicLinks" DependsOnTargets =" LayoutBundledComponents"
69
80
Condition =" '$(BundleRuntimePacks)' == 'true' and !$([MSBuild]::IsOSPlatform('WINDOWS'))" >
81
92
LayoutManifests;
82
93
LayoutBaselineWorkloadSet;
83
94
LayoutWorkloadUserLocalMarker;
95
+ LayoutDnxScript;
84
96
CrossgenLayout;
85
97
ReplaceBundledRuntimePackFilesWithSymbolicLinks"
86
98
AfterTargets =" AfterBuild" />
101
113
DestinationFiles =" @(SdkOutputFile -> '$(IntermediateSdkInstallerOutputPath)sdk\$(Version)\%(RecursiveDir)%(Filename)%(Extension)')"
102
114
UseHardLinksIfPossible =" true"
103
115
SkipUnchangedFiles =" true" />
116
+
117
+ <!-- Copy dnx script to root dotnet folder (which will map to DOTNETHOME) -->
118
+ <Copy SourceFiles =" dnx.cmd" DestinationFolder =" $(IntermediateSdkInstallerOutputPath)" />
119
+
104
120
</Target >
105
121
106
122
</Project >
Original file line number Diff line number Diff line change 278
278
DestinationFiles =" $(OutputPath)/%(BundledTools.Identity).runtimeconfig.json"
279
279
SkipUnchangedFiles =" true" />
280
280
281
- <Delete Files =" $(OutputPath)/$(TargetName).deps.json;
282
- $(OutputPath)/$(TargetName).runtimeconfig.json" />
283
-
284
281
<Delete Files =" $(OutputPath)/%(BundledToolProjects.Identity).dll;
285
282
$(OutputPath)/%(BundledToolProjects.Identity).pdb" />
286
283
You can’t perform that action at this time.
0 commit comments