Skip to content

Commit 5c36d75

Browse files
authored
Remove the version.txt file from packages (#10692)
The version.txt file isn't used anymore. It isn't read by windowsdesktop, sdk or wpf. Though, it's showing up as a difference between the MSFT and the VMR build. Remove it to simplify the infrastructure and reduce the package assets.
1 parent b428cde commit 5c36d75

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

eng/WpfArcadeSdk/tools/Packaging.targets

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -406,33 +406,6 @@ $(PreparePackageAssetsDependsOn):
406406
</PropertyGroup>
407407
</Target>
408408

409-
<!-- Create version.txt containing latest commit ID -->
410-
<Target Name="GenerateVersionFileWithRepositoryCommit"
411-
Condition="'$(IsPackable)'=='true' and '$(CreateArchNeutralPackage)'=='true' and !Exists('$(ArtifactsPackagingDir)$(NormalizedPackageName)\version.txt')"
412-
BeforeTargets="CreateContentFolder"
413-
Outputs="$(ArtifactsPackagingDir)$(NormalizedPackageName)\version.txt">
414-
<!--
415-
Workaround
416-
Ensure that SourceRevisionId is obtained if it has not already been read in
417-
Reuse tasks from Microsoft.Build.Tasks.Git.targets
418-
-->
419-
<Microsoft.Build.Tasks.Git.LocateRepository Path="$(MSBuildProjectDirectory)" Condition="'$(SourceRevisionId)' == ''" >
420-
<Output TaskParameter="RevisionId" PropertyName="SourceRevisionId" />
421-
</Microsoft.Build.Tasks.Git.LocateRepository>
422-
<ItemGroup>
423-
<RepoCommitVersionFileLines Remove="@(RepoCommitVersionFileLines)" />
424-
<RepoCommitVersionFileLines Include="$(SourceRevisionId)" />
425-
</ItemGroup>
426-
427-
<PropertyGroup>
428-
<RepoCommitVersionFileDir>$(ArtifactsPackagingDir)$(NormalizedPackageName)\</RepoCommitVersionFileDir>
429-
<RepoCommitVersionFile>$(RepoCommitVersionFileDir)version.txt</RepoCommitVersionFile>
430-
</PropertyGroup>
431-
432-
<MakeDir Condition="!Exists('$(RepoCommitVersionFileDir)')" Directories="$(RepoCommitVersionFileDir)" />
433-
<WriteLinesToFile Lines="@(RepoCommitVersionFileLines)" File="$(RepoCommitVersionFile)"/>
434-
</Target>
435-
436409
<!-- Generate runtime.json for embedding in the arch-neutral package that uses the Bait & Switch technique -->
437410
<Target Name="GenerateRuntimeJson"
438411
Condition="'$(IsPackable)'=='true' and '$(CreateArchNeutralPackage)'=='true' and '$(PlatformIndependentPackage)'!='true'"

0 commit comments

Comments
 (0)