I am working on a .NET Framework 4.8 solution with 20-ish projects (among others WPF). We were discussing if we should convert our projects to SDK style now to get the new and improved project format.
Is the new SDK style the recommended approach for new .NET Framework projects? Or is it mostly used as a step on the way to converting to Core? I cannot find anything from Microsoft saying that you should do this and new projects in Visual Studio is still created using the old format. Is there any good reason NOT to convert to SDK style?
The other answer is not bad, but it does not answer the question whether Microsoft actually recommends using the SDK format ("new project format") in .Net Framework projects.
So, let me answer that question...
Microsoft writes on https://learn.microsoft.com/en-us/dotnet/core/porting/#considerations-when-porting:
CONSIDER upgrading to the latest project file format even if you can't yet port your app. .NET Framework projects use an outdated project format. Even though the latest project format, known as SDK-style projects, was created for .NET Core and beyond, they work with .NET Framework. Having your project file in the latest format gives you a good basis for porting your app in the future.
and also:
Even if you're not moving from .NET Framework to .NET, you should still upgrade the project file to the latest format.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With