Skip to content

Commit 76734f3

Browse files
feat(target): support .NET Standard 1.6
1 parent 2cd5ed5 commit 76734f3

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
Provides access to the [Inter Planetary File System API](https://ipfs.io/docs/api/) for .Net (C#, VB, F# ...). It supports the following runtimes
99

1010
- .NET Framework 4.5
11+
- .NET Standard 1.6
1112
- .NET Standard 2.0
1213

1314

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ after_test:
6666
- packages\OpenCover.4.6.519\tools\OpenCover.Console.exe
6767
-register:user -filter:"+[Ipfs.Api*]* -[*Tests]*"
6868
-target:"c:\Program Files\dotnet\dotnet.exe"
69-
-targetargs:"test -c Release --no-build --no-restore test"
69+
-targetargs:"test -c Release --no-build --no-restore --framework netcoreapp2.0 test"
7070
-output:coverage.xml
7171
-mergeoutput
7272
-hideskipped:File

src/IpfsApi.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2;net45</TargetFrameworks>
4+
<TargetFrameworks>netstandard16;netstandard2;net45</TargetFrameworks>
55
<AssemblyName>Ipfs.Api</AssemblyName>
66
<RootNamespace>Ipfs.Api</RootNamespace>
77
<DocumentationFile>Ipfs.Api.xml</DocumentationFile>
@@ -28,7 +28,7 @@
2828
</PropertyGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Ipfs.Core" Version="0.7.1" />
31+
<PackageReference Include="Ipfs.Core" Version="0.8.0" />
3232
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
3333
<PackageReference Include="System.Net.Http" Version="4.3.3" />
3434
</ItemGroup>

src/IpfsClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public partial class IpfsClient
4747
public IpfsClient()
4848
{
4949
ApiUri = DefaultApiUri;
50-
var version = Assembly.GetExecutingAssembly().GetName().Version;
50+
var version = typeof(IpfsClient).GetTypeInfo().Assembly.GetName().Version;
5151
UserAgent = string.Format("net-ipfs/{0}.{1}", version.Major, version.Minor);
5252
TrustedPeers = new TrustedPeerCollection(this);
5353
PinnedObjects = new PinnedCollection(this);

test/IpfsApiTests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp2.0</TargetFramework>
4+
<TargetFrameworks>netcoreapp1.1;netcoreapp2.0;net45</TargetFrameworks>
55

66
<IsPackable>false</IsPackable>
77
<DebugType>full</DebugType>

0 commit comments

Comments
 (0)