asp.net-core - ASP.NET 团队如何从 MVC 6 项目中的 *.resx 文件生成 *.Designer.cs 文件?

标签 asp.net-core visual-studio-2015 asp.net-core-mvc

Microsoft 开发人员如何从 http://github.com/aspnet/mvc 中的 *.resx 文件生成 *.Designer.cs 文件|项目?

最佳答案

魔法就在这个Shade文件中:https://github.com/aspnet/Universe/blob/dev/build/_k-generate-resx.shade由每个项目通过 KoreBuild 包导入。

如果您运行我们的构建命令(build.cmdbuild.sh)并传递参数 resx - 例如build.cmd resx - 将解析所有 resx 文件并重新生成 *.designer.cs

PS:这适用于 https://github.com/aspnet 下的任何 ASP.NET 项目, 包括 MVC

关于asp.net-core - ASP.NET 团队如何从 MVC 6 项目中的 *.resx 文件生成 *.Designer.cs 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30172183/

相关文章:

c# - 如何为 ASP.NET Core 中的单元/集成测试模拟 IFormFile?

node.js - 有没有办法使用 Microsoft.AspNetCore.NodeServices 停止 Node.js 上的脚本执行?

visual-studio - 哪些项目文件仍然与 Visual Studio 2022 相关?

c++ - 背景音乐和声音

javascript - Cordova 为 Android 构建错误所以我无法构建我的解决方案

c# - mvc 核心中的卷影复制

c# - Windows加密异常: Access is denied when publishing app in Azure

asp.net-core - TagHelper 用于将路由值作为链接的一部分传递

asp.net-core - 当前不会命中切换断点。断点已设置但尚未绑定(bind)

c# - 使用授权 header 重定向到操作