Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ODS-6223] Upgrade .net version #1090

Merged
merged 3 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

using Autofac;
using EdFi.Common.Configuration;
using EdFi.Ods.Api.Security.Authorization;
using EdFi.Ods.Common.Configuration;
using EdFi.Ods.Common.Container;
using EdFi.Ods.Common.Infrastructure.Activities;
using EdFi.Ods.Common.Infrastructure.Configuration;
using EdFi.Ods.Common.Infrastructure.SqlServer;
using EdFi.Ods.Api.Security.Authorization;

namespace EdFi.Ods.Api.Container.Modules
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public virtual async Task<IActionResult> GetAll(
// Return multiple results
if (queryParameters.TotalCount)
{
Response.Headers.Add(HeaderConstants.TotalCount, result.ResultMetadata.TotalCount.ToString());
Response.Headers.Append(HeaderConstants.TotalCount, result.ResultMetadata.TotalCount.ToString());
}

Response.GetTypedHeaders().ContentType = new MediaTypeHeaderValue(GetReadContentType());
Expand Down
41 changes: 20 additions & 21 deletions Application/EdFi.Ods.Api/EdFi.Ods.Api.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>EdFi.Ods.Api</PackageId>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<TargetFramework>net6.0</TargetFramework>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>EdFi.Ods.Api</AssemblyName>
<AssemblyVersion>99.99.99.00</AssemblyVersion>
<RootNamespace>EdFi.Ods.Api</RootNamespace>
Expand All @@ -19,31 +19,30 @@
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="AspNetCore.HealthChecks.NpgSql" Version="6.0.1" />
<PackageReference Include="AspNetCore.HealthChecks.SqlServer" Version="6.0.1" />
<PackageReference Include="AspNetCore.HealthChecks.NpgSql" Version="8.0.1" />
<PackageReference Include="AspNetCore.HealthChecks.SqlServer" Version="8.0.2" />
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="5.4.456" />
<PackageReference Include="EdFi.Suite3.Common" Version="5.4.447" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.397" />
<PackageReference Include="EntityFramework" Version="6.4.4" />
<PackageReference Include="FluentValidation" Version="10.4.0" />
<PackageReference Include="Iesi.Collections" Version="4.0.4" />
<PackageReference Include="log4net" Version="2.0.13" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.19.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="6.0.0" />
<PackageReference Include="FluentValidation" Version="11.9.2" />
<PackageReference Include="Iesi.Collections" Version="4.1.1" />
<PackageReference Include="log4net" Version="2.0.17" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.6" />
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.FileProviders.Embedded" Version="8.0.6" />
<PackageReference Include="Microsoft.Extensions.Logging.Log4Net.AspNetCore" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.2.0" />
<PackageReference Include="NHibernate" Version="5.3.11" />
<PackageReference Include="Npgsql" Version="6.0.11" />
<PackageReference Include="Polly" Version="7.2.2" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="NHibernate" Version="5.5.1" />
<PackageReference Include="Npgsql" Version="8.0.3" />
<PackageReference Include="Polly" Version="8.4.0" />
<PackageReference Include="Remotion.Linq" Version="2.2.0" />
<PackageReference Include="Remotion.Linq.EagerFetching" Version="2.2.0" />
<PackageReference Include="Sandwych.QuickGraph.Core" Version="1.0.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="6.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.Diagnostics.Contracts" Version="4.3.0" />
</ItemGroup>
Expand All @@ -53,7 +52,7 @@
<ItemGroup>
<ProjectReference Include="..\EdFi.Ods.Common\EdFi.Ods.Common.csproj" />
</ItemGroup>
<ItemGroup>
<ItemGroup>
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="LICENSE.txt" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ public EdFiOAuthAuthenticationHandler(
IOptionsMonitor<AuthenticationSchemeOptions> options,
ILoggerFactory logger,
UrlEncoder encoder,
ISystemClock clock,
IAuthenticationProvider authenticationProvider)
: base(options, logger, encoder, clock)
: base(options, logger, encoder)
{
_authenticationProvider = authenticationProvider;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,5 @@ public AmbiguousUniqueIdMatchException(string message)

public AmbiguousUniqueIdMatchException(string message, Exception inner)
: base(message, inner) { }

protected AmbiguousUniqueIdMatchException(
SerializationInfo info,
StreamingContext context)
: base(info, context) { }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,5 @@ public NoUniqueIdMatchException(string message)

public NoUniqueIdMatchException(string message, Exception inner)
: base(message, inner) { }

protected NoUniqueIdMatchException(
SerializationInfo info,
StreamingContext context)
: base(info, context) { }
}
}
6 changes: 3 additions & 3 deletions Application/EdFi.Ods.Common/EdFi.Ods.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Common" Version="5.4.447" />
<PackageReference Include="FluentValidation" Version="11.9.0" />
<PackageReference Include="FluentValidation" Version="11.9.2" />
<PackageReference Include="log4net" Version="2.0.17" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NHibernate" Version="5.3.11" />
<PackageReference Include="NHibernate" Version="5.5.1" />
<PackageReference Include="Npgsql" Version="8.0.3" />
<PackageReference Include="Sandwych.QuickGraph.Core" Version="1.0.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.6" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.2.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>EdFi.Ods.Composites.Enrollment</AssemblyName>
<RootNamespace>EdFi.Ods.Composites.Enrollment</RootNamespace>
<RestorePackages>true</RestorePackages>
Expand Down Expand Up @@ -29,4 +29,4 @@
<ItemGroup>
<ProjectReference Include="..\..\..\Ed-Fi-ODS\Application\EdFi.Ods.Common\EdFi.Ods.Common.csproj" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>EdFi.Ods.Composites.Test</AssemblyName>
<RootNamespace>EdFi.Ods.Composites.Test</RootNamespace>
<RestorePackages>true</RestorePackages>
Expand Down Expand Up @@ -29,4 +29,4 @@
<ItemGroup>
<ProjectReference Include="..\..\..\Ed-Fi-ODS\Application\EdFi.Ods.Common\EdFi.Ods.Common.csproj" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

using System.Net;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace EdFi.Ods.Features.ChangeQueries.ActionResults
Expand All @@ -25,7 +26,7 @@ public async Task ExecuteResultAsync(ActionContext context)
StatusCode = (int) HttpStatusCode.MethodNotAllowed,
};

context.HttpContext.Response.Headers.Add("Allow", "GET");
context.HttpContext.Response.Headers.Append("Allow", "GET");

await objectResult.ExecuteResultAsync(context);
}
Expand Down
9 changes: 4 additions & 5 deletions Application/EdFi.Ods.Features/EdFi.Ods.Features.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>EdFi.Ods.Features</RootNamespace>
<AssemblyName>EdFi.Ods.Features</AssemblyName>
<Configurations>Debug;Release</Configurations>
Expand All @@ -17,7 +16,7 @@
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.2.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
</ItemGroup>
<ItemGroup>
<None Remove="Resources\ChangeQueries.json" />
Expand All @@ -32,6 +31,6 @@
<ProjectReference Include="..\EdFi.Ods.Common\EdFi.Ods.Common.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Primitives" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="8.0.0" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyTitle>EdFi.Ods.Profiles.Test</AssemblyTitle>
<Product>EdFi.Ods.Profiles.Test</Product>
<RestorePackages>true</RestorePackages>
Expand All @@ -13,8 +13,8 @@
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.2.0" />
<PackageReference Include="FluentValidation" Version="10.4.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="FluentValidation" Version="11.9.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
<ItemGroup>
Expand All @@ -35,4 +35,4 @@
<ProjectReference Include="..\..\..\Ed-Fi-ODS\Application\EdFi.Ods.Api\EdFi.Ods.Api.csproj" />
<ProjectReference Include="..\..\..\Ed-Fi-ODS\Application\EdFi.Ods.Common\EdFi.Ods.Common.csproj" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemlbyName>EdFi.Ods.Repositories.NHibernate.Tests</AssemlbyName>
<RootNamespace>EdFi.Ods.Repositories.NHibernate.Tests</RootNamespace>
<Copyright>Copyright © 2019 Ed-Fi Alliance, LLC and Contributors</Copyright>
Expand All @@ -18,23 +18,23 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Common" Version="5.4.447" />
<PackageReference Include="Autofac" Version="6.3.0" />
<PackageReference Include="Autofac" Version="8.0.0" />
<PackageReference Include="EdFi.Suite3.Security.DataAccess" Version="5.4.397" />
<PackageReference Include="EntityFramework" Version="6.4.4" />
<PackageReference Include="FakeItEasy" Version="7.2.0" />
<PackageReference Include="Iesi.Collections" Version="4.0.4" />
<PackageReference Include="log4net" Version="2.0.13" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="NHibernate" Version="5.3.11" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1">
<PackageReference Include="EntityFramework" Version="6.5.1" />
<PackageReference Include="FakeItEasy" Version="8.3.0" />
<PackageReference Include="Iesi.Collections" Version="4.1.1" />
<PackageReference Include="log4net" Version="2.0.17" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NHibernate" Version="5.5.1" />
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Remotion.Linq" Version="2.2.0" />
<PackageReference Include="Remotion.Linq.EagerFetching" Version="2.2.0" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.30" />
<PackageReference Include="Shouldly" Version="4.0.3" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.40" />
<PackageReference Include="Shouldly" Version="4.2.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\tests\EdFi.TestFixture\EdFi.TestFixture.csproj" />
Expand All @@ -55,4 +55,4 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>
</Project>
14 changes: 7 additions & 7 deletions Application/EdFi.Ods.Sandbox/EdFi.Ods.Sandbox.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>EdFi.Ods.Sandbox</AssemblyName>
<RootNamespace>EdFi.Ods.Sandbox</RootNamespace>
<RestorePackages>true</RestorePackages>
Expand All @@ -15,12 +15,12 @@
<ItemGroup>
<PackageReference Include="EdFi.Suite3.Admin.DataAccess" Version="5.4.456" />
<PackageReference Include="EdFi.Suite3.Common" Version="5.4.447" />
<PackageReference Include="EntityFramework" Version="6.4.4" />
<PackageReference Include="EntityFramework" Version="6.5.1" />
<PackageReference Include="EntityFramework6.Npgsql" Version="6.4.3" />
<PackageReference Include="Dapper" Version="2.0.123" />
<PackageReference Include="log4net" Version="2.0.13" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="6.0.0" />
<PackageReference Include="Npgsql" Version="6.0.11" />
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="log4net" Version="2.0.17" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Npgsql" Version="8.0.3" />
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
<PackageReference Include="System.Buffers" Version="4.5.1" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
Expand All @@ -31,4 +31,4 @@
<ItemGroup>
<ProjectReference Include="..\EdFi.Ods.Common\EdFi.Ods.Common.csproj" />
</ItemGroup>
</Project>
</Project>
8 changes: 4 additions & 4 deletions Application/EdFi.Ods.Standard/EdFi.Ods.Standard.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<PackageId>EdFi.Ods.Standard</PackageId>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>EdFi.Ods.Standard</AssemblyName>
<RootNamespace>EdFi.Ods.Standard</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
Expand All @@ -17,11 +17,11 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NHibernate" Version="5.3.11" />
<PackageReference Include="NHibernate" Version="5.5.1" />
</ItemGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.2.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\EdFi.Ods.Api\EdFi.Ods.Api.csproj" />
Expand All @@ -45,4 +45,4 @@
<ItemGroup>
<None Include="..\..\LICENSE.txt" Pack="true" PackagePath="LICENSE.txt" />
</ItemGroup>
</Project>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<AssemblyName>EdFi.Ods.Tests.FakeExtension</AssemblyName>
<RootNamespace>EdFi.Ods.Tests.FakeExtension</RootNamespace>
<Copyright>Copyright © 2019 Ed-Fi Alliance, LLC and Contributors</Copyright>
Expand All @@ -15,7 +15,7 @@
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="7.2.0" />
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
</ItemGroup>
<ItemGroup>
<Content Include="Marker_EdFi_Ods_Test_TestExtension.cs">
Expand All @@ -28,8 +28,8 @@
<ProjectReference Include="..\..\..\Ed-Fi-ODS\Application\EdFi.Ods.Common\EdFi.Ods.Common.csproj" />
<ProjectReference Include="..\..\..\Ed-Fi-ODS\Application\EdFi.Ods.Standard\EdFi.Ods.Standard.csproj" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Artifacts\Metadata\ApiModel.json" />
<EmbeddedResource Include="NHibernate\Mappings\SqlServer\EntityOrmMappings.hbm.xml" />
<ItemGroup>
<EmbeddedResource Include="Artifacts\Metadata\ApiModel.json" />
<EmbeddedResource Include="NHibernate\Mappings\SqlServer\EntityOrmMappings.hbm.xml" />
</ItemGroup>
</Project>
Loading
Loading