Skip to content

Commit

Permalink
Remove workaround for VersionInfo.cs inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
bpulliam committed Sep 19, 2023
1 parent 46137e8 commit c1776be
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions WinUIGallery/WinUIGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -248,18 +248,7 @@
</ItemGroup>
<Import Project="ContentIncludes.props" />

<!-- Workaround to ensure WindowsAppSDK-VersionInfo.cs is included in project exactly once, before any compilation -->
<PropertyGroup>
<ExplicitlyIncludeVersionInfo Condition="'$(WindowsAppSdkSelfContained)'=='true' or '$(SingleProject)'!='true'">true</ExplicitlyIncludeVersionInfo>
</PropertyGroup>
<PropertyGroup Condition="'$(ExplicitlyIncludeVersionInfo)'!='true'">
<CoreCompileDependsOn Condition="'$(Packaged)'=='true'">$(CoreCompileDependsOn);GenerateDeploymentManagerCS</CoreCompileDependsOn>
<CoreCompileDependsOn Condition="'$(Packaged)'!='true'">$(CoreCompileDependsOn);GenerateBootstrapCS</CoreCompileDependsOn>
</PropertyGroup>
<ItemGroup>
<Compile Condition="'$(ExplicitlyIncludeVersionInfo)'=='true'" Include="$(MicrosoftWindowsAppSDKPackageDir)include\WindowsAppSDK-VersionInfo.cs" />
</ItemGroup>
<!-- When WindowsAppSdkIncludeVersionInfo supported, above workaround can be replaced with this: -->
<!-- Ensure WindowsAppSDK-VersionInfo.cs is included in project exactly once, before any compilation -->
<PropertyGroup>
<WindowsAppSdkIncludeVersionInfo>true</WindowsAppSdkIncludeVersionInfo>
</PropertyGroup>
Expand Down

0 comments on commit c1776be

Please sign in to comment.