Skip to content

Commit a203aa2

Browse files
Bold Create Agentsuriyaprakasamr
andcommitted
Remove bundling (System.Web.Optimization) dependency: reference scripts/styles directly to fix NullReferenceException in _Layout.cshtml
Co-authored-by: suriyaprakasamr <302142999+suriyaprakasamr@users.noreply.github.com>
1 parent 16ab4e2 commit a203aa2

7 files changed

Lines changed: 4 additions & 1472 deletions

File tree

‎Side-by-Side-Comparison/App_Start/BundleConfig.cs‎

Lines changed: 0 additions & 27 deletions
This file was deleted.

‎Side-by-Side-Comparison/DocumentEditor.csproj‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,10 @@
9696
</Reference>
9797
<Reference Include="System.Net.Http.WebRequest">
9898
</Reference>
99-
<Reference Include="System.Web.Optimization">
100-
<HintPath>packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath>
101-
</Reference>
102-
<Reference Include="WebGrease">
103-
<Private>True</Private>
104-
<HintPath>packages\WebGrease.1.6.0\lib\WebGrease.dll</HintPath>
105-
</Reference>
106-
<Reference Include="Antlr3.Runtime">
107-
<Private>True</Private>
108-
<HintPath>packages\Antlr.3.5.0.2\lib\Antlr3.Runtime.dll</HintPath>
109-
</Reference>
11099
</ItemGroup>
111100
<ItemGroup>
112-
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform">
113-
<HintPath>packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.2.0.1\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath>
114-
</Reference>
115101
</ItemGroup>
116102
<ItemGroup>
117-
<Compile Include="App_Start\BundleConfig.cs" />
118103
<Compile Include="App_Start\FilterConfig.cs" />
119104
<Compile Include="App_Start\RouteConfig.cs" />
120105
<Compile Include="Controllers\HomeController.cs" />
@@ -130,7 +115,6 @@
130115
<Content Include="Scripts\bootstrap.min.js" />
131116
<Content Include="Scripts\jquery-3.7.0.js" />
132117
<Content Include="Scripts\jquery-3.7.0.min.js" />
133-
<Content Include="Scripts\modernizr-2.8.3.js" />
134118
<Content Include="favicon.ico" />
135119
<Content Include="Global.asax" />
136120
<Content Include="Web.config" />

‎Side-by-Side-Comparison/Global.asax.cs‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
using System.Web;
21
using System.Web.Mvc;
3-
using System.Web.Optimization;
42
using System.Web.Routing;
53

64
namespace DocumentEditor
@@ -12,7 +10,6 @@ protected void Application_Start()
1210
AreaRegistration.RegisterAllAreas();
1311
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
1412
RouteConfig.RegisterRoutes(RouteTable.Routes);
15-
BundleConfig.RegisterBundles(BundleTable.Bundles);
1613
}
1714
}
1815
}

0 commit comments

Comments
 (0)