简体   繁体   English

如何在 Visual Studio package 管理器中隐藏 package

[英]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...".我已经用完了对 Devexpress 许可证的支持,现在我在 Visual Studio 中的 package 更新中显示了一个 package (DevExtreme.Aspnet.Mvc) ,每次我执行“管理 ZE0A9608C9CC2A52A01 软件包236”...

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从 package.config 文件中删除DevExtreme.Aspnet.Mvc
  2. Edit csproj file编辑 csproj 文件
  3. Use PackageReference to add this package into your project使用PackageReference将此 package 添加到您的项目中
  <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.所以你需要将它应用到每个项目中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Visual Studio中,如何更改包管理器的字体大小? - In Visual Studio, how to change package manager font size? 如何在Visual Studio中更改程序包管理器控制台的字体大小 - How to change Font Size of Package Manager Console in Visual Studio 如何在 Visual Studio 外使用包管理器控制台 powershell - How to use Package Manager Console powershell outside visual studio 如何在Visual Studio 2013中自动化Package Manager控制台 - How to automate Package Manager Console in Visual Studio 2013 如何在 Visual Studio 中配置包管理器控制台使用的 powershell 版本? - how to configure the powershell version used by the package manager console in visual studio? 没有Visual Studio的软件包管理器,如何更新nuget软件包? - How to update nuget packages without package manager of visual studio? Visual Studio 包管理器控制台的键盘快捷键? - Keyboard Shortcut for the Visual Studio Package Manager Console? “Visual Studio Build Manager Package”包未正确加载 - The 'Visual Studio Build Manager Package' package did not load correctly 如何在Visual Studio外部使用nuget包管理器从命令行安装/更新包? - How can I use the nuget Package Manager outside Visual Studio to install/update a package from the commandline? 无法在Visual Studio 2015中安装Nuget软件包管理器 - Not able to install Nuget Package Manager in Visual Studio 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM