Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add the properties tab to a class library project in Visual Studio 2019?

I have a Visual Studio 2019 solution which has several Class Library projects targeting .NET Standard 2. Every one of these projects has a properties tab like the one described in the below image:

Properties tab

Inside the properties tab, there are several files (for example an assembly information class and resources files)

Problem:

I added a new Class Library project to the solution. I then noticed that the properties tab doesn't exist and I can't find a way to add it.

How can I add the properties tab to the newly created project in order to be coherent with the rest of the solution?

like image 476
Ivo Gomes Avatar asked Jan 26 '23 16:01

Ivo Gomes


2 Answers

Just create the "Properties" folder and ... smile!

like image 136
Miguel Domingues Avatar answered Jan 29 '23 08:01

Miguel Domingues


You can add ItemGroup tags in your csproj file, use AssemblyAttribute for assembly information and EmbeddedResource for resource files.

like image 35
Feiyu Zhou Avatar answered Jan 29 '23 08:01

Feiyu Zhou