File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
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 65
65
</Target >
66
66
67
67
<Target Name =" LayoutDnxShim" >
68
- <PropertyGroup >
69
- <DnxShimSource Condition =" $([MSBuild]::IsOSPlatform('WINDOWS'))" >$(ArtifactsBinDir)dnx\$(Configuration)\win-$(TargetArchitecture)\publish\dnx.exe</DnxShimSource >
70
- <DnxShimSource Condition =" !$([MSBuild]::IsOSPlatform('WINDOWS'))" >dnx</DnxShimSource >
71
- </PropertyGroup >
72
- <Copy SourceFiles =" $(DnxShimSource)" DestinationFolder =" $(RedistInstallerLayoutPath)" />
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'))" />
You can’t perform that action at this time.
0 commit comments