Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 如果名称中使用了语言代码,则不会生成Resource.Designer.cs_.net_Resources_.net Core_Resx_.net Standard 2.0 - Fatal编程技术网

.net 如果名称中使用了语言代码,则不会生成Resource.Designer.cs

.net 如果名称中使用了语言代码,则不会生成Resource.Designer.cs,.net,resources,.net-core,resx,.net-standard-2.0,.net,Resources,.net Core,Resx,.net Standard 2.0,我完全糊涂了,希望你能帮我 在我的解决方案中,我为varios语言使用了一些资源(resx)。 在过去,设计器文件总是生成的,但突然它不再工作了,我不明白它 一旦名称中使用了语言代码,则无法生成设计器文件,并出现以下错误: Custom tool ResXFileCodeGenerator failed to produce an output for input file 'Resources\Resource1.cz.resx' but did not log a specific erro

我完全糊涂了,希望你能帮我

在我的解决方案中,我为varios语言使用了一些资源(resx)。 在过去,设计器文件总是生成的,但突然它不再工作了,我不明白它

一旦名称中使用了语言代码,则无法生成设计器文件,并出现以下错误:

Custom tool ResXFileCodeGenerator failed to produce an output for input file 'Resources\Resource1.cz.resx' but did not log a specific error.    
我创建了一些空的资源文件:

  • Resource.resx(正在工作)
  • Resource.de.resx(不工作)
  • Resource.en.resx(不工作)
  • Resource.HUGO.resx(正在工作)
我尝试了VS17和VS17预览版

编辑:它在.Net标准项目中不起作用

EDIT:正在使用.Net标准的VS for Mac上工作,但不在VS for Windows上工作

有什么想法吗

亲切问候,,
christoph

在VisualStudio 2019中的一个asp.net core 3.1网站项目(使用全球化)中,我在使用现有资源文件时遇到了这个问题

要解决这个问题:

  • 创建了一个新的Resource.resx。(使用添加>新项目…>资源) File.resx
  • 复制新文件中第一个文件的所有内容(复制 所有三列)
  • 删除旧文件
  • 将新文件重命名为所需的名称

  • 它对我有用。我希望它也对你有用。

    在asp.net core 3.1网站项目(使用全球化)的VisualStudio 2019中,我在使用现有资源文件时遇到了这个问题

    要解决这个问题:

  • 创建了一个新的Resource.resx。(使用Add>new Item…>Resorce) File.resx
  • 复制新文件中第一个文件的所有内容(复制 所有三列)
  • 删除旧文件
  • 将新文件重命名为所需的名称
  • 它对我有用。我希望它也对你有用。

    。。