Closed Daniel-Svensson closed 3 years ago
I also get this with VS2019 16.8.2. Any idea when this gets merged and released to nuget?
After setting ExtrasUseWindowsDesktopApp
to false
the workaround no longer works (Page elements does not work correct on net framework and probably more issues)
I do not know when I will get the time to look into this further so I am considering to close/abandon this PR. I do however think it might be a good start for someone to continue on.
A quite simple solution that should work would be to use _ExtrasHasNet5OrGreaterSDK
instead and make add a condition '$(_ExtrasHasNet5OrGreaterSDK)' != 'true'
to the following 2 imports
$(MicrosoftWindowsDesktopSdkPath)\Microsoft.NET.Sdk.WindowsDesktop.props
and $(MicrosoftWindowsDesktopSdkPath)\Microsoft.NET.Sdk.WindowsDesktop.targets
Closing as fixed in #251
Closing as fixed in #251
Don't include Microsoft.NET.Sdk.WindowsDesktop.props when using .net 5.0 SDK because 5.0 SDK already includes it. This prevents MSB4011 build warnings which can lead to nuget package restore errors preventing builds in CI environments
The fix should resolve the following build warnings