Skip to content

Commit

Permalink
Merge pull request #26 from Nihlus/netstandard-2.1
Browse files Browse the repository at this point in the history
Netstandard 2.1
  • Loading branch information
David-Desmaisons authored Nov 2, 2020
2 parents af54231 + d97c849 commit b11d685
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 119 deletions.
8 changes: 8 additions & 0 deletions RateLimiter.Documentation/RateLimiter.Documentation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@
</PackageReference>
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

<PropertyGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
<BuildDocFx>false</BuildDocFx>
</PropertyGroup>

</Project>
6 changes: 0 additions & 6 deletions RateLimiter.Example/App.config

This file was deleted.

36 changes: 0 additions & 36 deletions RateLimiter.Example/Properties/AssemblyInfo.cs

This file was deleted.

77 changes: 14 additions & 63 deletions RateLimiter.Example/RateLimiter.Example.csproj
Original file line number Diff line number Diff line change
@@ -1,72 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DBDA5E30-34CE-4738-BC0A-5DFD7FB0CE16}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>RateLimiter.Example</RootNamespace>
<AssemblyName>RateLimiter.Example</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TargetFramework>net472</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<Reference Include="ComposableAsync.Core, Version=1.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\ComposableAsync.Core.1.1.0\lib\net472\ComposableAsync.Core.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<Reference Include="System.Net.Http.Formatting, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.AspNet.WebApi.Client.5.2.7\lib\net45\System.Net.Http.Formatting.dll</HintPath>
</Reference>
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<PackageReference Include="ComposableAsync.Core" Version="1.3.0" />
<PackageReference Include="Microsoft.AspNet.WebApi.Client" Version="5.2.7" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

<ItemGroup>
<Compile Include="OpenWeatherMapClient.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="WeatherDto.cs" />
<ProjectReference Include="..\RateLimiter\RateLimiter.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RateLimiter\RateLimiter.csproj">
<Project>{eb70fcc6-051a-4b84-bd28-6b8a14353fa5}</Project>
<Name>RateLimiter</Name>
</ProjectReference>

<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

</Project>
6 changes: 0 additions & 6 deletions RateLimiter.Example/packages.config

This file was deleted.

8 changes: 6 additions & 2 deletions RateLimiter.Tests/RateLimiter.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ComposableAsync.Core" Version="1.1.0" />
<PackageReference Include="ComposableAsync.Factory" Version="1.1.0" />
<PackageReference Include="ComposableAsync.Core" Version="1.3.0" />
<PackageReference Include="ComposableAsync.Factory" Version="1.3.0" />
<PackageReference Include="FluentAssertions">
<Version>5.6.0</Version>
</PackageReference>
Expand All @@ -34,4 +34,8 @@
<ProjectReference Include="..\RateLimiter\RateLimiter.csproj" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion RateLimiter.Tests/Sample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public async Task UsageWithFactory()
await cancellable.Should().ThrowAsync<OperationCanceledException>();

var res = await timeLimited.GetValue();
res.Should().Be(56);
res.Should().BeLessOrEqualTo(56);
}

[Fact(Skip = "for demo purpose only")]
Expand Down
14 changes: 9 additions & 5 deletions RateLimiter/RateLimiter.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2;net472</TargetFrameworks>
<TargetFrameworks>netstandard2.1;netstandard2.0;net472</TargetFrameworks>
<DebugType>full</DebugType>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>RateLimiter</AssemblyName>
<RootNamespace>RateLimiter</RootNamespace>
<Authors>David Desmaisons</Authors>
<Version>2.1.0</Version>
<Version>2.1.1</Version>
<PackageProjectUrl></PackageProjectUrl>
<RepositoryUrl>https://github.com/David-Desmaisons/RateLimiter</RepositoryUrl>
<PackageLicenseUrl>https://github.com/David-Desmaisons/RateLimiter/blob/master/LICENSE</PackageLicenseUrl>
Expand All @@ -22,13 +22,17 @@ Features:
<PackageId>RateLimiter</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageTags>Asynchronous, Task, Rate limiting</PackageTags>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
<FileVersion>2.1.0.0</FileVersion>
<AssemblyVersion>2.1.1.0</AssemblyVersion>
<FileVersion>2.1.1.0</FileVersion>
<PackageReleaseNotes>.NET Standard support</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="ComposableAsync.Core" Version="1.1.0" />
<PackageReference Include="ComposableAsync.Core" Version="1.3.0" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework.StartsWith('net4')) AND '$(MSBuildRuntimeType)' == 'Core' AND '$(OS)' != 'Windows_NT'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

</Project>

0 comments on commit b11d685

Please sign in to comment.