Skip to content

Commit

Permalink
Clean-up csproj, use PackageLicenseExpression & PackageIcon
Browse files Browse the repository at this point in the history
  • Loading branch information
augustoproiete committed Jul 11, 2020
1 parent 49f4ead commit a13c2de
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 29 deletions.
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<Project>
<PropertyGroup>
<LangVersion>latest</LangVersion>
</PropertyGroup>
</Project>
Binary file added assets/serilog-sink-nuget.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 43 additions & 29 deletions src/Serilog.Sinks.Notepad/Serilog.Sinks.Notepad.csproj
Original file line number Diff line number Diff line change
@@ -1,48 +1,64 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>A Serilog sink that writes log events to Notepad.</Description>
<VersionPrefix>1.1.0</VersionPrefix>
<Authors>C. Augusto Proiete &amp; Contributors</Authors>
<TargetFrameworks>net45;netstandard2.0;netcoreapp2.0;netcoreapp3.1</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<RootNamespace>Serilog</RootNamespace>

<AssemblyName>Serilog.Sinks.Notepad</AssemblyName>
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<GenerateAssemblyVersionAttribute>true</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>true</GenerateAssemblyFileVersionAttribute>
<GenerateDocumentationFile>false</GenerateDocumentationFile>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<DebugType>portable</DebugType>
<IncludeSymbols>true</IncludeSymbols>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>

<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>

<NoWarn>$(NoWarn);NU5048</NoWarn>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TreatSpecificWarningsAsErrors />
</PropertyGroup>

<PropertyGroup>
<MinClientVersion>3.3</MinClientVersion>
<PackageId>Serilog.Sinks.Notepad</PackageId>
<Version>0.0.1-local</Version>
<Authors>C. Augusto Proiete &amp; Contributors</Authors>
<Company>augustoproiete.net</Company>
<Description>A Serilog sink that writes log events to Notepad.</Description>
<Copyright>Copyright 2018-2020 C. Augusto Proiete &amp; Contributors - Provided under the Apache License, Version 2.0</Copyright>
<PackageTags>serilog;notepad;sink</PackageTags>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageIcon>images\icon.png</PackageIcon>
<PackageIconUrl>http://serilog.net/images/serilog-sink-nuget.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/augustoproiete/serilog-sinks-notepad</PackageProjectUrl>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageReleaseNotes>https://github.com/augustoproiete/serilog-sinks-notepad/releases/tag/v$(VersionPrefix)</PackageReleaseNotes>
<MinClientVersion>3.3</MinClientVersion>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<RepositoryUrl>https://github.com/augustoproiete/serilog-sinks-notepad</RepositoryUrl>
<PackageReleaseNotes>https://github.com/augustoproiete/serilog-sinks-notepad/releases</PackageReleaseNotes>
<RepositoryType>git</RepositoryType>
<Copyright>Copyright (c) 2020 C. Augusto Proiete &amp; Contributors - Provided under the Apache License, Version 2.0</Copyright>
<GenerateAssemblyVersionAttribute>true</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>true</GenerateAssemblyFileVersionAttribute>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!-- Don't reference the full NETStandard.Library -->
<RepositoryUrl>https://github.com/augustoproiete/serilog-sinks-notepad</RepositoryUrl>
</PropertyGroup>

<PropertyGroup>
<DisableImplicitFrameworkReferences Condition=" '$(TargetFramework)' == 'net45' ">true</DisableImplicitFrameworkReferences>
<NoWarn>$(NoWarn);NU5048</NoWarn>
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
<TreatSpecificWarningsAsErrors />
<RootNamespace>Serilog</RootNamespace>
</PropertyGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.CSharp" />
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo">
<_Parameter1>Serilog.Sinks.Notepad.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100fb8d13fd344a1c6fe0fe83ef33c1080bf30690765bc6eb0df26ebfdf8f21670c64265b30db09f73a0dea5b3db4c9d18dbf6d5a25af5ce9016f281014d79dc3b4201ac646c451830fc7e61a2dfd633d34c39f87b81894191652df5ac63cc40c77f3542f702bda692e6e8a9158353df189007a49da0f3cfd55eb250066b19485ec</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

<ItemGroup>
<None Include="..\..\LICENSE" Pack="true" Visible="false" PackagePath="" />
</ItemGroup>

<ItemGroup>
<None Remove="*.DotSettings" />
</ItemGroup>
Expand All @@ -57,10 +73,8 @@
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="Microsoft.CSharp" />
<ItemGroup>
<None Include="..\..\assets\serilog-sink-nuget.png" Pack="true" Visible="false" PackagePath="images\icon.png" />
</ItemGroup>

</Project>

0 comments on commit a13c2de

Please sign in to comment.