Skip to content

Commit 8d709bd

Browse files
committed
project cleanup
- PackageLicenseExpression instead of PackageLicense - PackageIcon instead of PackageIconUrl - new platforms for tests: netcoreapp3.0, netcoreapp2.2 - remove unused CommonAssemblyInfo.cs
1 parent 1819607 commit 8d709bd

File tree

8 files changed

+32
-26
lines changed

8 files changed

+32
-26
lines changed

Build.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ echo "build: Build started"
22

33
Push-Location $PSScriptRoot
44

5-
if(Test-Path .\artifacts) {
5+
if (Test-Path .\artifacts) {
66
echo "build: Cleaning .\artifacts"
77
Remove-Item .\artifacts -Force -Recurse
88
}
@@ -24,14 +24,14 @@ foreach ($src in ls src/*) {
2424
echo "build: Packaging project in $src"
2525

2626
& dotnet build -c Release --version-suffix=$buildSuffix
27-
if($LASTEXITCODE -ne 0) { exit 1 }
27+
if ($LASTEXITCODE -ne 0) { exit 1 }
2828

2929
if ($suffix) {
3030
& dotnet pack -c Release --include-source -o ..\..\artifacts --version-suffix=$suffix --no-build
3131
} else {
3232
& dotnet pack -c Release --include-source -o ..\..\artifacts --no-build
3333
}
34-
if($LASTEXITCODE -ne 0) { exit 1 }
34+
if ($LASTEXITCODE -ne 0) { exit 1 }
3535

3636
Pop-Location
3737
}
@@ -42,7 +42,7 @@ foreach ($test in ls test/*.Tests) {
4242
echo "build: Testing project in $test"
4343

4444
& dotnet test -c Release
45-
if($LASTEXITCODE -ne 0) { exit 3 }
45+
if ($LASTEXITCODE -ne 0) { exit 3 }
4646

4747
Pop-Location
4848
}

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: '{build}'
22
skip_tags: true
3-
image: Visual Studio 2017
3+
image: Visual Studio 2019
44
configuration: Release
55
test: off
66
build_script:

assets/CommonAssemblyInfo.cs

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

assets/icon.png

10.7 KB
Loading

destructurama-json-net.sln

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26430.12
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.29503.13
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Destructurama.JsonNet", "src\Destructurama.JsonNet\Destructurama.JsonNet.csproj", "{A79F906E-0298-49DC-93EC-CE4F1F5D13E2}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destructurama.JsonNet", "src\Destructurama.JsonNet\Destructurama.JsonNet.csproj", "{A79F906E-0298-49DC-93EC-CE4F1F5D13E2}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Destructurama.JsonNet.Tests", "test\Destructurama.JsonNet.Tests\Destructurama.JsonNet.Tests.csproj", "{182ECDA3-A97D-4BB6-BC6F-60A137478B92}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Destructurama.JsonNet.Tests", "test\Destructurama.JsonNet.Tests\Destructurama.JsonNet.Tests.csproj", "{182ECDA3-A97D-4BB6-BC6F-60A137478B92}"
9+
EndProject
10+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{213D204A-57AB-4450-9B11-8BD26B1BCAD3}"
11+
ProjectSection(SolutionItems) = preProject
12+
.gitattributes = .gitattributes
13+
.gitignore = .gitignore
14+
appveyor.yml = appveyor.yml
15+
Build.ps1 = Build.ps1
16+
CHANGES.md = CHANGES.md
17+
LICENSE = LICENSE
18+
README.md = README.md
19+
EndProjectSection
920
EndProject
1021
Global
1122
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -25,4 +36,7 @@ Global
2536
GlobalSection(SolutionProperties) = preSolution
2637
HideSolutionNode = FALSE
2738
EndGlobalSection
39+
GlobalSection(ExtensibilityGlobals) = postSolution
40+
SolutionGuid = {2E880E39-B4F2-4E27-AF13-528DF2CE4651}
41+
EndGlobalSection
2842
EndGlobal

src/Destructurama.JsonNet/Destructurama.JsonNet.csproj

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<TargetFrameworks>net452;netcoreapp1.1;netstandard2.0</TargetFrameworks>
55
<RootNamespace>Destructurama</RootNamespace>
66
<SignAssembly>True</SignAssembly>
7+
<LangVersion>latest</LangVersion>
78
<AssemblyOriginatorKeyFile>..\..\assets\Destructurama.snk</AssemblyOriginatorKeyFile>
89
<DelaySign>False</DelaySign>
910
<Authors>Destructurama Contributors</Authors>
1011
<Description>Adds support for logging JSON.NET dynamic types as structured data with Serilog.</Description>
1112
<PackageTags>serilog json</PackageTags>
1213
<PackageProjectUrl>https://github.com/destructurama</PackageProjectUrl>
13-
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
14-
<PackageIconUrl>http://destructurama.github.io/pages/images/destructurama.png</PackageIconUrl>
14+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
15+
<PackageIcon>icon.png</PackageIcon>
1516
<Product />
1617
<Company />
17-
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
18+
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
1819
<VersionPrefix>1.2.2</VersionPrefix>
19-
</PropertyGroup>
20-
21-
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
22-
<DocumentationFile>bin\Debug\Destructurama.JsonNet.xml</DocumentationFile>
23-
<OutputPath>bin\Debug\</OutputPath>
20+
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(MSBuildProjectName).xml</DocumentationFile>
2421
</PropertyGroup>
2522

2623
<ItemGroup>
2724
<None Include="..\assets\Destructurama.snk" Link="Destructurama.snk" />
25+
<None Include="..\..\assets\icon.png" Pack="true" PackagePath=""/>
2826
</ItemGroup>
2927

3028
<ItemGroup>

test/Destructurama.JsonNet.Tests/Destructurama.JsonNet.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net452;netcoreapp1.1</TargetFrameworks>
4+
<TargetFrameworks>net452;netcoreapp1.1;netcoreapp2.2;netcoreapp3.0</TargetFrameworks>
55
</PropertyGroup>
66

77
<ItemGroup>

test/Destructurama.JsonNet.Tests/Support/DelegatingSink.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ public class DelegatingSink : ILogEventSink
1111

1212
public DelegatingSink(Action<LogEvent> write)
1313
{
14-
if (write == null) throw new ArgumentNullException("write");
15-
_write = write;
14+
_write = write ?? throw new ArgumentNullException("write");
1615
}
1716

1817
public void Emit(LogEvent logEvent)

0 commit comments

Comments
 (0)