Skip to content

Commit 22f50e2

Browse files
committed
Update to .net standard 2.0
1 parent 317d9cd commit 22f50e2

File tree

6 files changed

+54
-16
lines changed

6 files changed

+54
-16
lines changed

Exceptionless.RandomData.sln

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

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26228.9
4+
VisualStudioVersion = 15.0.26730.3
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{98954EAB-7EFF-44E3-A9D0-1A21AD220B8B}"
77
ProjectSection(SolutionItems) = preProject
88
appveyor.yml = appveyor.yml
9-
build\common.props = build\common.props
109
README.md = README.md
11-
build\sourcelink.props = build\sourcelink.props
12-
build\test.props = build\test.props
1310
EndProjectSection
1411
EndProject
1512
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Exceptionless.RandomData", "src\Exceptionless.RandomData\Exceptionless.RandomData.csproj", "{6D157F81-A2C0-440C-A10B-488A8D3A7BF4}"
@@ -34,4 +31,7 @@ Global
3431
GlobalSection(SolutionProperties) = preSolution
3532
HideSolutionNode = FALSE
3633
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {B10F436C-D47D-4639-9C4D-74302C562D89}
36+
EndGlobalSection
3737
EndGlobal

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Utility class to easily generate random data. This makes generating good unit te
99

1010
[This package](https://www.nuget.org/packages/Exceptionless.RandomData/) can be installed via the [NuGet package manager](https://docs.nuget.org/consume/Package-Manager-Dialog). If you need help, please contact us via in-app support or [open an issue](https://github.com/exceptionless/Exceptionless.RandomData/issues/new). We’re always here to help if you have any questions!
1111

12-
1. You will need to have [Visual Studio 2013](http://www.visualstudio.com/products/visual-studio-community-vs) installed.
12+
1. You will need to have [Visual Studio 2017](http://www.visualstudio.com/products/visual-studio-community-vs) installed.
1313
2. Open the `Exceptionless.RandomData.sln` Visual Studio solution file.
1414

1515
## Using RandomData

appveyor.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ init:
1212
- ps: If ("$env:APPVEYOR_REPO_TAG" -ne "true") { $env:VERSION_SUFFIX="pre" }
1313
- ps: 'Write-Output "Version: $($env:APPVEYOR_BUILD_VERSION)-$($env:VERSION_SUFFIX)"'
1414

15+
install:
16+
- cmd: curl -O https://download.microsoft.com/download/0/F/D/0FD852A4-7EA1-4E2A-983A-0484AC19B92C/dotnet-sdk-2.0.0-win-x64.exe
17+
- cmd: dotnet-sdk-2.0.0-win-x64.exe /install /quiet /norestart /log install.log
18+
1519
before_build:
1620
- ps: .\build\Set-BuildVersion -Version $env:APPVEYOR_BUILD_VERSION -Suffix $env:VERSION_SUFFIX
1721
- nuget sources add -name Exceptionless -source https://www.myget.org/F/exceptionless/api/v3/index.json
@@ -23,6 +27,10 @@ build_script:
2327
#on_failure:
2428
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
2529

30+
test_script:
31+
- ps: Push-Location .\test\Exceptionless.RandomData.Tests
32+
- ps: dotnet xunit -configuration Release
33+
2634
after_test:
2735
- ps: dotnet pack -c Release
2836

build/common.props

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
<Project ToolsVersion="15.0">
22
<Import Project="version.props" />
33

4-
<PropertyGroup>
5-
<ProjectParentDirectory>$([System.IO.Path]::GetDirectoryName('$(MSBuildProjectDirectory)'))</ProjectParentDirectory>
6-
<ProjectParentDirectoryName>$([System.IO.Path]::GetFileName('$(ProjectParentDirectory)'))</ProjectParentDirectoryName>
7-
</PropertyGroup>
8-
9-
<Import Project="sourcelink.props" Condition="'$(ProjectParentDirectoryName)' == 'src'" />
10-
114
<PropertyGroup>
125
<Product>Exceptionless RandomData Generator</Product>
136
<Description>Exceptionless RandomData Generator</Description>
@@ -27,4 +20,10 @@
2720
<RepositoryUrl>https://github.com/exceptionless/Exceptionless.RandomData</RepositoryUrl>
2821
<VersionSuffix Condition="'$(VersionSuffix)'!='' AND '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
2922
</PropertyGroup>
23+
24+
<ItemGroup>
25+
<PackageReference Include="SourceLink.Create.GitHub" Version="2.1.2" PrivateAssets="all" />
26+
<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.1.2" />
27+
<DotNetCliToolReference Include="dotnet-sourcelink" Version="2.1.2" />
28+
</ItemGroup>
3029
</Project>
Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Import Project="..\..\build\common.props" />
2+
<Import Project="..\..\build\version.props" />
3+
34
<PropertyGroup>
4-
<TargetFrameworks>netstandard1.3;net461</TargetFrameworks>
5+
<TargetFrameworks>netstandard2.0</TargetFrameworks>
6+
<Product>Exceptionless RandomData Generator</Product>
7+
<Description>Exceptionless RandomData Generator</Description>
8+
<Copyright>Copyright (c) 2017 Exceptionless. All rights reserved.</Copyright>
9+
<Authors>bniemyjski;ejsmith</Authors>
10+
<NoWarn>$(NoWarn);CS1591</NoWarn>
11+
<WarningsAsErrors>true</WarningsAsErrors>
12+
<DebugType>portable</DebugType>
13+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
14+
<PackageOutputPath>$(SolutionDir)artifacts\</PackageOutputPath>
15+
16+
<PackageReleaseNotes>https://github.com/exceptionless/Exceptionless.RandomData/releases</PackageReleaseNotes>
17+
<PackageIconUrl>https://be.exceptionless.io/img/exceptionless-32.png</PackageIconUrl>
18+
<PackageProjectUrl>https://github.com/exceptionless/Exceptionless.RandomData</PackageProjectUrl>
19+
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
20+
<RepositoryType>git</RepositoryType>
21+
<RepositoryUrl>https://github.com/exceptionless/Exceptionless.RandomData</RepositoryUrl>
22+
<VersionSuffix Condition="'$(VersionSuffix)'!='' AND '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix>
523
</PropertyGroup>
24+
25+
<ItemGroup>
26+
<PackageReference Include="SourceLink.Create.GitHub" Version="2.1.2" PrivateAssets="all" />
27+
<DotNetCliToolReference Include="dotnet-sourcelink-git" Version="2.1.2" />
28+
<DotNetCliToolReference Include="dotnet-sourcelink" Version="2.1.2" />
29+
</ItemGroup>
630
</Project>
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
<Import Project="..\..\build\test.props" />
32
<PropertyGroup>
4-
<TargetFramework>net461</TargetFramework>
3+
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<IsPackable>False</IsPackable>
55
</PropertyGroup>
66
<ItemGroup>
77
<ProjectReference Include="..\..\src\Exceptionless.RandomData\Exceptionless.RandomData.csproj" />
88
</ItemGroup>
9+
<ItemGroup>
10+
<PackageReference Include="Foundatio.Logging.Xunit" Version="5.1.1474" />
11+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0" />
12+
<PackageReference Include="xunit" Version="2.3.0-beta4-build3742" />
13+
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0-beta4-build3742" />
14+
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.0-beta4-build3742" />
15+
</ItemGroup>
916
</Project>

0 commit comments

Comments
 (0)