Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.csproj properties for WinUI sample viewer #1544

Open
wants to merge 5 commits into
base: v.next
Choose a base branch
from

Conversation

williambohrmann3
Copy link
Collaborator

Follow up to #1543, adds properties to resolve build issues.

@@ -30,6 +30,8 @@
<DefineConstants>$(DefineConstants);MAUI</DefineConstants>
<RuntimeIdentifiers Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<RuntimeIdentifier Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows' AND '$(Platform)' == 'AnyCPU'">win10-x64</RuntimeIdentifier>
<WindowsSdkPackageVersion>10.0.19041.38</WindowsSdkPackageVersion>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
Copy link
Member

@dotMorten dotMorten Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add conditions to these: Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'"
I don't think AllowUnsafeBlocks is needed for maui is it?

williambohrmann3 and others added 2 commits December 9, 2024 17:21
….Samples.Maui.csproj.

Removed condition for WindowsAppSDK PackageVersion from Directory.Packages.props.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants