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

[BUG] Error when trying to package project with multiple TargetFrameworks #635

Open
DmitryBorodiy opened this issue Jun 23, 2024 · 2 comments
Labels
Needs-Triage Issue needs to be triaged by a member of the core team

Comments

@DmitryBorodiy
Copy link

Project
MSIX SDK

Describe the bug
Hello, community!
I have sample Avalonia application project with multiple target frameworks monikers.

<PropertyGroup>
  <OutputType>WinExe</OutputType>
  <TargetFrameworks>net8.0-windows10.0.19041.0;net8.0</TargetFrameworks>
  <ApplicationManifest>app.manifest</ApplicationManifest>
  <Nullable>disable</Nullable>
  <PlatformTargets>x86</PlatformTargets>
  <Platforms>x64;x86;</Platforms>
</PropertyGroup>

Expected behavior
The MSIX packaging project must support multiple target frameworks or prefer net8.0-windows target framework monikers.

Screenshots
image

Platform
.NET/Avalonia, Windows 11 build 22635

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue needs to be triaged by a member of the core team label Jun 23, 2024
@DmitryBorodiy
Copy link
Author

Maybe anyone knows how to fix this?

@LuKePicci
Copy link

We use a separate git branch for MSIX packaging in which TargetFrameworks is replaced by single TargetFramework in order for the build to succeed in the CI pipeline. Would be also great to fix this in VS by eventually respecting the target framework selected in the Debug dropdown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage Issue needs to be triaged by a member of the core team
Projects
None yet
Development

No branches or pull requests

2 participants