Hi,
I stumbeled upon following problem
I have windows application with WindowsApplication1.en-US.resx
I ran:
Resgen WindowsApplication1.en-US.resx
WindowsApplication1.WindowsApplication1ResourceCla ss.resources
/str:C#,WindowsApplication1,WindowsApplication1Reso urceClass,WindowsApplication1ResourceFile.cs
Al.exe /target:lib
/embed:WindowsApplication1.WindowsApplication1Resou rceClass.resources,WindowsApplication1.WindowsAppl ication1ResourceClass.resources
/culture:en-US /out:WindowsApplication1.resources.dll
both successfuly
Folder structure:
WindowsApplication1\bin\debug\en-US\WindowsApplication1.resources.dll
or
WindowsApplication1\bin\en-US\WindowsApplication1.resources.dll
when I execute the project, on line of code string msg =
WindowsApplication1ResourceClass.ExitMenu;
it rises following exception
System.Resources.MissingManifestResourceException was unhandled
Message="Could not find any resources appropriate for the specified
culture or the neutral culture. Make sure
\"WindowsApplication1.WindowsApplication1ResourceC lass.resources\" was
correctly embedded or linked into assembly \"WindowsApplication1\" at
compile time, or that all the satellite assemblies required are loadable and
fully signed."
Source="mscorlib"
StackTrace:
at
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
at
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
at
System.Resources.ResourceManager.InternalGetResour ceSet(CultureInfo culture,
Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name,
CultureInfo culture)
at
WindowsApplication1.WindowsApplication1ResourceCla ss.get_ExitMenu() in
C:\dotNet
Projects\WindowsApplication1\WindowsApplication1\W indowsApplication1ResourceFile.cs:line
68
at WindowsApplication1.Form1..ctor() in C:\dotNet
Projects\WindowsApplication1\WindowsApplication1\F orm1.cs:line 35
at WindowsApplication1.Program.Main() in C:\dotNet
Projects\WindowsApplication1\WindowsApplication1\P rogram.cs:line 17
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[]
args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.Run UsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context( Object state)
at System.Threading.ExecutionContext.Run(ExecutionCon text
executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Please help,
Thank you very much.