How to target .net standard in visual studio

when i create new project, the target framework that i can choose is only .net framework, there is no .net standard. I installed .net core 3 in my pc and .net standard still not shown, then i installed .net core 3.1 runtime in visual studio and .net standard still not shown in target framework. How do i target .net standard ??
2 Replies
ACiDCA7
ACiDCA72mo ago
what kind of project are you trying to create? you cant choose netstandard for eg wpf try to create a classlibray there you should be able to choose net standard also why are trying to target ancient frameworks.. current recommended version is net8
Suiram1
Suiram12mo ago
Some .NET projects types like console or class libarary have in Visual Studio two different templates. For example you have Console-App and Console-App (.NET Framework). I think you selected the .NET framework varient which only has .NET Framework versions. The newer .NET versions und also .NET Standart versions are available in the other template.
Want results from more Discord servers?
Add your server