TransformOnBuild | Transform Text Templates On Build
kandi X-RAY | TransformOnBuild Summary
kandi X-RAY | TransformOnBuild Summary
![Icon] Transform Text Templates On Build.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of TransformOnBuild
TransformOnBuild Key Features
TransformOnBuild Examples and Code Snippets
Community Discussions
Trending Discussions on TransformOnBuild
QUESTION
I recently used the new preview .NET Upgrade Assistant to migrate a .NET Framework 4.8 WinForms project to .NET 5. I've worked through the code to resolve incompatibilities, but I'm running into an error I can't figure out when I try to build the app.
...ANSWER
Answered 2021-Mar-12 at 19:32You are using a wrong SDK.
The right SDK for Windows Forms Projects is Microsoft.NET.Sdk.WindowsDesktop
; however, starting in .NET 5.0, WinForms projects should specify the Microsoft.NET.Sdk
instead of Microsoft.NET.Sdk.WindowsDesktop
like this:
- Set the sdk to
- Set the target framework to
net5.0-windows
- Set the
true
It also works using ; but, according to documentations
Setting
TargetFramework
to net5.0-windows
and setting UseWindowsForms
to true
will automatically import the Windows desktop SDK. If your project targets .NET 5.0 or later and specifies the Microsoft.NET.Sdk.WindowsDesktop SDK, you'll get build warning NETSDK1137.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install TransformOnBuild
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page