.NET 5/6 Project Targets

Posts   
 
    
mprothme avatar
mprothme
User
Posts: 80
Joined: 05-Oct-2017
# Posted on: 13-Nov-2021 21:47:24   

Sorry if this has been asked before, but are there any plans to support generated projects that target .NET 6 (it may be my version but I only see .NET standard versions in the UI).

I ask because there are a few projects in our solution that the generated projects depend on, and we can't update them to use newer language features because .NET standard can't depend on a project targeting .NET 5/6 (or I haven't figured out how to make that work.

Thanks!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39753
Joined: 17-Aug-2003
# Posted on: 14-Nov-2021 09:14:38   

5.9 will support .net 6, but you don't need to wait for that. Generate code for netstandard 2.0 and you can change the target of the csproj file afterwards to e.g. .net6. The generator won't overwrite the csproj file again. The code is the same.

A ns2.x project can't reference a .net6 project indeed, but it's ok to change the target of the ns2.x project to .net 6. Our code runs fine on .net 6.

Frans Bouma | Lead developer LLBLGen Pro
mprothme avatar
mprothme
User
Posts: 80
Joined: 05-Oct-2017
# Posted on: 15-Nov-2021 23:07:36   

Thanks! For some reason, I thought it would overwrite the csproj files so that's great!