Skip to content

Commit f9e6403

Browse files
author
Joel Mitchell
committed
Fixed bug with admin javascript files not being embedded
1 parent d28bdbd commit f9e6403

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Web;
5+
using Cofoundry.Core.EmbeddedResources;
6+
7+
namespace Cofoundry.Plugins.ErrorLogging.Admin.Bootstrap
8+
{
9+
/// <summary>
10+
/// Registers this assembly so that embedded resources (e.g. views/css/js) can be picked up.
11+
/// </summary>
12+
public class AssemblyResourceRegistration : IAssemblyResourceRegistration
13+
{
14+
}
15+
}

src/Cofoundry.Plugins.ErrorLogging.Admin/Cofoundry.Plugins.ErrorLogging.Admin.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@
220220
<Compile Include="..\SolutionInfo.cs">
221221
<Link>Properties\SolutionInfo.cs</Link>
222222
</Compile>
223+
<Compile Include="Bootstrap\AssemblyResourceRegistration.cs" />
223224
<Compile Include="Plugins\Admin\Api\Errors\ErrorsApiController.cs" />
224225
<Compile Include="Plugins\Admin\Modules\Errors\Bootstrap\ErrorsModuleRegistration.cs" />
225226
<Compile Include="Plugins\Admin\Modules\Errors\Constants\ErrorsRouteLibrary.cs" />
@@ -266,7 +267,7 @@
266267
</Target>
267268
<Target Name="BeforeBuild">
268269
<ItemGroup>
269-
<EmbeddedResource Include="plugins\modules\*\mvc\views\**\*.cshtml;plugins\modules\*\mvc\views\**\*.js;plugins\modules\*\js\**\*.*;plugins\modules\*\content\**\*.*;" />
270+
<EmbeddedResource Include="plugins\admin\modules\*\mvc\views\**\*.cshtml;plugins\admin\modules\*\mvc\views\**\*.js;plugins\admin\modules\*\js\**\*.*;plugins\admin\modules\*\content\**\*.*;" />
270271
</ItemGroup>
271272
</Target>
272273
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

0 commit comments

Comments
 (0)