@@ -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 >
@@ -256,7 +257,12 @@ This package is an internal implementation of the .NET Core SDK and is not meant
256257 </ItemGroup >
257258
258259 <WriteLinesToFile
259- File =" $(VersionFileIntermediateOutputPath)"
260+ File =" $(VersionTxtFileIntermediateOutputPath)"
261+ Lines =" @(VersionLines)"
262+ Overwrite =" true" />
263+
264+ <WriteLinesToFile
265+ File =" $(DotVersionFileIntermediateOutputPath)"
260266 Lines =" @(VersionLines)"
261267 Overwrite =" true" />
262268 </Target >
@@ -397,7 +403,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
397403
398404 <Target Name =" _ResolveSharedFrameworkContent" DependsOnTargets =" ResolveReferences;Crossgen" >
399405 <ItemGroup >
400- <SharedFxContent Include =" $(VersionFileIntermediateOutputPath )" />
406+ <SharedFxContent Include =" $(DotVersionFileIntermediateOutputPath )" />
401407 <SharedFxContent Include =" $(ProjectDepsFilePath)" />
402408 <SharedFxContent Include =" $(ProjectRuntimeConfigFilePath)" />
403409 <SharedFxContent Include =" @(ReferenceCopyLocalPaths)" Condition =" '%(Extension)' != '.pdb'" />
@@ -496,7 +502,7 @@ This package is an internal implementation of the .NET Core SDK and is not meant
496502 BeforeTargets =" _GetPackageFiles" >
497503
498504 <ItemGroup >
499- <None Include =" $(VersionFileIntermediateOutputPath )" Pack =" true" PackagePath =" ." />
505+ <None Include =" $(VersionTxtFileIntermediateOutputPath )" Pack =" true" PackagePath =" ." />
500506 </ItemGroup >
501507 </Target >
502508
0 commit comments