Hi,PierreChatelier
I noticed after updating a .NET Core 3.1 app to .NET 5.0, the default build output subfolder changes from "netcoreapp3.1" to "net5.0-windows".
And In your code is <TargetFramework>net5.0-windows7.0</TargetFramework>
You can try to check this link, hope this can help you:
Best Regards,
Jerry Cai
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.