在编译时禁用Dll文化文件夹 [英] Disable Dll Culture Folders on Compile

查看:147
本文介绍了在编译时禁用Dll文化文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用2个dll( Microsoft.Expression.Interactions.dll System.Windows.Interactivity.dll ),即在编译父应用程序时,创建文化文件夹的负载:

I'm using 2 dlls (Microsoft.Expression.Interactions.dll and System.Windows.Interactivity.dll) that, when the parent application is compiled, create loads of culture folders:

每个内部都有2个dll( Microsoft.Expression.Interactions.resources.dll System。 Windows.Interactivity.resources.dll )。我到处搜索,只是找不到任何有关如何停止这种烦人的自动生成内容的东西。

And inside each are 2 dlls (Microsoft.Expression.Interactions.resources.dll and System.Windows.Interactivity.resources.dll). I've googled around and I just can't find anything related to how to stop this annoying auto-generated content.

推荐答案

我为.NET Core 3找到了一个很好的答案

I found a good answer for .NET Core 3

只需在包引用中添加ExcludeAssets = All。

Just add ExcludeAssets="All" to the package reference.

<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.0.0" ExcludeAssets="All" />

这是Microsoft社区上原始帖子的链接:
https://forums.asp.net/post/6281458.aspx

This is the link for the original post on Microsoft Community: https://forums.asp.net/post/6281458.aspx

这篇关于在编译时禁用Dll文化文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆