Closed easly1989 closed 3 years ago
I see 2 issues:
VS 2019 Preview
windows-latest
runner uses VS 2019 16.8.This is why it works locally for you, but not on GitHub Actions build
<TargetFramework>net5.0-windows7.0</TargetFramework>
As far as a solution goes, I'm not exactly sure how you can use a UWP packaging project for a Windows 7 TFM, I know MSIX works downlevel via a special package manager install. Try setting the WPF project's TFM to
<TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
Maybe try multiple TFMS
<TargetFrameworks>net5.0-windows10.0.19041.0;net5.0-windows7.0</TargetFrameworks>
Check out my working builds here
WPF project settings https://github.com/LanceMcCarthy/MediaFileManager/blob/main/src/MediaFileManager/MediaFileManager.Desktop/MediaFileManager.Desktop.csproj#L4
Workflows https://github.com/LanceMcCarthy/MediaFileManager/tree/main/.github/workflows
In the project the targetframework it is set to
I'll try all your suggestions and let you know! Thank you
Oh! Maybe windows7.0 was defaulted by the SDK. Try setting it to just net5.0-windows10.0.19041.0
It solved my problem. Thank you, closing this
Hello, I'm trying to setup a Continuous Integration action, based on the ci.yaml provided in this repository. I'm using net5 for my Wpf application, and visual studio 2019 preview. Locally I'm able to build and deploy without problems, but on the github action I receive this error
D:\a\weekly_diet_organizer\weekly_diet_organizer\DietOrganizer.Wap\DietOrganizer.Wap.wapproj : error NU1201: Project DietOrganizer is not compatible with uap10.0.16299 (UAP,Version=v10.0.16299). Project DietOrganizer supports: net5.0-windows7.0 (.NETCoreApp,Version=v5.0) [D:\a\weekly_diet_organizer\weekly_diet_organizer\DietOrganizer.sln]
this is my workflow file ` name: ci
Can someone help me? Is there something I can do to make it work?
Thank you in advance