Skip to content

Commit

Permalink
__feat__: Migrate project to csproj
Browse files Browse the repository at this point in the history
- Downgrade from netstandard1.5 to netstandard1.3
- Clean up build warnings in the csproj files

Closes FantasticFiasco#7
  • Loading branch information
scottamartin committed Apr 13, 2017
1 parent a4cdeac commit 7579a1b
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 115 deletions.
6 changes: 0 additions & 6 deletions global.json

This file was deleted.

10 changes: 5 additions & 5 deletions serilog-sinks-udp.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
# Visual Studio 15
VisualStudioVersion = 15.0.26114.2
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "documentation", "documentation", "{21948E8D-F145-4F2C-86FF-95521C2F7D5C}"
ProjectSection(SolutionItems) = preProject
Expand All @@ -20,11 +20,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{724B250D
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{DB19D3CD-BF05-45EA-97D8-FC9F64BF0B7B}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Serilog.Sinks.Udp", "src\Serilog.Sinks.Udp\Serilog.Sinks.Udp.xproj", "{33E1DD8E-E72D-43A9-AB5B-31356F6E794D}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serilog.Sinks.Udp", "src\Serilog.Sinks.Udp\Serilog.Sinks.Udp.csproj", "{33E1DD8E-E72D-43A9-AB5B-31356F6E794D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{4921D7A1-CCB2-4DAA-A5BA-1EF24F2D0ADA}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Serilog.Sinks.Udp.Tests", "test\Serilog.Sinks.Udp.Tests\Serilog.Sinks.Udp.Tests.xproj", "{432880A0-3304-48F9-93E9-E00B3369686A}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serilog.Sinks.Udp.Tests", "test\Serilog.Sinks.Udp.Tests\Serilog.Sinks.Udp.Tests.csproj", "{432880A0-3304-48F9-93E9-E00B3369686A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
35 changes: 35 additions & 0 deletions src/Serilog.Sinks.Udp/Serilog.Sinks.Udp.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Description>Serilog event sink that sends UDP packages over the network.</Description>
<VersionPrefix>2.2.0</VersionPrefix>
<Authors>Mattias Kindborg</Authors>
<TargetFrameworks>net45;netstandard1.3</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>Serilog.Sinks.Udp</AssemblyName>
<AssemblyOriginatorKeyFile>../../Serilog.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
<PackageId>Serilog.Sinks.Udp</PackageId>
<PackageTags>serilog;udp</PackageTags>
<PackageIconUrl>http://serilog.net/images/serilog-sink-nuget.png</PackageIconUrl>
<PackageProjectUrl>http://serilog.net</PackageProjectUrl>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Serilog" Version="2.4.0" />
<PackageReference Include="Serilog.Sinks.PeriodicBatching" Version="2.0.1" />
</ItemGroup>

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

<PropertyGroup Condition=" '$(TargetFramework)' == 'net45' ">
<DefineConstants>$(DefineConstants);NET4</DefineConstants>
</PropertyGroup>

</Project>
19 changes: 0 additions & 19 deletions src/Serilog.Sinks.Udp/Serilog.Sinks.Udp.xproj

This file was deleted.

37 changes: 0 additions & 37 deletions src/Serilog.Sinks.Udp/project.json

This file was deleted.

24 changes: 24 additions & 0 deletions test/Serilog.Sinks.Udp.Tests/Serilog.Sinks.Udp.Tests.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netcoreapp1.1</TargetFrameworks>
<AssemblyName>Serilog.Sinks.Udp.Tests</AssemblyName>
<PackageId>Serilog.Sinks.Udp.Tests</PackageId>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../../src/Serilog.Sinks.Udp/Serilog.Sinks.Udp.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.2.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" />
<PackageReference Include="Moq" Version="4.7.8" />
</ItemGroup>

</Project>
21 changes: 0 additions & 21 deletions test/Serilog.Sinks.Udp.Tests/Serilog.Sinks.Udp.Tests.xproj

This file was deleted.

27 changes: 0 additions & 27 deletions test/Serilog.Sinks.Udp.Tests/project.json

This file was deleted.

0 comments on commit 7579a1b

Please sign in to comment.