简体   繁体   English

ASP.net资源文件未复制到bin

[英]ASP.net Resource Files not being copied to bin

I have a multi-lingual MVC web application referencing multiple projects. 我有一个引用多个项目的多语言MVC Web应用程序。 The application's resources are also defined in separate projects/modules, for example Application.Models.Resources. 应用程序的资源也定义在单独的项目/模块中,例如Application.Models.Resources。

This approach has worked well with the initial language set but now I have added additional languages to the resource projects, the new language resources dlls are not be copied to the application's /bin folder. 这种方法在初始语言设置下效果很好,但是现在我向资源项目添加了其他语言,新的语言资源dll未复制到应用程序的/ bin文件夹中。 For example, a Swedish language ('sv') variant was added to the resource project, it is not being copied to the /bin/sv folder of the application. 例如,将瑞典语('sv')变体添加到资源项目,但没有将其复制到应用程序的/ bin / sv文件夹中。

The resource file has its Access Modifier set to 'Public'. 资源文件的访问修饰符设置为“公共”。

What am I missing? 我想念什么? How can I ensure that the language variants are installed? 如何确保安装了语言变体?

Any advice would be appreciated. 任何意见,将不胜感激。

Whilst there might be other solutions to this problem, I found that removing the references to the resource projects from the solution and then re-referencing them (Add existing project) fixed the problem. 尽管可能对此问题有其他解决方案,但我发现从解决方案中删除对资源项目的引用,然后重新引用它们(添加现有项目)解决了该问题。 Other users with this problem might also want to try unloading and then reloading the resource projects (I was unable to test this as the first method resolved the problem). 遇到此问题的其他用户可能也想尝试卸载然后重新加载资源项目(由于第一种方法解决了该问题,因此我无法对其进行测试)。

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

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