Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am struggling to find a way of editing a .resx file so that i can set the "Build Action" and "persistence" properties of each resource.

Does anyone know of a way i can edit a property of a resource within this file type?

I am currently using the ResXResourceWriter.

I tried this:
m_resourceWriter.AddMetadata("Build Action", "Resource");

which produced:
<pre lang="xml"><metadata name="Build Action" xml:space="preserve">
   <value>Resource</value>
 </metadata></pre>

in the XML however i am after something more like:
<data name="FurryBear1" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64" BuildAction ="Resource">

That will set the "build action" and "persistence" properties of the resource through code.

Does anyone know howResource properties in the XML can be changed?

Thanks in advance

George
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900