From c795ce6228a1c1044774816d90eedf6dcee37104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Luthi?= Date: Tue, 27 Jun 2023 13:23:32 +0200 Subject: [PATCH 1/2] Make EntityFrameworkCore.Jet available on `net6.0` By using `[SupportedOSPlatform("windows")]` at assembly level instead of targeting `net6.0-windows`. This will enable taking a dependency on the EntityFrameworkCore.Jet* NuGet packages on Linux and macOS. The consumer of EntityFrameworkCore.Jet can then decide how to handle [CA1416][1] either by adding `[SupportedOSPlatform("windows")]`, by targeting `net6.0-windows` or by testing `OperatingSystem.IsWindows()` at runtime. [1]: https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1416 --- src/Directory.Build.props | 6 ++++++ src/EFCore.Jet.Data/EFCore.Jet.Data.csproj | 2 +- src/EFCore.Jet.Odbc/EFCore.Jet.Odbc.csproj | 2 +- src/EFCore.Jet.OleDb/EFCore.Jet.OleDb.csproj | 2 +- src/EFCore.Jet/EFCore.Jet.csproj | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 7b511be..0c1c105 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -15,6 +15,12 @@ true + + + <_Parameter1>windows + + +