简体   繁体   中英

How to hide a package in Visual Studio package manager

I have run out of support for the Devexpress license and now one package (DevExtreme.Aspnet.Mvc) shows in my package update in Visual Studio, everytime I do a "Manage Nuget packages for Solution...".

Since I won't be getting any updates for this, will I be able to somehow hide this from view?

在此处输入图像描述

From the answer , you could follow these steps:

  1. Remove DevExtreme.Aspnet.Mvc from the package.config file
  2. Edit csproj file
  3. Use PackageReference to add this package into your project
  <ItemGroup>
    <PackageReference Include="DevExtreme.Aspnet.Mvc">
      <Version>[19.1.12]</Version>
    </PackageReference>
  </ItemGroup>

The note: this workaround just works for project instead of solution. So you need to apply it into each project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM