By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,995 Members | 1,090 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,995 IT Pros & Developers. It's quick & easy.

Embedded Resources

P: n/a
n!
I have an irritating problem with VS.NET2003, C#. I wrote some code that
would build my application menu from an XML resource file. Purely to make it
easy for me to edit, so I've added this file as an embedded resource.

My irritation, is that when I update the resource file and nothing else. VS
does not build the project with the newly edited resource file. So if I run
the application again, it actually hasn't been updated to use my newly
modified menu. This can be really confusing, and frustrating later on when I
realise I need to rebuild the project again. Especially as I tend to work on
the resource for a bit, then when its ready I wont touch it again for a long
while. When I do, I've more than likely forgotten this is an issue.

I assume this would be the same for all resources, surely if you have an
embedded resource in your project (which gets compiled into your assembly),
you'd want changes to have an automatic effect?

I don't suppose anyone knows a way to get VS to recognise the embedded
resource as a part of the project that should be updated within the assembly
when it is changed? Maybe I'm just missing something :)

</rant> :)

Thanks,
n!
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sorry n!

This is a known issue. The work-around is to rebuild the affected project.

-vJ

"n!" <nf********@nomailplease.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
I have an irritating problem with VS.NET2003, C#. I wrote some code that
would build my application menu from an XML resource file. Purely to make
it
easy for me to edit, so I've added this file as an embedded resource.

My irritation, is that when I update the resource file and nothing else.
VS
does not build the project with the newly edited resource file. So if I
run
the application again, it actually hasn't been updated to use my newly
modified menu. This can be really confusing, and frustrating later on when
I
realise I need to rebuild the project again. Especially as I tend to work
on
the resource for a bit, then when its ready I wont touch it again for a
long
while. When I do, I've more than likely forgotten this is an issue.

I assume this would be the same for all resources, surely if you have an
embedded resource in your project (which gets compiled into your
assembly),
you'd want changes to have an automatic effect?

I don't suppose anyone knows a way to get VS to recognise the embedded
resource as a part of the project that should be updated within the
assembly
when it is changed? Maybe I'm just missing something :)

</rant> :)

Thanks,
n!

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.