Embedding resources into an assembly's global namespace.

Last post 11-15-2007 3:44 PM by bizzbutler. 0 replies.

Sort Posts:

  • Embedding resources into an assembly's global namespace.

    11-15-2007, 3:44 PM
    • Loading...
    • bizzbutler
    • Joined on 11-15-2007, 3:36 PM
    • Posts 1

    Recently, I read Changes between the ASP.NET AJAX (“Atlas”) CTP and the RTM Releases and noticed something interesting. Apparently it is possible to embed a resource into an assembly's global namespace. This makes it possible to reference the 'MicrosoftAjax.js' script file through the WebResource.axd and ScriptResource handlers as 'MicrosoftAjax.js' in the RTM release instead of the older 'Microsoft.Web.Resources.ScriptLibrary.MicrosoftAjax.js'.

    I've tried setting the assembly project's default namespace to 'global' through the Visual Studio IDE, set the script file's 'compile action' property to 'embedded resource', added an [assembly: WebResource(..., ...)] entry to AssemblyInfo.cs, but the WebResource.axd and ScriptResource.axd handlers are still unable to find the script file. Can someone provide me with a working example and some instructions on how to build it?

Page 1 of 1 (1 items)
Microsoft Communities
Page view counter