I found what appears to be a bug with the ScriptRegistrar when registering the script "MicrosoftAjax.js"
In the output, it changes the registration to "MicrosoftAjax.debug.js" (ie the un-minified version) regardless of whether I'm running in Debug or Release configurations.
Steps to reproduce the condition:
- Start a new "C# Telerik MVC3 Web Application (Razor)" project
- Change the ScriptRegistrar line in _Layout.cshtml to the following:
@(Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Add("~/Scripts/MicrosoftAjax.js")) )
- Build & run the project, & notice in source view that the registration is actually to the script: "MicrosoftAjax.debug.js" and not the one we intended
I'm running latest version 2011.1.414
I've also attached a sample project.