views:

104

answers:

1

For my C# apps I need to have default/neutral resources placed in a sattelight assembly, such that the output of a build looks like: MyApp.exe -AND- MyApp.resources.dll <- containing default/neutral resources How can I accomplish this using VS2008 and .NET runtime 2.0 or greater? Secondary question: How to keep the resources in the exe, and ALSO create a sattelite assembly dll for en (a complete one, not an empty one that falls back on looking in the main assembly exe).

+1  A: 

Create a separate project called MyApp.Resources that only contains your resources. Have your main project depend on/refer to that project.

JSBangs
While this could be done, I'm looking for a way to do it without creating a separate project.
Scott
You could create a build task which compiles the resources into a separate assembly, or which copies them to the other project. That way you don't have to manually update two places.
Mikael Svenson
Would this create an EXE without any embedded resources?I want an EXE without any embedded resources and a DLL with the default resources.
Scott
Well, no one else has added any comment in some time, so, while I didn't exactly get the answer I was seeking, I'm going to accept what has been offered to this point as an acceptable solution.
Scott