Skip to content

Commit

Permalink
Added net7 Support (#78)
Browse files Browse the repository at this point in the history
* Added net7 Support

* Added net7 Support

* Apply suggestions from code review

Co-authored-by: Andrew Rublyov  <[email protected]>

* Fixed Order

* Fixed Order

Co-authored-by: Andrew Rublyov  <[email protected]>
  • Loading branch information
Maruf61 and seclerp authored May 5, 2022
1 parent 0e5b8c1 commit bede50e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ More about features and available dialogs you could read in [**the blog post**](

[//]: # ( or JetBrains Rider **2022.1 EAP1**)
- EF Core **5.0+** with projects under such target frameworks:
- `net7.0` (preview)
- `net6.0`
- `net5.0`
- `netcoreapp3.1`
Expand Down
2 changes: 2 additions & 0 deletions src/dotnet/Rider.Plugins.EfCore/EfCoreHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ private static IEnumerable<IProject> GetSupportedDotnetProjects(this IProjectCol
private static bool IsMigrationProjectSupported(TargetFrameworkId targetFrameworkId) =>
targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.Net5)
|| targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.Net6)
|| targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.Net7)
|| targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.NetCore31)
|| targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.NetStandard21);

private static bool IsStartupProjectSupported(TargetFrameworkId targetFrameworkId) =>
targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.Net5)
|| targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.Net6)
|| targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.Net7)
|| targetFrameworkId.UniqueString.StartsWith(EfCoreSupportedTarget.NetCore31);

private static bool StartupProjectPackagesInstalled(IProject project) =>
Expand Down
1 change: 1 addition & 0 deletions src/dotnet/Rider.Plugins.EfCore/EfCoreSupportedTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ public static class EfCoreSupportedTarget
{
public const string Net5 = "net5.0";
public const string Net6 = "net6.0";
public const string Net7 = "net7.0";
public const string NetCore31 = ".NETCoreApp,Version=v3.1";
public const string NetStandard21 = ".NETStandard,Version=v2.1";
}
Expand Down

0 comments on commit bede50e

Please sign in to comment.