Upgrading to 2.0

Stefan Prodan edited this page Aug 31, 2014 · 5 revisions
  • Upgrade your nuget package
  • Search in your code and views for RequireJS namespace and replace it with RequireJsNet, make sure you don't miss the @RequireJS in Razor views
  • Stop inheriting your controllers from RequireController
  • Move the code from the RequireJsControllers.RequireRegisterGlobalOptions method to a filter/base controller
  • Use the RequireJsOptions static class instead of the RequireJsOptions property (you shouldn't have to change anything if you haven't referenced the property explicitly)
  • Change the way you call RequireRendererConfiguration so that it matches the new signature
  • (Optional) Convert your XML (.config) file to JSON (.json). The XML format of the config file is now deprecated and will be removed in 3.0
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.