Click here to Skip to main content
15,911,327 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In my asp.net MVC2 web application, I have global.resx file under App_GlobalResources folder. Following properties are set for the resource file.

Build Action: Embedded Resources
Copy to output Directory: Do not copy
Custom Tool: PublicResXFileCodeGenerator


I am using this file in both aspx and class files. And it works fine.

But when I publish my application, the global.resx file does not get copied into the deployed directory due to which aspx & class files fails to find the reference of the file.

How can I make sure this file gets copied when I deploy the project?
Posted
Updated 30-Jan-11 21:02pm
v2

1 solution

try changing the Copy to output directory property to "always".
 
Share this answer
 
v3
Comments
saini arun 31-Jan-11 6:43am    
It copies both ".resx" & "resx.cs" to bin folder. That's the un-compiled version of the file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900