Skip to content

Commit

Permalink
Warn when enabling Windows.UI.Xaml profile for Windows SDK projections (
Browse files Browse the repository at this point in the history
  • Loading branch information
marcpopMSFT committed Sep 5, 2024
2 parents 99f2c9a + 8016bcb commit 5dbd586
Show file tree
Hide file tree
Showing 15 changed files with 78 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Tasks/Common/Resources/Strings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -948,5 +948,9 @@ You may need to build the project on another operating system or architecture, o
<value>NETSDK1213: Targeting .NET 8.0 or higher in Visual Studio 2022 17.7 is not supported.</value>
<comment>{StrBegin="NETSDK1213: "}</comment>
</data>
<!-- The latest message added is Net8NotCompatibleWithDev177. Please update this value with each PR to catch parallel PRs both adding a new message -->
<data name="UsingUnsupportedUseUwpFeature" xml:space="preserve">
<value>NETSDK1214: UseUwp and all associated functionality require the .NET 9 SDK and are not supported by older .NET SDKs.</value>
<comment>{StrBegin="NETSDK1214: "}</comment>
</data>
<!-- The latest message added is UsingUnsupportedUseUwpFeature. Please update this value with each PR to catch parallel PRs both adding a new message -->
</root>
5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.ko.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.pl.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.pt-BR.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.ru.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.tr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.zh-Hans.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/Tasks/Common/Resources/xlf/Strings.zh-Hant.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,12 @@ Copyright (c) .NET Foundation. All rights reserved.
</ItemGroup>

</Target>

<!-- Emit a warning if 'UseUwp' is set (it is only supported by the .NET 9 SDK) -->
<Target Name="_WarnForUnsupportedUseUwpFeatureEnabled"
AfterTargets="ResolvePackageAssets"
Condition=" '$(IncludeWindowsSDKRefFrameworkReferences)' == 'true'
and '$(UseUwp)' == 'true'">
<NETSdkWarning ResourceName="UsingUnsupportedUseUwpFeature" />
</Target>
</Project>

0 comments on commit 5dbd586

Please sign in to comment.