I have a resx file in the App_GlobalResources folder of my ASP.NET web application.
Its build property must be set to "Content", so that the file is automatically included during publishing and I can use
<%$ Resources: ... %>
expressions.Its build property must be set to "Embedded Resource", so that my unit tests can access the resources.
Is there some trick that I can use to have both?
Note: The solutions in the linked question won't work, since
- mocking HttpContext won't give the unit test access to non-embedded resources, and
- moving the resources out of App_GlobalResources breaks
<%$ Resources: ... %>
support after deployment.
Is there any solution that I have missed?