Skip to content

Commit

Permalink
Emit a warning when 'UseUwp' is set
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jul 3, 2024
1 parent d6e185e commit 9920f61
Show file tree
Hide file tree
Showing 15 changed files with 82 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 @@ -956,5 +956,9 @@ You may need to build the project on another operating system or architecture, o
<value>NETSDK1216: This project has a transitive dependency on the full Windows SDK projections (including Windows.UI.Xaml.* types), but does not specify the UseUwp property. That must be enabled to ensure that .NET types are projected and marshalled correctly for interop scenarios with these XAML types.</value>
<comment>{StrBegin="NETSDK1216: "}</comment>
</data>
<!-- The latest message added is WindowsSDKFullMissingUseUwpProperty. Please update this value with each PR to catch parallel PRs both adding a new message -->
<data name="UsingPreviewUseUwpFeature" xml:space="preserve">
<value>NETSDK1058: UseUwp and all associated functionality are currently experimental and not officially supported.</value>
<comment>{StrBegin="NETSDK1058: "}</comment>
</data>
<!-- The latest message added is UsingPreviewUseUwpFeature. 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 @@ -136,4 +136,16 @@ Copyright (c) .NET Foundation. All rights reserved.
<NetSdkError Condition="'@(_WindowsSDKFullTransitiveFrameworkReference)' != ''"
ResourceName="WindowsSDKFullMissingUseUwpProperty" />
</Target>

<!--
Emit a warning if 'UseUwp' is set.
NOTE: remove this target when 'UseUwp' becomes officially supported.
-->
<Target Name="_WarnForUseUwpPreviewFeatureEnabled"
AfterTargets="ResolvePackageAssets"
Condition=" '$(IncludeWindowsSDKRefFrameworkReferences)' == 'true'
and '$(UseUwp)' == 'true'">
<NETSdkWarning ResourceName="UsingPreviewUseUwpFeature" />
</Target>
</Project>

0 comments on commit 9920f61

Please sign in to comment.