I am trying to read a Resource file in VSTO Shared add-in using the below code
ResourceManager rm = new ResourceManager("Exceptions", assembly);
return rm.GetString(key);
ResourceManager rm = new ResourceManager("Exceptions", Assembly.GetExecutingAssembly());
CultureInfo ci = Thread.CurrentThread.CurrentCulture;
String str = rm.GetString(key, ci);
return str;
but it is throwing an error saying check whether the resource file is embedded with the project
I would add a line like this at the start of your code and set a breakpoint upon it.
You can then check the exact name of your resource within the assembly; which is the most likely cause of your issue.