Skip to content

Commit 362c559

Browse files
committed
Package dnx shim
1 parent afc85c7 commit 362c559

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/Layout/dnx/dnx.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<OptimizationPreference>Size</OptimizationPreference>
1111
<StackTraceSupport>false</StackTraceSupport>
1212
<_IsPublishing>true</_IsPublishing>
13+
14+
<!-- Don't include TargetFramework in output path to make using the result in the redist targets simpler -->
15+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
1316
</PropertyGroup>
1417

1518
<ItemGroup>

src/Layout/redist/redist.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<ProjectReference Include="..\..\Resolvers\Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver\Microsoft.NET.Sdk.WorkloadMSBuildSdkResolver.csproj" />
7070
<ProjectReference Include="$(RepoRoot)src\BuiltInTools\dotnet-watch\dotnet-watch.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" Private="false" />
7171
<ProjectReference Include="$(RepoRoot)src\BuiltInTools\dotnet-format\dotnet-format.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" Private="false" />
72+
<ProjectReference Include="..\dnx\dnx.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" Private="false" />
7273

7374
<ProjectReference Include="$(RepoRoot)template_feed\*\*.csproj" ReferenceOutputAssembly="false" SkipGetTargetFrameworkProperties="true" Private="false" />
7475
</ItemGroup>

src/Layout/redist/targets/GenerateInstallerLayout.targets

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,12 @@
6464
Overwrite="true" />
6565
</Target>
6666

67-
<Target Name="LayoutDnxScript">
67+
<Target Name="LayoutDnxShim">
6868
<PropertyGroup>
69-
<DnxScriptSource Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">dnx.cmd</DnxScriptSource>
70-
<DnxScriptSource Condition="!$([MSBuild]::IsOSPlatform('WINDOWS'))">dnx</DnxScriptSource>
69+
<DnxShimSource Condition="$([MSBuild]::IsOSPlatform('WINDOWS'))">$(ArtifactsBinDir)dnx\$(Configuration)\win-$(TargetArchitecture)\publish\dnx.exe</DnxShimSource>
70+
<DnxShimSource Condition="!$([MSBuild]::IsOSPlatform('WINDOWS'))">dnx</DnxShimSource>
7171
</PropertyGroup>
72-
<Copy SourceFiles="$(DnxScriptSource)" DestinationFolder="$(RedistInstallerLayoutPath)" />
72+
<Copy SourceFiles="$(DnxShimSource)" DestinationFolder="$(RedistInstallerLayoutPath)" />
7373

7474
<!-- Mark script as executable -->
7575
<Exec Command="chmod 755 &quot;$(RedistInstallerLayoutPath)/dnx&quot;" Condition="!$([MSBuild]::IsOSPlatform('Windows'))" />
@@ -92,7 +92,7 @@
9292
LayoutManifests;
9393
LayoutBaselineWorkloadSet;
9494
LayoutWorkloadUserLocalMarker;
95-
LayoutDnxScript;
95+
LayoutDnxShim;
9696
CrossgenLayout;
9797
ReplaceBundledRuntimePackFilesWithSymbolicLinks"
9898
AfterTargets="AfterBuild" />

0 commit comments

Comments
 (0)