Skip to content

Commit 3cb9b1b

Browse files
committed
Add .version file to shared framework zip
1 parent c836a3a commit 3cb9b1b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/Framework/src/Microsoft.AspNetCore.App.Runtime.csproj

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ This package is an internal implementation of the .NET Core SDK and is not meant
6767
<!-- There is no way to suppress the .dev.runtimeconfig.json generation. -->
6868
<ProjectRuntimeConfigDevFilePath>$(IntermediateOutputPath)ignoreme.dev.runtimeconfig.json</ProjectRuntimeConfigDevFilePath>
6969

70-
<VersionFileIntermediateOutputPath>$(IntermediateOutputPath)$(SharedFxName).versions.txt</VersionFileIntermediateOutputPath>
70+
<VersionTxtFileIntermediateOutputPath>$(IntermediateOutputPath)$(SharedFxName).versions.txt</VersionTxtFileIntermediateOutputPath>
71+
<DotVersionFileIntermediateOutputPath>$(IntermediateOutputPath).version</DotVersionFileIntermediateOutputPath>
7172

7273
<!-- The project representing the shared framework doesn't produce a .NET assembly or symbols. -->
7374
<DebugType>none</DebugType>
@@ -259,7 +260,12 @@ This package is an internal implementation of the .NET Core SDK and is not meant
259260
</ItemGroup>
260261

261262
<WriteLinesToFile
262-
File="$(VersionFileIntermediateOutputPath)"
263+
File="$(VersionTxtFileIntermediateOutputPath)"
264+
Lines="@(VersionLines)"
265+
Overwrite="true" />
266+
267+
<WriteLinesToFile
268+
File="$(DotVersionFileIntermediateOutputPath)"
263269
Lines="@(VersionLines)"
264270
Overwrite="true" />
265271
</Target>
@@ -402,7 +408,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
402408

403409
<Target Name="_ResolveSharedFrameworkContent" DependsOnTargets="ResolveReferences;Crossgen">
404410
<ItemGroup>
405-
<SharedFxContent Include="$(VersionFileIntermediateOutputPath)" />
411+
<SharedFxContent Include="$(DotVersionFileIntermediateOutputPath)" />
406412
<SharedFxContent Include="$(ProjectDepsFilePath)" />
407413
<SharedFxContent Include="$(ProjectRuntimeConfigFilePath)" />
408414
<SharedFxContent Include="@(ReferenceCopyLocalPaths)" Condition="'%(Extension)' != '.pdb'" />
@@ -501,7 +507,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
501507
BeforeTargets="_GetPackageFiles">
502508

503509
<ItemGroup>
504-
<None Include="$(VersionFileIntermediateOutputPath)" Pack="true" PackagePath="." />
510+
<None Include="$(VersionTxtFileIntermediateOutputPath)" Pack="true" PackagePath="." />
505511
</ItemGroup>
506512
</Target>
507513

0 commit comments

Comments
 (0)