.NET Framework Bookmark and Share   
 index > MSBuild > Resource Customization
 

Resource Customization

Hi, i want to createdifferent editions of my application with a customized ui (replaced icons and some images).
I'd like to use the (embedded) resources as usual in designers and not load them by hand.

My idea was some kind of "ProEditionReplacementResource" directory and to somehow modify the build process to e.G. replace the original icon with the replacement icon if there is any. Can i accomplish that somehow with msbuild?
Daniel K. IW
Hi Daniel,

I am not sure I understood you clearly, ifI misunderstood you, please let me know. Based on my understanding, you'd better create a COPY <task> to copy the resources file to target directory. For more informaiton, please see:

How To: Recursively Copy Files Using the <Copy> Task

Best Regards,
Nancy
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao
I have a pretty usual Resources.resx file with
- Build Action: Embedded Resource
- Custom Tool: ResXFileCodeGenerator

-> The icons, bitmaps etc. specified in the Resources.resx file get compiled & *embedded* into my library when i build.

Now i want somehow to redirect the files that get compiled by ResXFileCodeGeneratorto another set of files for s specific build configuration.


Resources.resx -> Compile -> ResXFileCodeGenerator(embeds files, [[[with Magic replacement]]])-> Embedded into MyLibrary.dll


If that is possible :)
Daniel K. IW

Hi Daniel,

As far as I know, it is impossible to achieve thisbyMSBuild. As a walkaround, you can modify.rc file or replace theoriginal icon file with same name with MSBuild COPY task.

Best Regards,
Nancy


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
Nancy Shao

You can use google to search for other answers

Custom Search

More Threads

• Customise 'Deploy' for Smart Device Projects
• Renaming multiple files in MSBuild
• Redirect ProjectAssemblies folder (Visual Studio 2005)
• MSBuild error MSB6006
• Custom Task - FileIOPermission
• Auto-reply including original message
• Building huge solution
• GAC an assembly with MSBUILD
• Can't instantiate Engine nor Project
• putty, mix env (window, unix)