Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/15.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
Xml 我如何制作自己的“a”版本;resx“;Visual Studio 2013中的文件?_Xml_Xslt_Visual Studio 2013_C# - Fatal编程技术网

Xml 我如何制作自己的“a”版本;resx“;Visual Studio 2013中的文件?

Xml 我如何制作自己的“a”版本;resx“;Visual Studio 2013中的文件?,xml,xslt,visual-studio-2013,c#,Xml,Xslt,Visual Studio 2013,C#,如何创建能够自动创建*.designer.cs文件的xml文件,类似于*.resx文件的创建方式 基本上,我有一个xml文件(foo.xyz)。更新时,我希望它自动创建(或更新)一个*.designer.cs文件,该文件依赖于主foo.xyz文件。我不知道这个过程被称为什么,甚至不知道如何搜索有关它的任何相关信息。谢谢 Resx代码隐藏是使用PublicResXFileCodeGenerator与自定义工具生成的。下面是一个关于如何创建新的VS定制工具的示例,它适用于VS 2008,但我认为20

如何创建能够自动创建*.designer.cs文件的xml文件,类似于*.resx文件的创建方式


基本上,我有一个xml文件(
foo.xyz
)。更新时,我希望它自动创建(或更新)一个*.designer.cs文件,该文件依赖于主
foo.xyz
文件。我不知道这个过程被称为什么,甚至不知道如何搜索有关它的任何相关信息。谢谢

Resx代码隐藏是使用PublicResXFileCodeGenerator与自定义工具生成的。下面是一个关于如何创建新的VS定制工具的示例,它适用于VS 2008,但我认为2013年的过程是相同的:

也许根据您的需要,代码生成会更容易