简体   繁体   English

在Visual Studio解决方案资源管理器中隐藏带有某些扩展名(dll)的文件

[英]Hide files with some extension (dll) in visual studio solution explorer

I have a VS2017 solution and project which is displaying these core dll libraries in solution explorer, which pollutes the view. 我有一个VS2017解决方案和项目,它在解决方案资源管理器中显示这些核心dll库,这会污染视图。

在此处输入图片说明

The dlls are included via a .targets file included in a 3rd party nuget package. dll是通过第3方nuget程序包中包含的.targets文件包含的。 I know this because when I try right click item -> remove, I get error prompt: 我知道这是因为,当我尝试右键单击项目->删除时,出现错误提示:

Cannot modify an evaluated object originating in an imported file "....nuget\\packages\\some.third.party.package\\1.0.0\\some.third.party.package.targets" 无法修改源自导入文件“ .... nuget \\ packages \\ some.third.party.package \\ 1.0.0 \\ some.third.party.package.targets”的评估对象

Obviously, best thing to do would be to solve root problem and not include these dlls files in msbuild targets file, however let's assume I cannot remove/modify/update this 3rd party library and it is necessary to use. 显然,最好的办法是解决根问题,并且不将这些dll文件包括在msbuild目标文件中,但是让我们假设我无法删除/修改/更新此第三方库,因此有必要使用它。

How can I configure Visual Studio (2017) to not show these dlls? 如何将Visual Studio(2017)配置为不显示这些dll? Some way to filter the view is a good enough fix for me. 对我来说,某种过滤视图的方法已经足够了。

How can I configure Visual Studio (2017) to not show these dlls? 如何将Visual Studio(2017)配置为不显示这些dll? Some way to filter the view is a good enough fix for me. 对我来说,某种过滤视图的方法已经足够了。

To my knowledge, there is no such configure Visual Studio (2017) to hide those dlls . 据我所知,没有这样的配置Visual Studio(2017)隐藏那些dlls Because those files are included via a .targets file included in a 3rd party nuget package, we could not handle those dll files directly . 由于这些文件是通过第三方nuget软件包中包含的.targets文件包含的,因此我们无法直接处理这些dll文件。 In addition, you also have no control over this third party package. 此外,您也无法控制此第三方软件包。

So I am afraid you could not hide those dll files in Visual Studio 2017 without manipulating dlls files directly. 因此,恐怕您无法在不直接操作dlls文件的情况下无法在Visual Studio 2017中隐藏这些dll文件。

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

相关问题 在Visual Studio解决方案资源管理器中将菜单项添加到.cs文件(仅)? - Add menu item to .cs files (only) in Visual Studio solution explorer? Visual Studio不会刷新解决方案资源管理器文件夹中的新复制文件 - visual studio doesnt refresh new copied files in a folder of solution explorer 将MSBuild生成的文件添加到Visual Studio Solution Explorer - Adding MSBuild generated files to Visual Studio Solution Explorer visual studio — 无法从解决方案资源管理器中删除文件 - visual studio — can't remove files from solution explorer 是否可以在Visual Studio 2013的解决方案资源管理器中手动标记文件 - Is it possible to manually flag files in the Solution Explorer in Visual Studio 2013 优化Visual Studio解决方案构建 - 放置DLL文件的位置? - Optimizing Visual Studio solution build - where to put DLL files? Visual Studio 解决方案资源管理器未在解决方案中显示项目 - Visual Studio Solution Explorer not showing projects in solution Visual Studio解决方案中的某些项目不会创建exe文件 - Visual Studio some projects in solution don't create exe files Visual Studio 2013扩展解决方案资源管理器筛选器 - Visual Studio 2013 Extending Solution Explorer Filter 没有解决方案资源管理器现在显示 Visual Studio - No Solution explorer now showing Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM