Click here to Skip to main content
15,746,107 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">

in the XML however i am after something more like:
<data name="FurryBear1" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/" 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


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