Repository navigation
v3.0.0
The package is renamed from AspNetWebpack to AspNet.AssetManager.
Breaking changes
- New package ID: uninstall
AspNetWebpackand installAspNet.AssetManager. - New namespace:
AspNetWebpack→AspNet.AssetManager. Update@usingstatements and_ViewImports.cshtml. services.AddAspNetWebpack(...)→services.AddAssetManager(...).IAssetService.AssetsDirectoryPath→DirectoryPathandIAssetService.AssetsWebPath→WebPath.- The
fallbackBundleparameter onGetScriptTagAsync,GetLinkTagAsyncandGetStyleTagAsyncis renamed tofallback, which affects callers using named arguments. Html.GetBundleName()now keeps the full view path, includingAreas,ViewsandPages. Rename your frontend entry points to match (aspnet-buildtools generates the new names):
| View | Before | After |
|---|---|---|
Views/Home/Index.cshtml |
Home_Index |
Views_Home_Index |
Pages/Home/Index.cshtml |
Home_Index |
Pages_Home_Index |
Areas/Admin/Views/Home/Index.cshtml |
Admin_Home_Index |
Areas_Admin_Views_Home_Index |
Other
- The
Webpackconfiguration section andWebpackOptionsare unchanged. They are renamed in v4.0.0. ViewData.GetBundleName()is unchanged.
Full Changelog: v2.0.0...v3.0.0