Skip to content

Commit

Permalink
Add PRIResource build action to WPF projects. (#2327)
Browse files Browse the repository at this point in the history
* Add PRIResource build action to WPF projects.

* Addressed comment.
  • Loading branch information
rohanp-msft authored Mar 30, 2022
1 parent 4b65d86 commit 66841c2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dev/MRTCore/packaging/MrtCore.PriGen.targets
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
<DefaultLanguage Condition="'$(DefaultLanguage)' == ''">en-US</DefaultLanguage>
</PropertyGroup>

<!--
PRIResource is not by default in the list of Build Actions for WPF apps. So add it!
If we don't add it, our attempt to by default include RESW files in PRIResource will
fail (VS will inject MSBuild code in the project file to undo that include). We don't
restrict this to WPF projects because there is no harm in including the item in other
project types.
-->
<ItemGroup>
<AvailableItemName Include="PRIResource"/>
</ItemGroup>

<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
Expand Down

0 comments on commit 66841c2

Please sign in to comment.