File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change
1
+ # dnx.ps1
2
+ # PowerShell script to launch dotnet.exe with 'dnx' and all passed arguments
3
+ $scriptDir = Split-Path - Parent $MyInvocation.MyCommand.Definition
4
+ $dotnet = Join-Path $scriptDir ' dotnet.exe'
5
+ & $dotnet dnx @Args
6
+ exit $LASTEXITCODE
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)" />
67
+ <Target Name =" LayoutDnxShim" >
68
+ <ItemGroup >
69
+ <DnxShimSource Condition =" $([MSBuild]::IsOSPlatform('Windows'))" Include =" dnx.cmd" />
70
+ <DnxShimSource Condition =" $([MSBuild]::IsOSPlatform('Windows'))" Include =" dnx.ps1" />
71
+ <DnxShimSource Condition =" !$([MSBuild]::IsOSPlatform('WINDOWS'))" Include =" dnx" />
72
+ </ItemGroup >
73
+ <Copy SourceFiles =" @(DnxShimSource)" DestinationFolder =" $(RedistInstallerLayoutPath)" />
73
74
74
75
<!-- Mark script as executable -->
75
76
<Exec Command =" chmod 755 " $(RedistInstallerLayoutPath)/dnx" " Condition =" !$([MSBuild]::IsOSPlatform('Windows'))" />
92
93
LayoutManifests;
93
94
LayoutBaselineWorkloadSet;
94
95
LayoutWorkloadUserLocalMarker;
95
- LayoutDnxScript ;
96
+ LayoutDnxShim ;
96
97
CrossgenLayout;
97
98
ReplaceBundledRuntimePackFilesWithSymbolicLinks"
98
99
AfterTargets =" AfterBuild" />
115
116
SkipUnchangedFiles =" true" />
116
117
117
118
<!-- Copy dnx script to root dotnet folder (which will map to DOTNETHOME) -->
118
- <Copy SourceFiles =" dnx.cmd " DestinationFolder =" $(IntermediateSdkInstallerOutputPath)" />
119
+ <Copy SourceFiles =" @(DnxShimSource) " DestinationFolder =" $(IntermediateSdkInstallerOutputPath)" />
119
120
120
121
</Target >
121
122
You can’t perform that action at this time.
0 commit comments