Skip to content
This repository has been archived by the owner on Feb 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #3 from panesofglass/netstandard2.0
Browse files Browse the repository at this point in the history
Update to netstandard2.0
  • Loading branch information
panesofglass authored Sep 6, 2018
2 parents 9fe31e2 + b35598e commit 484c4aa
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 14 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
language: csharp

mono: 5.2.0
dotnet: 2.0.0

install:
- mozroots --import --sync
# workaround for missing .net 4.5 targing pack
- export FrameworkPathOverride=$(dirname $(which mono))/../lib/mono/4.5/

matrix:
include:
- os: linux # Ubuntu 14.04
dist: trusty
sudo: required
dotnet: 2.0.0
- os: osx # OSX 10.12
osx_image: xcode9.1
dotnet: 2.0.0
dist: trusty
sudo: required

script:
- dotnet --info
- dotnet restore
- dotnet build -c Release
- dotnet pack -c Release --include-symbols

branches:
except:
- gh-pages
5 changes: 0 additions & 5 deletions global.json

This file was deleted.

3 changes: 2 additions & 1 deletion nuget.props → src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project>
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VersionPrefix>4.0.0</VersionPrefix>
<Authors>Andrew Cherry, Ryan Riley, Marcus Griep</Authors>
Expand Down
9 changes: 3 additions & 6 deletions src/Freya.Testing.Common.targets
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net45;netstandard1.6</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DefineConstants Condition="'$(Hopac)' == 'true'">$(DefineConstants);HOPAC</DefineConstants>
</PropertyGroup>
<Import Project="..\nuget.props" />
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)Freya.Testing\Testing.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="FSharp.NET.Sdk" Version="1.*" PrivateAssets="All" />
<PackageReference Include="FSharp.Core" Version="4.1.0" />
<PackageReference Include="Aether" Version="[8.2.0,9)" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net45'">
<PackageReference Include="Unquote" Version="3.1.2" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.6'">
<PackageReference Include="Unquote" Version="3.1.3-alpha-*" />
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Unquote" Version="4.*" />
</ItemGroup>

<ItemGroup Condition="'$(Hopac)' != 'true'">
Expand Down
2 changes: 1 addition & 1 deletion src/Freya.Testing.Hopac/Freya.Testing.Hopac.fsproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Hopac>true</Hopac>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Freya.Testing/Freya.Testing.fsproj
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<Project Sdk="FSharp.NET.Sdk;Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Freya.Testing.Common.targets" />
</Project>

0 comments on commit 484c4aa

Please sign in to comment.