Skip to content

Commit

Permalink
Upgrade nugets and add code signing to nuget libraries (#276)
Browse files Browse the repository at this point in the history
* Upgrade nugets and add code signing to nuget libraries

* Upgrade nugets and add code signing to nuget libraries
  • Loading branch information
k3ldar authored Sep 2, 2023
1 parent 8eea584 commit ab4198c
Show file tree
Hide file tree
Showing 39 changed files with 159 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@
<_Parameter1>PluginManager.DAL.TextFiles.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Database/PluginManager.SimpleDB/SimpleDB.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@
<PackagePath>\</PackagePath>
</None>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
8 changes: 5 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<Project>

<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" Condition="'$(ImportByWildcardBeforeMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore')"/>

<PropertyGroup>
<RunAnalyzersDuringBuild>false</RunAnalyzersDuringBuild>
<NoWarn>1701;1702;8032;8981</NoWarn>
Expand Down Expand Up @@ -32,12 +34,12 @@
</PropertyGroup>

<PropertyGroup>
<SharedVer>3.9.1</SharedVer>
<SharedWinVer>1.1.0</SharedWinVer>
<SharedVer>3.10.0</SharedVer>
<SharedWinVer>1.2.0</SharedWinVer>
</PropertyGroup>

<PropertyGroup>
<Version>5.3.0</Version>
<Version>5.4.0</Version>
<LangVersion>latest</LangVersion>
<Authors>Simon Carter ([email protected])</Authors>
<Company>Simon Carter</Company>
Expand Down
4 changes: 4 additions & 0 deletions Languages/Languages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,9 @@
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions NetCorePluginManager/AspNetCore.PluginManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@
<_Parameter1>AspNetCore.PluginManager.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions PluginManager/src/PluginManager.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@
<_Parameter1>AspNetCore.PluginManager.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,9 @@
<ItemGroup>
<ProjectReference Include="..\PluginMiddleware\PluginMiddleware.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/BadEgg.Plugin/BadEgg.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Blog.Plugin/Blog.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Breadcrumb.Plugin/Breadcrumb.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,9 @@
<ProjectReference Include="..\..\Languages\Languages.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
11 changes: 6 additions & 5 deletions Plugins/Breadcrumb.Plugin/Classes/BreadcrumbMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ public async Task Invoke(HttpContext context)

if (_breadcrumbRoutes.TryGetValue(route, out BreadcrumbRoute value))
{
context.Items.Add(Constants.Breadcrumbs,
GetBreadCrumbs(route, value.Breadcrumbs, String.Empty));
context.Items[Constants.Breadcrumbs] =
GetBreadCrumbs(route, value.Breadcrumbs, String.Empty);
found = true;
}
else
Expand All @@ -153,8 +153,8 @@ public async Task Invoke(HttpContext context)
{
if (route.StartsWith(kvp.Value.PartialRoute) && kvp.Value.HasParameters)
{
context.Items.Add(Constants.Breadcrumbs,
GetBreadCrumbs(route, kvp.Value.Breadcrumbs, Route(context).Substring(kvp.Value.PartialRoute.Length - 1)));
context.Items[Constants.Breadcrumbs] =
GetBreadCrumbs(route, kvp.Value.Breadcrumbs, Route(context).Substring(kvp.Value.PartialRoute.Length - 1));
found = true;
break;
}
Expand All @@ -170,12 +170,13 @@ public async Task Invoke(HttpContext context)
else
homeBreadCrumb = _homeBreadCrumb;

context.Items.Add(Constants.Breadcrumbs, new List<BreadcrumbItem>() { homeBreadCrumb });
context.Items[Constants.Breadcrumbs] = new List<BreadcrumbItem>() { homeBreadCrumb };
}
}
catch (Exception err)
{
_logger.AddToLog(LogLevel.Error, nameof(BreadcrumbMiddleware), err, MethodBase.GetCurrentMethod().Name);
throw;
}
}

Expand Down
4 changes: 4 additions & 0 deletions Plugins/CacheControl.Plugin/CacheControl.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,9 @@
<ProjectReference Include="..\..\SharedPluginFeatures\SharedPluginFeatures.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Company.Plugin/CompanyPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Documentation.Plugin/Documentation.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -134,5 +134,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Download.Plugin/DownloadPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/DynamicContent.Plugin/DynamicContent.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -157,5 +157,9 @@
</Content>
</ItemGroup>


<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/ErrorManager.Plugin/ErrorManager.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/GeoIpPlugin/GeoIpPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@
<ProjectReference Include="..\..\SharedPluginFeatures\SharedPluginFeatures.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/HelpDesk.Plugin/HelpDeskPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/ImageManager.Plugin/ImageManager.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/LocalizationPlugin/Localization.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@
<ProjectReference Include="..\..\Languages\Languages.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Login.Plugin/Login.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/MemoryCachePlugin/MemoryCachePlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@
<ProjectReference Include="..\..\SharedPluginFeatures\SharedPluginFeatures.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/PluginMiddleware/PluginMiddleware.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@
<ItemGroup>
<Folder Include="Classes\Session\" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Products.Plugin/ProductsPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Resources.Plugin/Resources.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,9 @@
<ItemGroup>
<EmbeddedResource Include="Views\Resources\ResourceItemSubmitted.cshtml" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/RestrictIp.Plugin/RestrictIp.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,9 @@
<ProjectReference Include="..\..\SharedPluginFeatures\SharedPluginFeatures.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/SDGeoIpPlugin/SieraDeltaGeoIpPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,9 @@
<ProjectReference Include="..\..\SharedPluginFeatures\SharedPluginFeatures.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Search.Plugin/Search.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/SeoPlugin/SeoPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,9 @@
<ProjectReference Include="..\\MemoryCachePlugin\MemoryCachePlugin.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/ShoppingCart.Plugin/ShoppingCart.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Sitemap.Plugin/Sitemap.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,9 @@
<ProjectReference Include="..\..\SharedPluginFeatures\SharedPluginFeatures.csproj" />
<ProjectReference Include="..\..\PluginManager\src\PluginManager.csproj" />
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Spider.Plugin/Spider.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@
<_Parameter1>AspNetCore.PluginManager.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/Subdomain.Plugin/Subdomain.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@
<_Parameter1>AspNetCore.PluginManager.Tests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
4 changes: 4 additions & 0 deletions Plugins/SystemAdmin.Plugin/SystemAdmin.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,9 @@
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>

<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CodeSignAssembly)'=='true'">
<Exec Command="call &quot;..\..\..\SignLibrary.bat&quot; &quot;$(TargetDir)$(TargetName)$(TargetExt)&quot;" />
</Target>

</Project>
Loading

0 comments on commit ab4198c

Please sign in to comment.