Skip to content

Commit 76dc571

Browse files
committed
Plugins project referenced to avoid deployment issues
1 parent bfee0de commit 76dc571

3 files changed

Lines changed: 5 additions & 91 deletions

File tree

src/App/App.csproj

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
</ItemGroup>
2020

2121
<ItemGroup>
22+
<ProjectReference Include="..\..\plugins\Common\Common.csproj" />
2223
<ProjectReference Include="..\Core\Core.csproj" />
2324
</ItemGroup>
2425

@@ -45,12 +46,8 @@
4546
<PluginBaseDir>$(SolutionDir)plugins\Common\</PluginBaseDir>
4647
<UpgradeBaseDir>$(SolutionDir)src\Upgrade\</UpgradeBaseDir>
4748
</PropertyGroup>
48-
<Copy SourceFiles="$(PluginBaseDir)\bin\$(Configuration)\$(TargetFramework)\Common.dll"
49-
DestinationFolder="$(TargetDir)"
50-
Condition="Exists('$(PluginBaseDir)bin\$(Configuration)\$(TargetFramework)\Common.dll')" />
51-
<Copy SourceFiles="$(UpgradeBaseDir)\bin\$(Configuration)\$(TargetFramework)\Upgrade.dll"
52-
DestinationFolder="$(TargetDir)"
53-
Condition="Exists('$(UpgradeBaseDir)bin\$(Configuration)\$(TargetFramework)\Upgrade.dll')" />
49+
<Copy SourceFiles="$(PluginBaseDir)\bin\$(Configuration)\$(TargetFramework)\Common.dll" DestinationFolder="$(TargetDir)" Condition="Exists('$(PluginBaseDir)bin\$(Configuration)\$(TargetFramework)\Common.dll')" />
50+
<Copy SourceFiles="$(UpgradeBaseDir)\bin\$(Configuration)\$(TargetFramework)\Upgrade.dll" DestinationFolder="$(TargetDir)" Condition="Exists('$(UpgradeBaseDir)bin\$(Configuration)\$(TargetFramework)\Upgrade.dll')" />
5451
</Target>
5552

5653
</Project>

src/App/Pages/Admin/Posts/Index.cshtml.cs

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

src/App/Pages/Admin/Shared/_Layout.cshtml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@inject IViewLocalizer Localizer
22
@inject Core.Services.IDataService _data;
3+
@inject Core.Services.INotificationService _notes;
34
@{
45
IEnumerable<Notification> _notifications = new List<Notification>();
56
bool _isAdmin = false;
@@ -10,10 +11,7 @@
1011
if(user != null)
1112
{
1213
_isAdmin = user.IsAdmin;
13-
}
14-
if(Model.Notifications != null)
15-
{
16-
_notifications = (IEnumerable<Notification>)Model.Notifications;
14+
_notifications = await _notes.GetNotifications(user.Id);
1715
}
1816
}
1917
catch { }

0 commit comments

Comments
 (0)