How to create a class library (c#) in visual studio code using .net 4.7 version

60 Views Asked by At

I am trying to create a class library from visual studio code, as i cannot use visual studio because of some organizational limits.

So when i tried to create the class library i was able to use the c# dev kit,.Net install extensions from the visual studio code. But these are asking me to download .net sdk 8.

I am developing this class library to make it fit in to an automation process which accepts earlier versions of .Net (4.7,4.8) etc.

1

There are 1 best solutions below

1
hasanUtebay On

you can use this command on your terminal

dotnet new classlib -n YourLibraryName -f net48