Browse Source

add netcoreapp2.1 target and change README.md

pull/585/head
Anton Firszov 8 years ago
parent
commit
50cda5d7e5
  1. 14
      README.md
  2. 25
      appveyor.yml
  3. 2
      tests/ImageSharp.Tests/ImageSharp.Tests.csproj

14
README.md

@ -115,17 +115,21 @@ For more examples check out:
### Manual build ### Manual build
If you prefer, you can compile ImageSharp yourself (please do and help!), you'll need: If you prefer, you can compile ImageSharp yourself (please do and help!)
- [Visual Studio 2017 (or above)](https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes) - Using [Visual Studio 2017 Preview](https://docs.microsoft.com/en-us/visualstudio/releasenotes/vs2017-preview-relnotes)
- The [.NET Core SDK Installer](https://www.microsoft.com/net/core#windows) - Non VSCode link. - Make sure you have the latest version installed
- Make sure you have [the newest 2.1 RC1 SDK installed](https://www.microsoft.com/net/core#windows)
Alternatively on Linux you can use: - Using [Visual Studio 2017](https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes)
- If you are unable and/or don't want to build ImageSharp.Tests against 2.1 RC, remove the `netcoreapp2.1` target [from TargetFrameworks](https://github.com/SixLabors/ImageSharp/blob/master/tests/ImageSharp.Tests/ImageSharp.Tests.csproj#L3) locally
Alternatively, you can work from command line and/or with a lightweight editor on **both Linux/Unix and Windows**:
- [Visual Studio Code](https://code.visualstudio.com/) with [C# Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp) - [Visual Studio Code](https://code.visualstudio.com/) with [C# Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp)
- [.Net Core](https://www.microsoft.com/net/core#linuxubuntu) - [.Net Core](https://www.microsoft.com/net/core#linuxubuntu)
To clone it locally click the "Clone in Windows" button above or run the following git commands. To clone ImageSharp locally click the "Clone in Windows" button above or run the following git commands.
```bash ```bash
git clone https://github.com/SixLabors/ImageSharp git clone https://github.com/SixLabors/ImageSharp

25
appveyor.yml

@ -6,16 +6,29 @@ skip_branch_with_pr: true
environment: environment:
matrix: matrix:
### TODO: Enable the netcoreapp2.1 target when RC2 has been released!
#- target_framework: netcoreapp2.1
# is_32bit: False
#- target_framework: netcoreapp2.1
# is_32bit: True
- target_framework: netcoreapp2.0
is_32bit: False
- target_framework: net471
is_32bit: False
- target_framework: net471 - target_framework: net471
is_32bit: True is_32bit: True
- target_framework: net462 - target_framework: net462
is_32bit: False is_32bit: False
- target_framework: net462 - target_framework: net462
is_32bit: True is_32bit: True
- target_framework: net471
is_32bit: False
- target_framework: netcoreapp2.0
is_32bit: False
#- target_framework: netcoreapp2.0 # As far as I understand, 32 bit test execution is not supported by "dotnet xunit" #- target_framework: netcoreapp2.0 # As far as I understand, 32 bit test execution is not supported by "dotnet xunit"
# is_32bit: True # is_32bit: True
#- target_framework: mono #- target_framework: mono
@ -39,7 +52,7 @@ install:
before_build: before_build:
- git submodule -q update --init - git submodule -q update --init
- cmd: dotnet --version - cmd: dotnet --info
build_script: build_script:
- cmd: build.cmd - cmd: build.cmd
@ -60,4 +73,4 @@ deploy:
secure: V/lEHP0UeMWIpWd0fiNlY2IgbCnJKQlGdRksECdJbOBdaE20Fl0RNL7WyqHe02o4 secure: V/lEHP0UeMWIpWd0fiNlY2IgbCnJKQlGdRksECdJbOBdaE20Fl0RNL7WyqHe02o4
artifact: /.*\.nupkg/ artifact: /.*\.nupkg/
on: on:
branch: master branch: master

2
tests/ImageSharp.Tests/ImageSharp.Tests.csproj

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFrameworks>net471;netcoreapp2.0;net462;net47</TargetFrameworks> <TargetFrameworks>netcoreapp2.1;netcoreapp2.0;net471;net47;net462</TargetFrameworks>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks> <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<LangVersion>7.2</LangVersion> <LangVersion>7.2</LangVersion>
<DebugType Condition="$(codecov) != ''">full</DebugType> <DebugType Condition="$(codecov) != ''">full</DebugType>

Loading…
Cancel
Save