{"id":128,"date":"2005-06-09T22:34:00","date_gmt":"2005-06-09T22:34:00","guid":{"rendered":"https:\/\/wdev-blog.azurewebsites.net\/index.php\/2005\/06\/09\/resource-file-generator-resgen-exe\/"},"modified":"2005-06-09T22:34:00","modified_gmt":"2005-06-09T22:34:00","slug":"resource-file-generator-resgen-exe","status":"publish","type":"post","link":"http:\/\/panahy.nl\/index.php\/2005\/06\/09\/resource-file-generator-resgen-exe\/","title":{"rendered":"Resource File Generator (Resgen.exe)"},"content":{"rendered":"<p>The Resource File Generator converts .txt files and .resx (XML-based resource format) files to common language runtime binary .resources files that can be embedded in a runtime binary executable or compiled into satellite assemblies. For information about deploying and retrieving .resources files, see <a href=\"http:\/\/winfx.msdn.microsoft.com\/library\/en-us\/dv_fxwalkthrough\/html\/8ad495d4-2941-40cf-bf64-e82e85825890.asp\">Resources in Applications<\/a>.<\/p>\n<p>Resgen.exe performs the following conversions: <\/p>\n<ul>\n<li>Converts .txt files to .resources or .resx files.\n<li>Converts .resources files to text or .resx files.\n<li>Converts .resx files to text or .resources files. <\/li>\n<\/li>\n<\/li>\n<\/ul>\n<pre><b>resgen<\/b> [<b>\/compile<\/b>] <i>filename.extension<\/i> [<i>outputFilename.extension<\/i>][\u2026]<\/pre>\n<hr>\n<p><\/p>\n<table>\n<tbody>\n<tr>\n<th>Option <\/th>\n<th>Description <\/th>\n<\/tr>\n<tr>\n<td>\n<p><b>\/compile<\/b> <\/p>\n<\/td>\n<td>\n<p>Allows you to specify multiple .resx or .txt files to convert to .resources files in a single bulk operation. If you do not specify this option, you can specify only one input file argument. <\/p>\n<hr>\n<p><\/p>\n<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><b>\/r:<\/b> <i>assembly<\/i> <\/p>\n<\/td>\n<td>\n<p>Specifies that types are to be loaded from <i>assembly<\/i>. If you specify this option, a .resx file with a previous version of a type will use the type in <i>assembly<\/i>. <\/p>\n<hr>\n<p><\/p>\n<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><b>\/str:<\/b> <i>language[,namespace[,classname[,filename]]]<\/i> <\/p>\n<\/td>\n<td>\n<p>Creates a strongly-typed resource class file in the programming language (C# or Visual Basic) specified in the <i>language<\/i> option. You can use the <i>namespace<\/i> option to specify the project&#8217;s default namespace, the <i>classname<\/i> option to specify the name of the generated class, and the <i>filename<\/i> option to specify the name of the class file. <\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><b>\/usesourcepath<\/b> <\/p>\n<\/td>\n<td>\n<p>Specifies that the input file&#8217;s current directory is to be used for resolving relative file paths.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre><strong>resgen <\/strong>myResources.resx myResources.resources \/str:C#,Namespace1,MyClass,MyFile.vb<\/pre>\n<pre> <\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Resource File Generator converts .txt files and .resx (XML-based resource format) files to common language runtime binary .resources files that can be embedded in a runtime binary executable or compiled into satellite assemblies. For information about deploying and retrieving .resources files, see Resources in Applications. Resgen.exe performs the following conversions: Converts .txt files to &hellip; <a href=\"http:\/\/panahy.nl\/index.php\/2005\/06\/09\/resource-file-generator-resgen-exe\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Resource File Generator (Resgen.exe)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[103],"tags":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"post-thumbnail":false},"uagb_author_info":{"display_name":"Pouya Panahy","author_link":"http:\/\/panahy.nl\/index.php\/author\/pouya\/"},"uagb_comment_info":0,"uagb_excerpt":"The Resource File Generator converts .txt files and .resx (XML-based resource format) files to common language runtime binary .resources files that can be embedded in a runtime binary executable or compiled into satellite assemblies. For information about deploying and retrieving .resources files, see Resources in Applications. Resgen.exe performs the following conversions: Converts .txt files to&hellip;","_links":{"self":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/128"}],"collection":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/comments?post=128"}],"version-history":[{"count":0,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/posts\/128\/revisions"}],"wp:attachment":[{"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/media?parent=128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/categories?post=128"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/panahy.nl\/index.php\/wp-json\/wp\/v2\/tags?post=128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}