Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
a2ce633
Update Tests.props
Shane32 Nov 8, 2022
4fe0c76
Update Transports.AspNetCore.Tests.csproj
Shane32 Nov 8, 2022
0ee8115
Update Samples.Pages.Tests.csproj
Shane32 Nov 8, 2022
9976441
Update Samples.Tests.csproj
Shane32 Nov 8, 2022
a65b43a
Update Samples.MultipleSchemas.Tests.csproj
Shane32 Nov 8, 2022
8d78eaa
Update Samples.Jwt.Tests.csproj
Shane32 Nov 8, 2022
9c6c79c
Update Samples.EndpointRouting.Tests.csproj
Shane32 Nov 8, 2022
b9ce79d
Update Samples.Cors.Tests.csproj
Shane32 Nov 8, 2022
31ab7cc
Update Samples.Controller.Tests.csproj
Shane32 Nov 8, 2022
1dcbfb5
Update Samples.Complex.Tests.csproj
Shane32 Nov 8, 2022
d3f21eb
Update Samples.Basic.Tests.csproj
Shane32 Nov 8, 2022
b57a651
Update Samples.Authorization.Tests.csproj
Shane32 Nov 8, 2022
cd6b77f
Update Authorization.AspNetCore.Tests.csproj
Shane32 Nov 8, 2022
925b73c
Update ApiApprovalTests.csproj
Shane32 Nov 8, 2022
34ae051
Update Samples.Pages.csproj
Shane32 Nov 8, 2022
0e9275f
Update Samples.MultipleSchemas.csproj
Shane32 Nov 8, 2022
806d06e
Update Samples.Jwt.csproj
Shane32 Nov 8, 2022
43f40c6
Update Samples.EndpointRouting.csproj
Shane32 Nov 8, 2022
eaca78e
Update Samples.Cors.csproj
Shane32 Nov 8, 2022
50163f1
Update Samples.Controller.csproj
Shane32 Nov 8, 2022
ea86a1e
Update Samples.Complex.csproj
Shane32 Nov 8, 2022
0a70d24
Update Samples.Basic.csproj
Shane32 Nov 8, 2022
e01140f
Update Samples.Authorization.csproj
Shane32 Nov 8, 2022
0f9d91d
Update test.yml
Shane32 Nov 8, 2022
28a4a6e
Update publish.yml
Shane32 Nov 8, 2022
f2bdb2f
Update formatting.yml
Shane32 Nov 8, 2022
53ab3e0
Update build.yml
Shane32 Nov 8, 2022
f7d4594
Update codeql-analysis.yml
Shane32 Nov 8, 2022
210136c
Update Samples.Authorization.csproj
Shane32 Nov 8, 2022
c7647eb
Update Authorization.AspNetCore.Tests.csproj
Shane32 Nov 8, 2022
593b7b1
Update Tests.props
Shane32 Nov 8, 2022
66119ea
Update AuthorizationTests.cs
Shane32 Nov 8, 2022
35e1d9b
Update SubscriptionListTests.cs
Shane32 Nov 8, 2022
312488c
Update WebSocketWriterStreamTests.cs
Shane32 Nov 8, 2022
29992b9
Update WebSocketWriterStreamTests.cs
Shane32 Nov 8, 2022
5ae83f4
Update Tests.props
Shane32 Nov 8, 2022
5d0a5cc
Update Directory.Build.props
Shane32 Nov 8, 2022
9c296b5
Update Program.cs
Shane32 Nov 8, 2022
656aec8
Update Index.cshtml.cs
Shane32 Nov 8, 2022
9b3c4a8
Update Program.cs
Shane32 Nov 8, 2022
ff701d4
Update Directory.Build.props
Shane32 Nov 8, 2022
7a65ded
Unify tfm
Shane32 Nov 17, 2022
7ab1cdc
Update workflows
Shane32 Nov 17, 2022
d85eccf
Update api approvals
Shane32 Nov 17, 2022
72001df
Update coverage
Shane32 Nov 17, 2022
641204b
Update .github/workflows/test.yml
Shane32 Nov 17, 2022
eead476
Try again
Shane32 Nov 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.102"
dotnet-version: 7.0.x
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Checkout source
uses: actions/checkout@v3

- name: Setup .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.102"
dotnet-version: 7.0.x
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Setup .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
version="${github_ref:10}"
echo version=$version
echo "version=$version" >> $GITHUB_ENV
- name: Setup .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.102"
dotnet-version: 7.0.x
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ jobs:
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Setup .NET Core SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
source-url: https://nuget.pkg.github.com/graphql-dotnet/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -67,7 +68,7 @@ jobs:
if: ${{ startsWith(matrix.os, 'ubuntu') }}
uses: codecov/codecov-action@v3
with:
files: .coverage/GraphQL.Server.Transports.AspNetCore.Tests/coverage.net6.opencover.xml,.coverage/GraphQL.Server.Transports.AspNetCore.Tests/coverage.netcoreapp2.1.opencover.xml,.coverage/GraphQL.Server.Samples.Server.Tests/coverage.net6.opencover.xml
files: .coverage/GraphQL.Server.Transports.AspNetCore.Tests/coverage.net7.0.opencover.xml,.coverage/GraphQL.Server.Transports.AspNetCore.Tests/coverage.netcoreapp2.1.opencover.xml,.coverage/GraphQL.Server.Samples.Server.Tests/coverage.net7.0.opencover.xml

buildcheck:
needs:
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<AnalysisMode>Recommended</AnalysisMode>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
<NoWarn>$(NoWarn);IDE0056;IDE0057</NoWarn> <!-- Index/Range operators -->
<NoWarn>$(NoWarn);IDE0056;IDE0057;ASP0014</NoWarn> <!-- Index/Range operators, UseRouting -->

<AssemblyName>GraphQL.Server.$(MSBuildProjectName)</AssemblyName>
<RootNamespace>GraphQL.Server.$(MSBuildProjectName)</RootNamespace>
Expand Down
13 changes: 8 additions & 5 deletions Tests.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" Condition="'$(TargetFramework)' == 'netcoreapp2.1'" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" Condition="'$(TargetFramework)' != 'netcoreapp2.1'" />
<PackageReference Include="Shouldly" Version="4.1.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" Condition="'$(TargetFramework)' == 'netcoreapp2.1'" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" Condition="'$(TargetFramework)' != 'netcoreapp2.1'" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="2.1.*" Condition="'$(TargetFramework)' == 'netcoreapp2.1' OR '$(TargetFramework)' == 'net48'" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="3.1.*" Condition="'$(TargetFramework)' == 'netcoreapp3.1'" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.*" Condition="'$(TargetFramework)' == 'net5'" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.*" Condition="'$(TargetFramework)' == 'net6'" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.*" Condition="'$(TargetFramework)' == 'net5.0'" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="6.0.*" Condition="'$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.*" Condition="'$(TargetFramework)' == 'net7.0'" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="2.1.*" Condition="'$(TargetFramework)' == 'netcoreapp2.1' OR '$(TargetFramework)' == 'net48'" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="3.1.*" Condition="'$(TargetFramework)' == 'netcoreapp3.1'" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.*" Condition="'$(TargetFramework)' == 'net5'" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.*" Condition="'$(TargetFramework)' == 'net6'" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="5.0.*" Condition="'$(TargetFramework)' == 'net5.0'" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.*" Condition="'$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.*" Condition="'$(TargetFramework)' == 'net7.0'" />
</ItemGroup>

<ItemGroup>
Expand Down
17 changes: 10 additions & 7 deletions samples/Samples.Authorization/Pages/Index.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,23 @@ public void OnGet()
public async Task<IActionResult> OnPost([FromForm] FormInfo info)
{
var identity = HttpContext.User.Identity;
if (identity != null)
if (identity?.Name != null)
{
if (!await _roleManager.RoleExistsAsync("User"))
{
await _roleManager.CreateAsync(new IdentityRole("User"));
}
var user = await _userManager.FindByNameAsync(identity.Name);
if (info.Do == "add")
if (user != null)
{
await _userManager.AddToRoleAsync(user, "User");
}
else if (info.Do == "remove")
{
await _userManager.RemoveFromRoleAsync(user, "User");
if (info.Do == "add")
{
await _userManager.AddToRoleAsync(user, "User");
}
else if (info.Do == "remove")
{
await _userManager.RemoveFromRoleAsync(user, "User");
}
}
}
return RedirectToAction("Index");
Expand Down
12 changes: 6 additions & 6 deletions samples/Samples.Authorization/Samples.Authorization.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.*">
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="7.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.*" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="7.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.*" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="7.0.*">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.Basic/Samples.Basic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.Complex/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static int Main(string[] args)
.MinimumLevel.Debug()
.MinimumLevel.Override("Microsoft", LogEventLevel.Information)
.Enrich.FromLogContext()
.WriteTo.Console()
.WriteTo.Console(formatProvider: System.Globalization.CultureInfo.InvariantCulture)
.CreateLogger();

try
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.Complex/Samples.Complex.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>net6;net5;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net7;net6;net5;netcoreapp3.1</TargetFrameworks>
<AssemblyName>GraphQL.Samples.Server</AssemblyName>
<RootNamespace>GraphQL.Samples.Server</RootNamespace>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.Controller/Samples.Controller.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.Cors/Samples.Cors.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.Jwt/Samples.Jwt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<WarningsNotAsErrors>CS8618</WarningsNotAsErrors>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion samples/Samples.Pages/Samples.Pages.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp2.1;netcoreapp3.1;net5</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netcoreapp2.1;netcoreapp3.1;net5.0</TargetFrameworks>
<Description>Integration of GraphQL.NET validation subsystem into ASP.NET Core</Description>
<PackageTags>GraphQL;authentication;authorization;validation</PackageTags>
<Nullable>enable</Nullable>
Expand Down
4 changes: 2 additions & 2 deletions src/Transports.AspNetCore/Transports.AspNetCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp2.1;netcoreapp3.1;net5</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netcoreapp2.1;netcoreapp3.1;net5.0</TargetFrameworks>
<Description>HTTP middleware for GraphQL</Description>
<PackageTags>GraphQL;middleware</PackageTags>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion tests/ApiApprovalTests/ApiApprovalTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFrameworks>net6;net5;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<Nullable>disable</Nullable>
<NoWarn>$(NoWarn);CS0618</NoWarn>
</PropertyGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<ProjectReference Include="..\..\src\Authorization.AspNetCore\Authorization.AspNetCore.csproj" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.*" Condition="'$(TargetFramework)' == 'net7.0'" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="6.0.*" Condition="'$(TargetFramework)' == 'net6.0'" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.*" Condition="'$(TargetFramework)' == 'net5.0'" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.*" Condition="'$(TargetFramework)' == 'netcoreapp3.1'" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Description>End to end tests for the Samples.Authorization project</Description>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions tests/Samples.Basic.Tests/Samples.Basic.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Description>End to end tests for the Samples.Basic project</Description>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion tests/Samples.Complex.Tests/Samples.Complex.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFrameworks>net6;net5;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net7.0;net6.0;net5.0;netcoreapp3.1</TargetFrameworks>
<Description>End to end tests for Samples.Server project</Description>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Description>End to end tests for the Samples.Controller project</Description>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion tests/Samples.Cors.Tests/Samples.Cors.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Description>End to end tests for the Samples.Cors project</Description>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Description>End to end tests for the Samples.EndpointRouting project</Description>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion tests/Samples.Jwt.Tests/Samples.Jwt.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Description>End to end tests for the Samples.Jwt project</Description>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Description>End to end tests for the Samples.MultipleSchemas project</Description>
</PropertyGroup>

Expand Down
2 changes: 1 addition & 1 deletion tests/Samples.Pages.Tests/Samples.Pages.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net6</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<Description>End to end tests for the Samples.Pages project</Description>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions tests/Samples.Tests/Samples.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<Import Project="../../Tests.props" />

<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' != 'true'">
<TargetFrameworks>net6;netcoreapp2.1</TargetFrameworks>
<TargetFrameworks>net7.0;netcoreapp2.1</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">
<TargetFrameworks>net6;netcoreapp2.1;net48</TargetFrameworks>
<TargetFrameworks>net7.0;netcoreapp2.1;net48</TargetFrameworks>
</PropertyGroup>
<PropertyGroup>
<Description>End to end tests for sample projects</Description>
Expand Down
Loading