K
Kimmo Laine
Hi!
How can i add existing resource file to a C# project in VS2005 without
breaking the connection?
Lets say that i have a resource file, "MyStrings.resx", with one single
string resource MY_STRING = "Hello!". When i create this file, VS will
automatically add another file to my project - "MyStrings.Designer.cs".
Because of this extra file, i can write code like this:
MessageBox.Show(MyStrings.MY_STRING);
But when i import (Add existing item) these two files to another project,
somethig goes wrong: i can add new string but the class file don´t update
automatically.
What is the correct way to import resources?
thx
Kimmo Laine
How can i add existing resource file to a C# project in VS2005 without
breaking the connection?
Lets say that i have a resource file, "MyStrings.resx", with one single
string resource MY_STRING = "Hello!". When i create this file, VS will
automatically add another file to my project - "MyStrings.Designer.cs".
Because of this extra file, i can write code like this:
MessageBox.Show(MyStrings.MY_STRING);
But when i import (Add existing item) these two files to another project,
somethig goes wrong: i can add new string but the class file don´t update
automatically.
What is the correct way to import resources?
thx
Kimmo Laine