Visual Studio 2017 package tab is missing in project settings

12,592

Visual Studio 2017 package tab is missing in project settings

That because your project is library .NET Framework, which still using packages.config to manage NuGet packages. And Package tab is only supported by the new nuget package management form: PackageReference.

.NET Standard class library or .NET Core projects come with PackageReference enabled by default. So you can create .NET Standard class library or .NET Core project, then you will see Package tab on the properties window.

If you want to use the Package tab for library .NET Framework project, you can convert your project from the old .csproj to new .csproj, (Right click your project->Unload project->Edit .csproj. Replace the contents of your csproj with the following:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net46</TargetFramework>
  </PropertyGroup>
</Project>

See Old csproj to new csproj: Visual Studio 2017 upgrade guide for more info about convert old .csproj to new .csproj.

Note: Need to delete the AssemblyInfo.cs file in the Properties.

After convert to new .csproj, you will get the Package tab for library .NET Framework project:

enter image description here

Hope this helps.

Share:
12,592

Related videos on Youtube

LLPeter
Author by

LLPeter

Updated on September 14, 2022

Comments

  • LLPeter
    LLPeter over 1 year

    I created a simple library .NET Framework project.

    I would like to generate NuGet packages after build as described here.

    However, the Package tab is missing, here is a screenshot:
    screenshot

    • ADyson
      ADyson over 6 years
      that link is all about .NET Core projects, not traditional .NET Framework
  • LLPeter
    LLPeter over 6 years
    Thank you, this is one part of the solution. After i have tried your tips the package tab still disappears. I uninstalled Visual Studio and reinstalled it. It still not appears. Then i installed the Visual Studio Feature "Datenspeicherung and -verarbeitung". Then finally the tab appears. Thank you for you help!
  • Tsahi Asher
    Tsahi Asher about 6 years
    Which translates to "Data storage and processing" in English.
  • Igor Mironenko
    Igor Mironenko over 5 years
    Is this specific to .NET4.6 then ? Or can I try it with .NET 4 based project?