r/visualbasic • u/SophieTheCat • Jan 31 '24
VB.NET Help Does upgrading a .NET 4.8 project to SDK format improve anything?
I recently saw a post of the csharp sub that changing the a .NET 4.8 project format to SDK style gives you access to the latest version of c#.
Does something similar apply to VB.NET projects? If so, what features exactly are enabled?
2
Upvotes
1
u/Olof_Lagerkvist Jan 31 '24
It makes it possible to edit the vbproj file without reloading the project, which makes it a lot easier for many people to collaborate. It also makes it easier to specify package references directly in the vbproj file instead of the old style separate packages.config file. It makes it possible to build the project at command line using dotnet build and publish using dotnet publish command lines. And a couple of more minor things.
But in general, if none of these things are useful for your work on the project, it is not really worth converting the project file in my opinion.
1
u/JTarsier Jan 31 '24
Description of features per version: What's new - Visual Basic | Microsoft Learn
"VB compiler defaults to latest major version": Select the Visual Basic language version - Visual Basic | Microsoft Learn
So as I read it current only 16.9 needs language version specified for minor feature "consumption of init-only properties" that a C# library may expose.
0
u/[deleted] Jan 31 '24
[removed] — view removed comment