@@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
- <TargetFramework>netcoreapp2.1</TargetFramework>
+ <TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
</Project>
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
- <TargetFrameworks>netcoreapp2.1;net461;netcoreapp3.1</TargetFrameworks>
+ <TargetFrameworks>netcoreapp2.1;net461;netcoreapp3.1;net6.0</TargetFrameworks>
<NoWarn>$(NoWarn);CS0618</NoWarn>
<NoWarn>$(NoWarn);CS0618;CS8603;CS8625</NoWarn>
@@ -17,7 +17,7 @@
<ProjectReference Include="..\System.Interactive\System.Interactive.csproj" />
- <ReferenceAssemblyProjectReference Include="..\refs\System.Interactive.Providers.Ref\System.Interactive.Providers.Ref.csproj" />
+ <ReferenceAssemblyProjectReference Include="..\refs\System.Interactive.Providers.Ref\System.Interactive.Providers.Ref.csproj" ReferenceOutputAssembly="false" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
- <TargetFrameworks>netcoreapp2.1;net461</TargetFrameworks>
+ <TargetFrameworks>netcoreapp2.1;net461;net6.0</TargetFrameworks>
@@ -11,6 +11,7 @@ namespace Tests
{
public class Max : Tests
+#if !NET6_0_OR_GREATER
[Fact]
public void Max_Arguments()
@@ -31,5 +32,6 @@ namespace Tests
return Comparer<int>.Default.Compare(x % 7, y % 7);
}
+#endif
public class MaxBy : Tests
public void MaxBy_Arguments()
@@ -33,5 +34,6 @@ namespace Tests
AssertThrows<InvalidOperationException>(() => Enumerable.Empty<int>().MaxBy(x => x));
public class Min : Tests
public void Min_Arguments()
return Comparer<int>.Default.Compare(x % 3, y % 3);
public class MinBy : Tests
public void MinBy_Arguments()
AssertThrows<InvalidOperationException>(() => Enumerable.Empty<int>().MinBy(x => x));
@@ -8,7 +8,7 @@ using Xunit;
namespace Tests
-#if !NETCOREAPP2_1
+#if !NETCOREAPP2_1_OR_GREATER
public class SkipLast : Tests
public class TakeLast : Tests
@@ -10,7 +10,7 @@
<EmbeddedResource Include="Properties\System.Interactive.rd.xml" />
- <ReferenceAssemblyProjectReference Include="..\refs\System.Interactive.Ref\System.Interactive.Ref.csproj" />
+ <ReferenceAssemblyProjectReference Include="..\refs\System.Interactive.Ref\System.Interactive.Ref.csproj" ReferenceOutputAssembly="false" />
@@ -8,6 +8,8 @@ namespace System.Linq
public static partial class EnumerableEx
+
+#if !(REFERENCE_ASSEMBLY && (NET6_0))
/// <summary>
/// Returns the maximum value in the enumerable sequence by using the specified comparer to compare values.
/// </summary>
@@ -24,5 +26,6 @@ namespace System.Linq
return MaxBy(source, x => x, comparer).First();
@@ -8,6 +8,7 @@ namespace System.Linq
/// Returns the elements with the maximum key value by using the default comparer to compare key values.
@@ -80,5 +81,6 @@ namespace System.Linq
return result;
/// Returns the minimum value in the enumerable sequence by using the specified comparer to compare values.
@@ -24,5 +25,6 @@ namespace System.Linq
return MinBy(source, x => x, comparer).First();
/// Returns the elements with the minimum key value by using the default comparer to compare key values.
@@ -46,5 +48,6 @@ namespace System.Linq
return ExtremaBy(source, keySelector, (key, minValue) => -comparer.Compare(key, minValue));
@@ -8,7 +8,7 @@ namespace System.Linq
-#if !(REFERENCE_ASSEMBLY && (NETCOREAPP2_0 || NETSTANDARD2_1))
+#if !(REFERENCE_ASSEMBLY && (NETCOREAPP2_1 || NETSTANDARD2_1))
/// Bypasses a specified number of contiguous elements from the end of the sequence and returns the remaining elements.
+#if !(REFERENCE_ASSEMBLY && (NETCOREAPP2_1 || NETSTANDARD2_1 ))
/// Returns a specified number of contiguous elements from the end of the sequence.
@@ -3,8 +3,9 @@
<Description>Interactive Extensions Providers Library used to build query providers and express queries over enumerable sequences.</Description>
<AssemblyTitle>Interactive Extensions - Providers Library</AssemblyTitle>
- <TargetFrameworks>netstandard1.0;netcoreapp2.0;netstandard2.1</TargetFrameworks>
+ <TargetFrameworks>netstandard1.0;netcoreapp2.1;netstandard2.1</TargetFrameworks>
<PackageTags>Ix;Interactive;Extensions;Enumerable</PackageTags>
+ <AssemblyName>System.Interactive.Providers</AssemblyName>
<PropertyGroup Condition="'$(TargetFramework)' == 'netstandard1.0'">
<Description>Interactive Extensions Main Library used to express queries over enumerable sequences.</Description>
<AssemblyTitle>Interactive Extensions - Main Library</AssemblyTitle>
+ <AssemblyName>System.Interactive</AssemblyName>
<Authors>Microsoft</Authors>
+ <TargetFrameworks>netstandard1.0;netcoreapp2.1;netstandard2.1;net6.0</TargetFrameworks>
@@ -6,6 +6,7 @@
<TargetFrameworks>net461;netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
<PackageTags>Enumerable;Asynchronous;LINQ</PackageTags>
+ <AssemblyName>System.Linq.Async</AssemblyName>
@@ -32,10 +32,15 @@ stages:
vmImage: ubuntu-latest
steps:
- task: UseDotNet@2
- displayName: Use .NET Core 5.0.x SDK
+ displayName: Use .NET Core 6.x SDK
inputs:
- version: 5.0.x
- includePreviewVersions: true
+ version: 6.x
+ - task: UseDotNet@2
+ displayName: .NET Core 5.0 runtime
+ inputs:
+ version: '5.0.x'
+ packageType: runtime
displayName: .NET Core 3.1 runtime