Browse Source

Update csproj to codesign assemblies + create package

Brad Robinson 4 years ago
parent
commit
0c1440c9d1
3 changed files with 47 additions and 0 deletions
  1. 25 0
      .vscode/tasks.json
  2. BIN
      Artwork/nuget-icon.png
  3. 22 0
      Topten.JsonKit/Topten.JsonKit.csproj

+ 25 - 0
.vscode/tasks.json

@@ -0,0 +1,25 @@
+
+{
+    // See https://go.microsoft.com/fwlink/?LinkId=733558
+    // for the documentation about the tasks.json format
+    "version": "2.0.0",
+    "tasks": [
+        {
+            "label": "build",
+            "command": "dotnet",
+            "type": "shell",
+            "args": [
+                "build",
+                // Ask dotnet build to generate full paths for file names.
+                "/property:GenerateFullPaths=true",
+                // Do not generate summary otherwise it leads to duplicate errors in Problems panel
+                "/consoleloggerparameters:NoSummary"
+            ],
+            "group": "build",
+            "presentation": {
+                "reveal": "silent"
+            },
+            "problemMatcher": "$msCompile"
+        }
+    ]
+}

BIN
Artwork/nuget-icon.png


+ 22 - 0
Topten.JsonKit/Topten.JsonKit.csproj

@@ -7,7 +7,29 @@
     <IntermediateOutputPath>..\Build\$(Configuration)\$(MSBuildProjectName)\obj</IntermediateOutputPath>
     <GenerateFullPaths>True</GenerateFullPaths>
   </PropertyGroup>
+
+  <PropertyGroup Condition="'$(Configuration)'=='Release'">
+    <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
+    <Company>Topten Software</Company>
+    <Authors>Topten Software</Authors>
+    <Copyright>Copyright © 2014-2020 Topten Software.  All Rights Reserved</Copyright>
+    <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
+    <PackageIcon>nuget-icon.png</PackageIcon>
+    <PackageProjectUrl>https://github.com/toptensoftware/jsonkit</PackageProjectUrl>
+    <PackageTags>JSON, Serialization</PackageTags>
+    <Description>Lightweight JSON Serialization Library</Description>
+  </PropertyGroup>
+
   <ItemGroup>
     <Compile Include="..\version.cs" Link="version.cs" />
   </ItemGroup>
+
+  <Target Name="Code Sign" AfterTargets="Build" Condition="'$(Configuration)'=='Release' And '$(TargetFileName)'!=''">
+      <Exec Command="ttssign $(TargetDir)$(TargetFileName)" />
+  </Target>
+
+  <ItemGroup>
+      <None Include="../Artwork/nuget-icon.png" Pack="true" PackagePath=""/>
+  </ItemGroup>
+
 </Project>