程序使用的用户字符串超出了 Visual Studio 2019 允许的限制 [英] User strings used by the program exceeds allowed limit by visual studio 2019
问题描述
我一直在使用 RazorGenerator.Mvc 和
I have been working with RazorGenerator.Mvc and RazorGenerator.MSBuild to precompile the views. The error i face when i try to build the project.
CS8103 C# 程序使用的用户字符串组合长度超过允许的限度.尽量减少使用字符串文字.
CS8103 C# Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals.
Visual Studio 2019 Version 16.3
当我删除 RazorGenerator 包,清理并重建时,错误消失了.
这个 github 问题 表明修复将在 VS 2019 中.我试过了一切都可以调试问题,但找不到.
This github issue indicated that the fix will be in VS 2019. I tried everything to debug the issue but could not found it.
更新
当我从项目中排除一些视图并尝试重建时,错误消失了.我认为这可能是 Visual Studio 2019 的错误,他们说已解决但未解决.
When i exclude some of views from the project and try rebuild, error gone. I think it might be the Visual Studio 2019 bug which they say is resolved but isn't.
任何可能有效的解决方法?我还没有注册视图引擎.
Any work around that might work? I haven't yet registered view engine.
如果不是 vs2019,可能会有关于 RazorGenerator 工具的修复,如果有人可以提供帮助或参考,我将不胜感激.
There might be fix regarding RazorGenerator tool if not for vs2019, if anyone can help or reference, i will be thankful.
感谢您的时间.
推荐答案
将此添加到 your-project-name.csproj 文件中
Add this in your your-project-name.csproj file
这篇关于程序使用的用户字符串超出了 Visual Studio 2019 允许的限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!