Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1f03f57

Browse filesBrowse files
.NET 8 Support (#132)
* added support for a .NET 8 targeted build * centralized common csproj elements for test projects * bumped stylecop version to include records linting
1 parent 06075c6 commit 1f03f57
Copy full SHA for 1f03f57

File tree

35 files changed

+85
-117
lines changed
Filter options

35 files changed

+85
-117
lines changed

‎.github/workflows/ci-build.yml

Copy file name to clipboardExpand all lines: .github/workflows/ci-build.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
dotnet-version: |
4040
6.x
4141
7.x
42+
8.x
4243
4344
# ---------------------------------------
4445
# Configure the build environment

‎.github/workflows/nuget-deployment.yml

Copy file name to clipboardExpand all lines: .github/workflows/nuget-deployment.yml
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
dotnet-version: |
4242
6.x
4343
7.x
44+
8.x
4445
4546
# ---------------------------------------
4647
# Configure the build environment

‎README.md

Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Documentation: [https://graphql-aspnet.github.io](https://graphql-aspnet.github.io)
44

5-
> Targets: **netstandard2.0, net6.0, net7.0**
5+
> Targets: **netstandard2.0, net6.0, net7.0, net8.0**
66
77
[![CI-CD](https://github.com/graphql-aspnet/graphql-aspnet/actions/workflows/ci-build.yml/badge.svg?branch=master)](https://github.com/graphql-aspnet/graphql-aspnet/actions/workflows/ci-build.yml)
88

‎src/ancillary-projects/benchmarking/graphql-aspnet-benchmarks/graphql-aspnet-benchmarks.csproj

Copy file name to clipboardExpand all lines: src/ancillary-projects/benchmarking/graphql-aspnet-benchmarks/graphql-aspnet-benchmarks.csproj
+1-1Lines 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>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603;IDE0060;IDE0052;IDE0044;IDE0059;IDE0052;IDE0017;IDE0039</NoWarn>
77
<RootNamespace>GraphQL.AspNet.Benchmarks</RootNamespace>

‎src/ancillary-projects/benchmarking/graphql-aspnet-load-console/graphql-aspnet-load-console.csproj

Copy file name to clipboardExpand all lines: src/ancillary-projects/benchmarking/graphql-aspnet-load-console/graphql-aspnet-load-console.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net7.0</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
<RootNamespace>GraphQL.AspNet.SubscriberLoadTest.TestConsole</RootNamespace>
77
<Company>GraphQL ASP.NET</Company>
88
<Title>GraphQL ASP.NET Performance Profiler</Title>

‎src/ancillary-projects/benchmarking/graphql-aspnet-load-models/graphql-aspnet-load-models.csproj

Copy file name to clipboardExpand all lines: src/ancillary-projects/benchmarking/graphql-aspnet-load-models/graphql-aspnet-load-models.csproj
+1-1Lines 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>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<RootNamespace>GraphQL.AspNet.SubscriberLoadTest.Models</RootNamespace>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>

‎src/ancillary-projects/benchmarking/graphql-aspnet-load-server/graphql-aspnet-load-server.csproj

Copy file name to clipboardExpand all lines: src/ancillary-projects/benchmarking/graphql-aspnet-load-server/graphql-aspnet-load-server.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<RootNamespace>GraphQL.AspNet.SubscriberLoadTest.Server</RootNamespace>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>

‎src/ancillary-projects/starwars/starwars-api60/starwars-api60.csproj renamed to ‎src/ancillary-projects/starwars/starwars-api80/starwars-api80.csproj

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-api80/starwars-api80.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<LangVersion>latest</LangVersion>
66
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603</NoWarn>
77
<RootNamespace>GraphQL.AspNet.StarWarsAPI6X</RootNamespace>

‎src/ancillary-projects/starwars/starwars-common/starwars-common.csproj

Copy file name to clipboardExpand all lines: src/ancillary-projects/starwars/starwars-common/starwars-common.csproj
+1-1Lines 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-
<TargetFrameworks>net7.0;net6.0;netstandard2.0;</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net7.0;netstandard2.0;</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603</NoWarn>
77
<RootNamespace>GraphQL.AspNet.StarwarsAPI.Common</RootNamespace>

‎src/graphql-aspnet.sln

Copy file name to clipboardExpand all lines: src/graphql-aspnet.sln
+11-10Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
32
# Visual Studio Version 17
43
VisualStudioVersion = 17.0.31825.309
@@ -8,8 +7,10 @@ EndProject
87
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4274961A-0C80-4332-80A7-3FDCB1DA2DA0}"
98
ProjectSection(SolutionItems) = preProject
109
.editorconfig = .editorconfig
10+
.runsettings = .runsettings
1111
CodeMaid.config = CodeMaid.config
1212
library-common.props = library-common.props
13+
library-tests.props = library-tests.props
1314
stylecop.json = stylecop.json
1415
styles.ruleset = styles.ruleset
1516
EndProjectSection
@@ -26,17 +27,17 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "starwars-common", "ancillar
2627
EndProject
2728
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "graphql-aspnet-tests", "unit-tests\graphql-aspnet-tests\graphql-aspnet-tests.csproj", "{5DE081AA-494A-4377-B2CA-6952715D513D}"
2829
EndProject
29-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "starwars-api60", "ancillary-projects\starwars\starwars-api60\starwars-api60.csproj", "{BAC0B33E-CA4D-4238-9E27-FDFC308440FC}"
30-
EndProject
3130
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "graphql-aspnet-subscriptions", "graphql-aspnet-subscriptions\graphql-aspnet-subscriptions.csproj", "{CA9D8DEC-13D6-4ED0-9CDC-747C2B5BCFB4}"
3231
EndProject
3332
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "graphql-aspnet-subscriptions-tests", "unit-tests\graphql-aspnet-subscriptions-tests\graphql-aspnet-subscriptions-tests.csproj", "{6E4A16F5-1B98-412E-9A88-F56301F5D0E4}"
3433
EndProject
3534
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "starwars-api70", "ancillary-projects\starwars\starwars-api70\starwars-api70.csproj", "{B92A5C91-F88D-4F26-8775-20C72692BD43}"
3635
EndProject
37-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "graphql-aspnet-tests-common", "unit-tests\graphql-aspnet-tests-common\graphql-aspnet-tests-common.csproj", "{3CB086E3-5E7B-438B-9A95-AEA264009521}"
36+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "graphql-aspnet-tests-common", "unit-tests\graphql-aspnet-tests-common\graphql-aspnet-tests-common.csproj", "{3CB086E3-5E7B-438B-9A95-AEA264009521}"
37+
EndProject
38+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "starwars-api80", "ancillary-projects\starwars\starwars-api80\starwars-api80.csproj", "{43C9EB6E-5FFE-4EC6-B21B-09C715B7B114}"
3839
EndProject
39-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "graphql-aspnet-testframework-tests", "unit-tests\graphql-aspnet-testframework-tests\graphql-aspnet-testframework-tests.csproj", "{E67D4FB2-73FF-4EC1-80F8-5D4DEC57F5AA}"
40+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "graphql-aspnet-testframework-tests", "unit-tests\graphql-aspnet-testframework-tests\graphql-aspnet-testframework-tests.csproj", "{E67D4FB2-73FF-4EC1-80F8-5D4DEC57F5AA}"
4041
EndProject
4142
Global
4243
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -62,10 +63,6 @@ Global
6263
{5DE081AA-494A-4377-B2CA-6952715D513D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
6364
{5DE081AA-494A-4377-B2CA-6952715D513D}.Debug|Any CPU.Build.0 = Debug|Any CPU
6465
{5DE081AA-494A-4377-B2CA-6952715D513D}.Release|Any CPU.ActiveCfg = Release|Any CPU
65-
{BAC0B33E-CA4D-4238-9E27-FDFC308440FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
66-
{BAC0B33E-CA4D-4238-9E27-FDFC308440FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
67-
{BAC0B33E-CA4D-4238-9E27-FDFC308440FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
68-
{BAC0B33E-CA4D-4238-9E27-FDFC308440FC}.Release|Any CPU.Build.0 = Release|Any CPU
6966
{CA9D8DEC-13D6-4ED0-9CDC-747C2B5BCFB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
7067
{CA9D8DEC-13D6-4ED0-9CDC-747C2B5BCFB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
7168
{CA9D8DEC-13D6-4ED0-9CDC-747C2B5BCFB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -81,6 +78,10 @@ Global
8178
{3CB086E3-5E7B-438B-9A95-AEA264009521}.Debug|Any CPU.Build.0 = Debug|Any CPU
8279
{3CB086E3-5E7B-438B-9A95-AEA264009521}.Release|Any CPU.ActiveCfg = Release|Any CPU
8380
{3CB086E3-5E7B-438B-9A95-AEA264009521}.Release|Any CPU.Build.0 = Release|Any CPU
81+
{43C9EB6E-5FFE-4EC6-B21B-09C715B7B114}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
82+
{43C9EB6E-5FFE-4EC6-B21B-09C715B7B114}.Debug|Any CPU.Build.0 = Debug|Any CPU
83+
{43C9EB6E-5FFE-4EC6-B21B-09C715B7B114}.Release|Any CPU.ActiveCfg = Release|Any CPU
84+
{43C9EB6E-5FFE-4EC6-B21B-09C715B7B114}.Release|Any CPU.Build.0 = Release|Any CPU
8485
{E67D4FB2-73FF-4EC1-80F8-5D4DEC57F5AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
8586
{E67D4FB2-73FF-4EC1-80F8-5D4DEC57F5AA}.Debug|Any CPU.Build.0 = Debug|Any CPU
8687
{E67D4FB2-73FF-4EC1-80F8-5D4DEC57F5AA}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -94,10 +95,10 @@ Global
9495
{88E1BE35-9BC9-43D3-A962-AAE247AE8430} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}
9596
{5F6EBAF4-B5EB-4DBD-8F51-17BBC2E8984D} = {22C7BC5B-EC8E-4A07-9968-961E86AB44E2}
9697
{5DE081AA-494A-4377-B2CA-6952715D513D} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}
97-
{BAC0B33E-CA4D-4238-9E27-FDFC308440FC} = {22C7BC5B-EC8E-4A07-9968-961E86AB44E2}
9898
{6E4A16F5-1B98-412E-9A88-F56301F5D0E4} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}
9999
{B92A5C91-F88D-4F26-8775-20C72692BD43} = {22C7BC5B-EC8E-4A07-9968-961E86AB44E2}
100100
{3CB086E3-5E7B-438B-9A95-AEA264009521} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}
101+
{43C9EB6E-5FFE-4EC6-B21B-09C715B7B114} = {22C7BC5B-EC8E-4A07-9968-961E86AB44E2}
101102
{E67D4FB2-73FF-4EC1-80F8-5D4DEC57F5AA} = {350D3594-5D97-4D9B-A01D-D3A5C036318C}
102103
EndGlobalSection
103104
GlobalSection(ExtensibilityGlobals) = postSolution

‎src/graphql-aspnet/Engine/DefaultGraphQLHttpProcessor{TSchema}.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet/Engine/DefaultGraphQLHttpProcessor{TSchema}.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ protected virtual async Task WriteResponseAsync(IQueryExecutionResult result, Ca
214214
this.Response.ContentType = Constants.MediaTypes.JSON;
215215
if (this.Schema.Configuration.ResponseOptions.AppendServerHeader)
216216
{
217-
this.Response.Headers.Add(Constants.ServerInformation.SERVER_INFORMATION_HEADER, Constants.ServerInformation.ServerData);
217+
this.Response.Headers.Append(Constants.ServerInformation.SERVER_INFORMATION_HEADER, Constants.ServerInformation.ServerData);
218218
}
219219

220220
var localWriter = new GraphQLHttpResponseWriter(

‎src/graphql-aspnet/ServerExtensions/MultipartRequests/Engine/MultipartRequestGraphQLHttpProcessor.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet/ServerExtensions/MultipartRequests/Engine/MultipartRequestGraphQLHttpProcessor.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ protected virtual async Task WriteQueryResponseAsync(
285285
this.Response.ContentType = Constants.MediaTypes.JSON;
286286
if (this.Schema.Configuration.ResponseOptions.AppendServerHeader)
287287
{
288-
this.Response.Headers.Add(Constants.ServerInformation.SERVER_INFORMATION_HEADER, Constants.ServerInformation.ServerData);
288+
this.Response.Headers.Append(Constants.ServerInformation.SERVER_INFORMATION_HEADER, Constants.ServerInformation.ServerData);
289289
}
290290

291291
var localWriter = renderAsBatch

‎src/graphql-aspnet/Web/GraphQLHttpProcessorBase.cs

Copy file name to clipboardExpand all lines: src/graphql-aspnet/Web/GraphQLHttpProcessorBase.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected async Task WriteStatusCodeResponseAsync(HttpStatusCode statusCode, str
111111

112112
if (this.Schema.Configuration.ResponseOptions.AppendServerHeader)
113113
{
114-
this.Response.Headers.Add(Constants.ServerInformation.SERVER_INFORMATION_HEADER, Constants.ServerInformation.ServerData);
114+
this.Response.Headers.Append(Constants.ServerInformation.SERVER_INFORMATION_HEADER, Constants.ServerInformation.ServerData);
115115
}
116116

117117
this.Response.StatusCode = (int)statusCode;

‎src/library-common.props

Copy file name to clipboardExpand all lines: src/library-common.props
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!-- Common property settings for 1st-party production libraries -->
22
<Project>
33
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0;netstandard2.0;</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net7.0;net6.0;netstandard2.0;</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603;IDE0019;IDE0017;RCS1146;RCS1194;</NoWarn>
77

‎src/library-tests.props

Copy file name to clipboard
+27Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!-- Common property settings for 1st-party production libraries -->
2+
<Project>
3+
<PropertyGroup>
4+
<TargetFrameworks>net8.0;net7.0;net6.0;</TargetFrameworks>
5+
<LangVersion>latest</LangVersion>
6+
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603;IDE0019;IDE0017;RCS1146;RCS1194;</NoWarn>
7+
<RootNamespace>GraphQL.AspNet.Tests</RootNamespace>
8+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
9+
<IsTestProject>true</IsTestProject>
10+
<IsPackable>false</IsPackable>
11+
</PropertyGroup>
12+
13+
<ItemGroup>
14+
<AdditionalFiles Include="$(MSBuildThisFileDirectory)\stylecop.json" />
15+
</ItemGroup>
16+
17+
<PropertyGroup>
18+
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)\styles.ruleset</CodeAnalysisRuleSet>
19+
</PropertyGroup>
20+
21+
<ItemGroup>
22+
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507" PrivateAssets="All" />
23+
<PackageReference Include="nunit" Version="3.13.3" />
24+
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
25+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
26+
</ItemGroup>
27+
</Project>

‎src/unit-tests/graphql-aspnet-subscriptions-tests/GlobalSuppressions.cs

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-subscriptions-tests/GlobalSuppressions.cs
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
Justification = "Documenting test methods is unwarranted at this time.",
1616
Scope = "module")]
1717

18+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
19+
"StyleCop.CSharp.DocumentationRules",
20+
"SA1601:Elements should be documented",
21+
Justification = "Documenting test methods is unwarranted at this time.",
22+
Scope = "module")]
23+
1824
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
1925
"StyleCop.CSharp.NamingRules",
2026
"SA1313:Parameter names should begin with lower-case letter",

‎src/unit-tests/graphql-aspnet-subscriptions-tests/SubscriptionReceiverExtensionTests.cs

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-subscriptions-tests/SubscriptionReceiverExtensionTests.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ namespace GraphQL.AspNet.Tests
4040
public class SubscriptionReceiverExtensionTests
4141
{
4242
private (
43-
ISchemaBuilder<GraphSchema>,
44-
ISchemaPipelineBuilder<GraphSchema, IGraphQLMiddlewareComponent<QueryExecutionContext>, QueryExecutionContext>,
45-
ISchemaPipelineBuilder<GraphSchema, IGraphQLMiddlewareComponent<GraphFieldExecutionContext>, GraphFieldExecutionContext>)
43+
ISchemaBuilder<GraphSchema> SchemaBuilder,
44+
ISchemaPipelineBuilder<GraphSchema, IGraphQLMiddlewareComponent<QueryExecutionContext>, QueryExecutionContext> QueryPipelineBuilder,
45+
ISchemaPipelineBuilder<GraphSchema, IGraphQLMiddlewareComponent<GraphFieldExecutionContext>, GraphFieldExecutionContext> FieldPipelineBuilder)
4646
CreateSchemaBuilderMock(SchemaOptions<GraphSchema> options)
4747
{
4848
var queryPipeline = Substitute.For<ISchemaPipelineBuilder<GraphSchema, IGraphQLMiddlewareComponent<QueryExecutionContext>, QueryExecutionContext>>();

‎src/unit-tests/graphql-aspnet-subscriptions-tests/SubscriptionServer/Protocols/GraphqlTransportWs/GqltwsClientProxyTests.cs

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-subscriptions-tests/SubscriptionServer/Protocols/GraphqlTransportWs/GqltwsClientProxyTests.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace GraphQL.AspNet.Tests.SubscriptionServer.Protocols.GraphqlTransportWs
3434
[TestFixture]
3535
public partial class GqltwsClientProxyTests
3636
{
37-
private (MockClientConnection, GqltwsClientProxy<GraphSchema>, ISubscriptionEventRouter) CreateConnection()
37+
private (MockClientConnection ClientConnection, GqltwsClientProxy<GraphSchema> ClientProxy, ISubscriptionEventRouter Router) CreateConnection()
3838
{
3939
var server = new TestServerBuilder()
4040
.AddGraphController<GqltwsSubscriptionController>()

‎src/unit-tests/graphql-aspnet-subscriptions-tests/SubscriptionServer/Protocols/GraphqlWsLegacy/GraphqlWsLegacyClientProxyTests.cs

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-subscriptions-tests/SubscriptionServer/Protocols/GraphqlWsLegacy/GraphqlWsLegacyClientProxyTests.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace GraphQL.AspNet.Tests.SubscriptionServer.Protocols.GraphqlWsLegacy
3131
[TestFixture]
3232
public partial class GraphqlWsLegacyClientProxyTests
3333
{
34-
private (MockClientConnection, GraphqlWsLegacyClientProxy<GraphSchema>, ISubscriptionEventRouter) CreateConnection()
34+
private (MockClientConnection ClientConnection, GraphqlWsLegacyClientProxy<GraphSchema> ClientProxy, ISubscriptionEventRouter Router) CreateConnection()
3535
{
3636
var server = new TestServerBuilder()
3737
.AddController<GraphqlWsLegacySubscriptionController>()

‎src/unit-tests/graphql-aspnet-subscriptions-tests/Web/WebSockets/WebSocketClientConnectionTests.cs

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-subscriptions-tests/Web/WebSockets/WebSocketClientConnectionTests.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class WebSocketClientConnectionTests
3030
public async Task GeneralPropertyCheck()
3131
{
3232
var context = new DefaultHttpContext();
33-
context.Request.Headers.Add(SubscriptionConstants.WebSockets.WEBSOCKET_PROTOCOL_HEADER, "sub proto");
33+
context.Request.Headers.Append(SubscriptionConstants.WebSockets.WEBSOCKET_PROTOCOL_HEADER, "sub proto");
3434

3535
var provider = Substitute.For<IServiceProvider>();
3636
var securityContext = Substitute.For<IUserSecurityContext>();

‎src/unit-tests/graphql-aspnet-subscriptions-tests/graphql-aspnet-subscriptions-tests.csproj

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-subscriptions-tests/graphql-aspnet-subscriptions-tests.csproj
+1-21Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="..\..\library-tests.props" />
23

34
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0;</TargetFrameworks>
5-
<LangVersion>latest</LangVersion>
6-
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603;RCS1021;IDE0060;IDE0052;IDE0044;IDE0059;IDE0052;IDE0017;IDE0039;TCS1089;RCS1090;RCS1118;SA1601;RCS1163</NoWarn>
75
<RootNamespace>GraphQL.AspNet.Tests</RootNamespace>
86
<AssemblyName>graphql-aspnet-subscriptions-tests</AssemblyName>
9-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10-
<IsTestProject>true</IsTestProject>
11-
<IsPackable>false</IsPackable>
127
</PropertyGroup>
138

14-
<PropertyGroup>
15-
<CodeAnalysisRuleSet>..\..\styles.ruleset</CodeAnalysisRuleSet>
16-
</PropertyGroup>
17-
18-
<ItemGroup>
19-
<AdditionalFiles Include="..\..\stylecop.json" />
20-
</ItemGroup>
21-
22-
<ItemGroup>
23-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
24-
<PackageReference Include="nunit" Version="3.13.3" />
25-
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
26-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
27-
</ItemGroup>
28-
299
<ItemGroup>
3010
<ProjectReference Include="..\..\graphql-aspnet\graphql-aspnet.csproj" />
3111
<ProjectReference Include="..\..\graphql-aspnet-subscriptions\graphql-aspnet-subscriptions.csproj" />

‎src/unit-tests/graphql-aspnet-testframework-tests/GlobalSuppressions.cs

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-testframework-tests/GlobalSuppressions.cs
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
Justification = "Documenting test methods is unwarranted at this time.",
1616
Scope = "module")]
1717

18+
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
19+
"StyleCop.CSharp.DocumentationRules",
20+
"SA1601:Elements should be documented",
21+
Justification = "Documenting test methods is unwarranted at this time.",
22+
Scope = "module")]
23+
1824
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage(
1925
"StyleCop.CSharp.NamingRules",
2026
"SA1313:Parameter names should begin with lower-case letter",

‎src/unit-tests/graphql-aspnet-testframework-tests/graphql-aspnet-testframework-tests.csproj

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-testframework-tests/graphql-aspnet-testframework-tests.csproj
+2-22Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,11 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="..\..\library-tests.props" />
23

34
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0;</TargetFrameworks>
5-
<LangVersion>latest</LangVersion>
6-
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603;RCS1021;IDE0060;IDE0052;IDE0044;IDE0059;IDE0052;IDE0017;IDE0039;RCS1090;RCS1118;SA1601;RCS1163</NoWarn>
75
<RootNamespace>GraphQL.AspNet.TestFramework.Tests</RootNamespace>
86
<AssemblyName>graphql-aspnet-testframework-tests</AssemblyName>
9-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10-
<IsTestProject>true</IsTestProject>
11-
<IsPackable>false</IsPackable>
127
</PropertyGroup>
138

14-
<PropertyGroup>
15-
<CodeAnalysisRuleSet>..\..\styles.ruleset</CodeAnalysisRuleSet>
16-
</PropertyGroup>
17-
18-
<ItemGroup>
19-
<AdditionalFiles Include="..\..\stylecop.json" />
20-
</ItemGroup>
21-
22-
<ItemGroup>
23-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
24-
<PackageReference Include="nunit" Version="3.13.3" />
25-
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
26-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
27-
</ItemGroup>
28-
299
<ItemGroup>
3010
<ProjectReference Include="..\..\graphql-aspnet\graphql-aspnet.csproj" />
3111
</ItemGroup>

‎src/unit-tests/graphql-aspnet-testframework/graphql-aspnet-testframework.csproj

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-testframework/graphql-aspnet-testframework.csproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="..\..\library-common.props" />
33

44
<PropertyGroup>
5-
<TargetFrameworks>net7.0;net6.0;</TargetFrameworks>
5+
<TargetFrameworks>net8.0;net7.0;net6.0;</TargetFrameworks>
66
<RootNamespace>GraphQL.AspNet.Tests.Framework</RootNamespace>
77
<AssemblyName>GraphQL.AspNet.TestFramework</AssemblyName>
88
<Title>GraphQL ASP.NET Test Framework</Title>

‎src/unit-tests/graphql-aspnet-tests-common/graphql-aspnet-tests-common.csproj

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-tests-common/graphql-aspnet-tests-common.csproj
+1-21Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2+
<Import Project="..\..\library-tests.props" />
23

34
<PropertyGroup>
4-
<TargetFrameworks>net7.0;net6.0;</TargetFrameworks>
5-
<LangVersion>latest</LangVersion>
6-
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603;RCS1021;IDE0060;IDE0052;IDE0044;IDE0059;IDE0052;IDE0017;IDE0039;RCS1090;RCS1118;SA1601;RCS1163</NoWarn>
75
<RootNamespace>GraphQL.AspNet.Tests.Common</RootNamespace>
86
<AssemblyName>graphql-aspnet-tests-common</AssemblyName>
9-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
10-
<IsTestProject>true</IsTestProject>
11-
<IsPackable>false</IsPackable>
127
</PropertyGroup>
138

14-
<PropertyGroup>
15-
<CodeAnalysisRuleSet>..\..\styles.ruleset</CodeAnalysisRuleSet>
16-
</PropertyGroup>
17-
18-
<ItemGroup>
19-
<AdditionalFiles Include="..\..\stylecop.json" />
20-
</ItemGroup>
21-
22-
<ItemGroup>
23-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="All" />
24-
<PackageReference Include="nunit" Version="3.13.3" />
25-
<PackageReference Include="NUnit3TestAdapter" Version="4.3.1" />
26-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
27-
</ItemGroup>
28-
299
<ItemGroup>
3010
<ProjectReference Include="..\..\graphql-aspnet\graphql-aspnet.csproj" />
3111
<ProjectReference Include="..\graphql-aspnet-testframework\graphql-aspnet-testframework.csproj" />

‎src/unit-tests/graphql-aspnet-tests-thirdpartydll/graphql-aspnet-tests-thirdpartydll.csproj

Copy file name to clipboardExpand all lines: src/unit-tests/graphql-aspnet-tests-thirdpartydll/graphql-aspnet-tests-thirdpartydll.csproj
+1-1Lines 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-
<TargetFrameworks>net7.0;net6.0;</TargetFrameworks>
4+
<TargetFrameworks>net8.0;net7.0;net6.0;</TargetFrameworks>
55
<LangVersion>latest</LangVersion>
66
<NoWarn>$(NoWarn);1701;1702;1705;1591;NU1603;IDE0060;IDE0052;IDE0044;IDE0059;IDE0052</NoWarn>
77
<RootNamespace>GraphQL.AspNet.Tests.ThirdPartyDll</RootNamespace>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.