Web Application Project and App_GlobalResources

I currently have a C # web application project with many pages, as well as their corresponding codebehind files (aspx, cs, designer.cs). When I open the dll created during the build process and open it in the visual studio object explorer, I can clearly see all the code.

Within one project, I have a number of .resx files in the App_GlobalResources folder of the project. Associated with these .resx files are the generated designer.cs files. These designer.cs files have a Resources namespace. However, after creating the web application, the Resources namespace is missing from the DLL, which indicates that they were not compiled.

Does anyone have any ideas on how I can use these resource code files in my DLL. This will avoid launching the web application through the web deployment project just to create App_GlobalResources.dll

Thanks in advance!

+4
source share
1 answer

Right-click the resource file and view the properties, and then change the "Build Action" to "Embedded Resource".

+4
source

All Articles