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

135 drop net 6 and add net 9 support #138

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Restore dependencies
run: dotnet restore ./src/AspNetCore.Identity.Mongo/
- name: Build
Expand Down
19 changes: 10 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,21 @@ that is not occurring.

#### **Dotnet version**

* master branch refers only relevant and supported by Microsoft versions of dotnet. (Net 6.0 & Net 8.0 for now)
* master branch refers only relevant and supported by Microsoft versions of dotnet.

* older versions will be branched out, so if you want to make changes make sure you selected right branch.

* relations table:

| Dotnet Version | Branch |
|----------------|-------------------------|
| netstandard2.1 | `releases/8.x` |
| netcoreapp3.1 | `releases/8.x` |
| net5.0 | `releases/8.x` |
| net6.0 | `releases/8.x` `master` |
| net7.0 | |
| net8.0 | `master` |
| Dotnet Version | Branch |
|----------------|----------------|
| netstandard2.1 | `releases/8.x` |
| netcoreapp3.1 | `releases/8.x` |
| net5.0 | `releases/8.x` |
| net6.0 | `releases/9.x` |
| net7.0 | |
| net8.0 | `master` |
| net9.0 | `master` |

#### **Issue and Pull request templates**

Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ This is a MongoDB provider for the ASP.NET Core Identity framework. It is comple

## Dotnet Versions support

Starting from `v9.0.0` library only supports **.Net 6.0** and **.Net 8.0** as they are
only versions maintainable by Microsoft at the moment. [Supported Dotnet Versions](https://dotnet.microsoft.com/en-us/download/dotnet)
The latest package version supports only dotnet versions maintainable by Microsoft at the moment [Supported Dotnet Versions](https://dotnet.microsoft.com/en-us/download/dotnet)

Library supports **.Net 6.0**, **.Net 5.0**, **.Net Core 3.1**, **.Net Core 2.1**
simultaneously started from 8.3.0 nuget package.
Please refer to [this table](./CONTRIBUTING.md#dotnet-version) if you'd like to use this library with older dotnet versions.

## MongoDB Indexes

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

<PropertyGroup>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="Mongo2Go" Version="4.0.0" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit" Version="4.3.1" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<PrivateAssets>all</PrivateAssets>
Expand Down
4 changes: 2 additions & 2 deletions samples/TestSite/TestSite.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<UserSecretsId>aspnet-TestSite-4862F257-7F38-4DD8-A1E1-A4E86B434B28</UserSecretsId>
<DockerDefaultTargetOS>Windows</DockerDefaultTargetOS>
</PropertyGroup>


<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="8.0.11" />
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="9.0.0" />
</ItemGroup>


Expand Down
12 changes: 6 additions & 6 deletions src/AspNetCore.Identity.Mongo/AspNetCore.Identity.Mongo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<ApplicationIcon />
<StartupObject />
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
Expand Down Expand Up @@ -33,16 +33,16 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework) == 'net6.0'">
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="6.0.36" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="6.0.36" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework) == 'net8.0'">
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="8.0.11" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="8.0.11" />
</ItemGroup>

<ItemGroup Condition="$(TargetFramework) == 'net9.0'">
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="9.0.0" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
<None Include="..\..\LICENSE.txt">
<Pack>True</Pack>
Expand Down