diff --git a/src/Directory.Build.props b/src/Directory.Build.props
new file mode 100644
index 0000000000..fc1e65a008
--- /dev/null
+++ b/src/Directory.Build.props
@@ -0,0 +1,10 @@
+
+
+
+
+
+ net6.0
+ $(DefaultNetCoreApp);netstandard2.0
+
+
+
diff --git a/src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj b/src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj
index 36adc8822d..b027c098c6 100644
--- a/src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj
+++ b/src/HealthChecks.ApplicationStatus/HealthChecks.ApplicationStatus.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);ApplicationStatus
HealthChecks.ApplicationStatus is the health check package for detection graceful shutdown.
$(HealthCheckApplicationStatus)
diff --git a/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj b/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
index f3efa72d07..9eda4278dc 100644
--- a/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
+++ b/src/HealthChecks.ArangoDb/HealthChecks.ArangoDb.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);ArangoDb
HealthChecks.ArangoDb is the health check package for ArangoDb.
$(HealthCheckArangoDb)
diff --git a/src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj b/src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj
index 175ab0e901..cb6ddb6056 100644
--- a/src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj
+++ b/src/HealthChecks.Aws.S3/HealthChecks.Aws.S3.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);AWS;S3;Simple Storage Service
HealthChecks.Aws.S3 is the health check package for S3 Buckets and files.
$(HealthCheckAWSS3)
diff --git a/src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj b/src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj
index 39dab65586..0fb7b3b214 100644
--- a/src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj
+++ b/src/HealthChecks.Aws.SecretsManager/HealthChecks.Aws.SecretsManager.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);AWS;Secrets Manager;
HealthChecks.Aws.SecretsManager is the health check package for Secrets Manager.
$(HealthCheckAWSSecretsManager)
diff --git a/src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj b/src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj
index 9b82fdc98c..0de8b2e5fa 100644
--- a/src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj
+++ b/src/HealthChecks.Aws.Sns/HealthChecks.Aws.Sns.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);AWS;SNS;Amazon Simple Notification Service
HealthChecks.Aws.Sns is the health check package for Amazon Simple Notification Service.
$(HealthCheckAWSSns)
diff --git a/src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj b/src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj
index fedf4b934b..2151bf310c 100644
--- a/src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj
+++ b/src/HealthChecks.Aws.Sqs/HealthChecks.Aws.Sqs.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);AWS;SQS;Simple Queue Service
HealthChecks.Aws.Sqs is the health check package for SQS queues.
$(HealthCheckAWSSqs)
diff --git a/src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj b/src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj
index 8fc9040865..e04511d941 100644
--- a/src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj
+++ b/src/HealthChecks.Aws.SystemsManager/HealthChecks.Aws.SystemsManager.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);AWS;Systems Manager;Parameter Store
HealthChecks.Aws.SystemsManager is the health check package for Systems Manager for Parameter Store.
$(HealthCheckAWSSystemsManager)
diff --git a/src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj b/src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj
index a76c70899a..ad763adc20 100644
--- a/src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj
+++ b/src/HealthChecks.Azure.Data.Tables/HealthChecks.Azure.Data.Tables.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;Tables
HealthChecks.Azure.Data.Tables is the health check package for Azure Tables.
$(HealthCheckAzureDataTables)
diff --git a/src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj b/src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj
index ad0e5df17a..c2d2a7fcbd 100644
--- a/src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj
+++ b/src/HealthChecks.Azure.IoTHub/HealthChecks.Azure.IoTHub.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;IoT Hub
HealthChecks.Azure.IoTHub is the health check package for Azure IoT Hub.
$(HealthCheckIoTHub)
diff --git a/src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj b/src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj
index ee2c3facb2..3a2ae536d3 100644
--- a/src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj
+++ b/src/HealthChecks.Azure.KeyVault.Secrets/HealthChecks.Azure.KeyVault.Secrets.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure Key Vault;Secrets
HealthChecks.Azure.KeyVault.Secrets is the health check package for Azure Key Vault secrets
$(HealthCheckKeyVaultSecrets)
diff --git a/src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj b/src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj
index b64cf916ae..f9de200d04 100644
--- a/src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj
+++ b/src/HealthChecks.Azure.Messaging.EventHubs/HealthChecks.Azure.Messaging.EventHubs.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;EventHub
HealthChecks.Azure.Messaging.EventHubs is the health check package for Azure Event Hubs.
$(HealthCheckAzureMessagingEventsHubs)
diff --git a/src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj b/src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj
index 2aebac0a79..0611ee1dc5 100644
--- a/src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj
+++ b/src/HealthChecks.Azure.Storage.Blobs/HealthChecks.Azure.Storage.Blobs.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;AzureStorage
HealthChecks.Azure.Storage.Blobs is the health check package for Blobs.
$(HealthCheckAzureStorageBlobs)
diff --git a/src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj b/src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj
index 8e7d245573..da58b8f3ac 100644
--- a/src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj
+++ b/src/HealthChecks.Azure.Storage.Files.Shares/HealthChecks.Azure.Storage.Files.Shares.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;AzureStorage
HealthChecks.Azure.Storage.Files.Shares is the health check package for Azure File Shares.
$(HealthCheckAzureStorageFilesShares)
diff --git a/src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj b/src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj
index 286c7cf785..286ecb88b9 100644
--- a/src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj
+++ b/src/HealthChecks.Azure.Storage.Queues/HealthChecks.Azure.Storage.Queues.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;AzureStorage
HealthChecks.Azure.Storage.Queues is the health check package for Azure Storage Queues.
$(HealthCheckAzureStorageQueues)
diff --git a/src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj b/src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj
index f42607b0e4..095d58772e 100644
--- a/src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj
+++ b/src/HealthChecks.AzureApplicationInsights/HealthChecks.AzureApplicationInsights.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
HealthCheck;Azure;ApplicationInsights
HealthChecks.AzureApplicationInsights is the health check package for Azure Application Insights.
$(HealthCheckAzureApplicationInsights)
diff --git a/src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj b/src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj
index d4a06d893d..ea436b08b3 100644
--- a/src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj
+++ b/src/HealthChecks.AzureDigitalTwin/HealthChecks.AzureDigitalTwin.csproj
@@ -1,6 +1,6 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;DigitalTwin
HealthChecks.AzureDigitalTwin is the health check package for Azure DigitalTwin.
$(HealthCheckAzureDigitalTwin)
diff --git a/src/HealthChecks.AzureKeyVault/HealthChecks.AzureKeyVault.csproj b/src/HealthChecks.AzureKeyVault/HealthChecks.AzureKeyVault.csproj
index 988b474f5d..75d029fe49 100644
--- a/src/HealthChecks.AzureKeyVault/HealthChecks.AzureKeyVault.csproj
+++ b/src/HealthChecks.AzureKeyVault/HealthChecks.AzureKeyVault.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure Key Vault;Secrets
HealthChecks.AzureKeyVault is the health check package for Azure Key Vault secrets
$(HealthCheckKeyVault)
diff --git a/src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj b/src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj
index 45755c1748..fac2914f50 100644
--- a/src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj
+++ b/src/HealthChecks.AzureSearch/HealthChecks.AzureSearch.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;Search
HealthChecks.AzureSearch is the health check package for Azure Search.
$(HealthCheckAzureSearch)
diff --git a/src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj b/src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj
index 4f83b0dc39..c0e8a1574b 100644
--- a/src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj
+++ b/src/HealthChecks.AzureServiceBus/HealthChecks.AzureServiceBus.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;ServiceBus
HealthChecks.AzureServiceBus is the health check package for Azure Service Bus Queues and Topics.
$(HealthCheckAzureServiceBus)
diff --git a/src/HealthChecks.Consul/HealthChecks.Consul.csproj b/src/HealthChecks.Consul/HealthChecks.Consul.csproj
index cd87abbb64..4fe3c04841 100644
--- a/src/HealthChecks.Consul/HealthChecks.Consul.csproj
+++ b/src/HealthChecks.Consul/HealthChecks.Consul.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Consul
HealthChecks.Consul is the health check package for Consul Server.
$(HealthCheckConsul)
diff --git a/src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj b/src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj
index b96118612d..ddcf129d84 100644
--- a/src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj
+++ b/src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;CosmosDb
HealthChecks.CosmosDb is the health check package for Azure CosmosDb.
$(HealthCheckCosmosDb)
diff --git a/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj b/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj
index 39bba01ec3..429b26e222 100644
--- a/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj
+++ b/src/HealthChecks.DocumentDb/HealthChecks.DocumentDb.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Azure;DocumentDb
HealthChecks.DocumentDb is the health check package for Azure DocumentDb.
$(HealthCheckDocumentDb)
diff --git a/src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj b/src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj
index 4bd09a5afb..1171f2afd6 100644
--- a/src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj
+++ b/src/HealthChecks.DynamoDb/HealthChecks.DynamoDb.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);DynamoDb;AWS
HealthChecks.DynamoDb is the health check package for AWS DynamoDb.
$(HealthCheckDynamoDb)
diff --git a/src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj b/src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj
index ff1e8d5aec..fdca96ac0b 100644
--- a/src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj
+++ b/src/HealthChecks.Elasticsearch/HealthChecks.Elasticsearch.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Elasticsearch
HealthChecks.Elasticsearch is the health check package for Elasticsearch.
$(HealthCheckElasticsearch)
diff --git a/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj b/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj
index c78dc20675..1c033d57e0 100644
--- a/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj
+++ b/src/HealthChecks.EventStore/HealthChecks.EventStore.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);EventStore
HealthChecks.EventStore is the health check package for EventStore, using the TCP Client.
$(HealthCheckEventStore)
diff --git a/src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj b/src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj
index b332d41c69..66b8bd81f3 100644
--- a/src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj
+++ b/src/HealthChecks.Gcp.CloudFirestore/HealthChecks.Gcp.CloudFirestore.csproj
@@ -2,7 +2,7 @@
- netstandard2.1
+ $(DefaultNetCoreApp);netstandard2.1
$(PackageTags);CloudFirestore
HealthChecks.Gcp.CloudFirestore is the health check package for the Firebase Cloud Firebase realtime database.
$(HealthCheckCloudFirestore)
diff --git a/src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj b/src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj
index cf3ea330c2..609ff4bacf 100644
--- a/src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj
+++ b/src/HealthChecks.Gremlin/HealthChecks.Gremlin.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Gremlin;TinkerPop;GraphDB
HealthChecks.Gremlin is the health check package for Gremlin.
$(HealthCheckGremlin)
diff --git a/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj b/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj
index 64cd5e0590..ac71badd0b 100644
--- a/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj
+++ b/src/HealthChecks.Hangfire/HealthChecks.Hangfire.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Hangfire
HealthChecks.Hangfire is the health check package for Hangfire.
$(HealthCheckHangfire)
diff --git a/src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj b/src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj
index b4b7427870..9b4699991a 100644
--- a/src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj
+++ b/src/HealthChecks.IbmMQ/HealthChecks.IbmMQ.csproj
@@ -1,7 +1,7 @@
- net6.0;netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);IbmMQ
HealthChecks.IbmMQ is the health check package for IbmMQ.
$(HealthCheckIbmMQ)
diff --git a/src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj b/src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj
index b4888b7ce2..55f089eb8e 100644
--- a/src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj
+++ b/src/HealthChecks.InfluxDB/HealthChecks.InfluxDB.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
HealthCheck;Health;InfluxDB
HealthChecks.InfluxDB is the health check package for InfluxDB.
$(HealthCheckInfluxDB)
diff --git a/src/HealthChecks.Kafka/HealthChecks.Kafka.csproj b/src/HealthChecks.Kafka/HealthChecks.Kafka.csproj
index 0295031359..10d476cbb3 100644
--- a/src/HealthChecks.Kafka/HealthChecks.Kafka.csproj
+++ b/src/HealthChecks.Kafka/HealthChecks.Kafka.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Kafka;Confluent
HealthChecks.Kafka is the health check package for Kafka.
$(HealthCheckKafka)
diff --git a/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj b/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj
index 10520df106..ef18368f12 100644
--- a/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj
+++ b/src/HealthChecks.MongoDb/HealthChecks.MongoDb.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);MongoDb
HealthChecks.MongoDb is the health check package for MongoDb.
$(HealthCheckMongoDB)
diff --git a/src/HealthChecks.MySql/HealthChecks.MySql.csproj b/src/HealthChecks.MySql/HealthChecks.MySql.csproj
index 04c87fd401..3ab820fd25 100644
--- a/src/HealthChecks.MySql/HealthChecks.MySql.csproj
+++ b/src/HealthChecks.MySql/HealthChecks.MySql.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);MySQL
HealthChecks.MySql is the health check package for MySQL.
$(HealthCheckMySql)
diff --git a/src/HealthChecks.Nats/HealthChecks.Nats.csproj b/src/HealthChecks.Nats/HealthChecks.Nats.csproj
index 5ef1c8d7ed..90ccc280b3 100644
--- a/src/HealthChecks.Nats/HealthChecks.Nats.csproj
+++ b/src/HealthChecks.Nats/HealthChecks.Nats.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Nats
HealthChecks.Nats is the health check package for Nats.
$(HealthCheckNats)
diff --git a/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj b/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj
index 1365aab56c..71270b8346 100644
--- a/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj
+++ b/src/HealthChecks.OpenIdConnectServer/HealthChecks.OpenIdConnectServer.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);IdentityServer;IdSvr;OpenId;OpenIdConnect
HealthChecks.OpenIdConnectServer is the health check package for OpenIdConnect servers
$(HealthCheckOpenIdConnectServer)
diff --git a/src/HealthChecks.Oracle/HealthChecks.Oracle.csproj b/src/HealthChecks.Oracle/HealthChecks.Oracle.csproj
index a3128ad6f1..c4e1529407 100644
--- a/src/HealthChecks.Oracle/HealthChecks.Oracle.csproj
+++ b/src/HealthChecks.Oracle/HealthChecks.Oracle.csproj
@@ -1,7 +1,7 @@
- netstandard2.0;netstandard2.1
+ $(DefaultLibraryTargetFrameworks);netstandard2.1
$(PackageTags);Oracle
HealthChecks.Oracle is the health check package for Oracle Database.
$(HealthCheckOracle)
diff --git a/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj b/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj
index 4eeb6ed57a..02f786bfaf 100644
--- a/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj
+++ b/src/HealthChecks.Publisher.ApplicationInsights/HealthChecks.Publisher.ApplicationInsights.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Publisher;Application Insights
HealthChecks.Publisher.ApplicationInsights is the health check publisher for Application Insights.
$(HealthCheckPublisherAppplicationInsights)
diff --git a/src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj b/src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj
index c7d7f2032d..6d9d61827a 100644
--- a/src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj
+++ b/src/HealthChecks.Publisher.CloudWatch/HealthChecks.Publisher.CloudWatch.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Publisher;AWS;CloudWatch
HealthChecks.Publisher.CloudWatch is the health check publisher for AWS CloudWatch.
$(HealthCheckPublisherCloudWatch)
diff --git a/src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj b/src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj
index 016dee0f53..485816b7f7 100644
--- a/src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj
+++ b/src/HealthChecks.Publisher.Datadog/HealthChecks.Publisher.Datadog.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Publisher;Datadog
HealthChecks.Publisher.Datadog is the health check publisher for Datadog.
$(HealthCheckPublisherDatadog)
diff --git a/src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj b/src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj
index 28faa3a51c..b4dc9129d3 100644
--- a/src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj
+++ b/src/HealthChecks.Rabbitmq/HealthChecks.Rabbitmq.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);RabbitMQ
HealthChecks.RabbitMQ is the health check package for RabbitMQ.
$(HealthCheckRabbitMQ)
diff --git a/src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj b/src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj
index 4711c9ff76..b08a06b0b4 100644
--- a/src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj
+++ b/src/HealthChecks.RavenDB/HealthChecks.RavenDB.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);RavenDB
HealthChecks.RavenDB is the health check package for RavenDB.
$(HealthCheckRavenDB)
diff --git a/src/HealthChecks.Redis/HealthChecks.Redis.csproj b/src/HealthChecks.Redis/HealthChecks.Redis.csproj
index 1b47c0eccb..acb25016b4 100644
--- a/src/HealthChecks.Redis/HealthChecks.Redis.csproj
+++ b/src/HealthChecks.Redis/HealthChecks.Redis.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Redis
HealthChecks.Redis is the health check package for Redis.
$(HealthCheckRedis)
diff --git a/src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj b/src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj
index 47ef1bcbf4..8fcc9e6453 100644
--- a/src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj
+++ b/src/HealthChecks.SendGrid/HealthChecks.SendGrid.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);SendGrid
HealthChecks.SendGrid is the health check package for SendGrid.
$(HealthCheckSendGrid)
diff --git a/src/HealthChecks.SignalR/HealthChecks.SignalR.csproj b/src/HealthChecks.SignalR/HealthChecks.SignalR.csproj
index e001a97e3c..76ef366967 100644
--- a/src/HealthChecks.SignalR/HealthChecks.SignalR.csproj
+++ b/src/HealthChecks.SignalR/HealthChecks.SignalR.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);SignalR
HealthChecks.SignalR is the health check package for SignalR.
$(HealthCheckSignalR)
diff --git a/src/HealthChecks.Solr/HealthChecks.Solr.csproj b/src/HealthChecks.Solr/HealthChecks.Solr.csproj
index fbe2125903..6852a56b47 100644
--- a/src/HealthChecks.Solr/HealthChecks.Solr.csproj
+++ b/src/HealthChecks.Solr/HealthChecks.Solr.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);solr
HealthChecks.solr is the health check package for solr.
$(HealthCheckSolr)
diff --git a/src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj b/src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj
index b3c5a757d6..02470569d2 100644
--- a/src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj
+++ b/src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Sql Server
HealthChecks.SqlServer is the health check package for SqlServer.
$(HealthCheckSqlServer)
diff --git a/src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj b/src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj
index 9cd5146ab6..2076ebb4b9 100644
--- a/src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj
+++ b/src/HealthChecks.Sqlite/HealthChecks.Sqlite.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Sqlite
HealthChecks.Sqlite is the health check package for Sqlite.
$(HealthCheckSqlite)
diff --git a/src/HealthChecks.Sqlite/SqliteHealthCheck.cs b/src/HealthChecks.Sqlite/SqliteHealthCheck.cs
index 24aa7b2f53..37d8c2e825 100644
--- a/src/HealthChecks.Sqlite/SqliteHealthCheck.cs
+++ b/src/HealthChecks.Sqlite/SqliteHealthCheck.cs
@@ -29,7 +29,7 @@ public async Task CheckHealthAsync(HealthCheckContext context
using var command = connection.CreateCommand();
command.CommandText = _options.CommandText;
- object result = await command.ExecuteScalarAsync(cancellationToken).ConfigureAwait(false);
+ object? result = await command.ExecuteScalarAsync(cancellationToken).ConfigureAwait(false);
return _options.HealthCheckResultBuilder == null
? HealthCheckResult.Healthy()
diff --git a/src/HealthChecks.System/DependencyInjection/SystemHealthCheckBuilderExtensions.cs b/src/HealthChecks.System/DependencyInjection/SystemHealthCheckBuilderExtensions.cs
index dd2f3bda52..7213219f4f 100644
--- a/src/HealthChecks.System/DependencyInjection/SystemHealthCheckBuilderExtensions.cs
+++ b/src/HealthChecks.System/DependencyInjection/SystemHealthCheckBuilderExtensions.cs
@@ -218,6 +218,9 @@ public static IHealthChecksBuilder AddProcessAllocatedMemoryHealthCheck(
/// A list of tags that can be used to filter sets of health checks. Optional.
/// An optional representing the timeout of the check.
/// The specified .
+#if NET6_0_OR_GREATER
+ [global::System.Runtime.Versioning.SupportedOSPlatform("windows")]
+#endif
public static IHealthChecksBuilder AddWindowsServiceHealthCheck(
this IHealthChecksBuilder builder,
string serviceName,
diff --git a/src/HealthChecks.System/HealthChecks.System.csproj b/src/HealthChecks.System/HealthChecks.System.csproj
index fb1fe34aa7..ff8f658248 100644
--- a/src/HealthChecks.System/HealthChecks.System.csproj
+++ b/src/HealthChecks.System/HealthChecks.System.csproj
@@ -1,7 +1,7 @@
- netstandard2.0
+ $(DefaultLibraryTargetFrameworks)
$(PackageTags);Beat;System;Ping;Disk Storage
HealthChecks.System is the system health check package.
$(HealthCheckSystem)
diff --git a/src/HealthChecks.System/WindowsServiceHealthCheck.cs b/src/HealthChecks.System/WindowsServiceHealthCheck.cs
index 63c8fbdb3c..068d404f4f 100644
--- a/src/HealthChecks.System/WindowsServiceHealthCheck.cs
+++ b/src/HealthChecks.System/WindowsServiceHealthCheck.cs
@@ -3,6 +3,9 @@
namespace HealthChecks.System;
+#if NET6_0_OR_GREATER
+[global::System.Runtime.Versioning.SupportedOSPlatform("windows")]
+#endif
public class WindowsServiceHealthCheck : IHealthCheck
{
private readonly string _serviceName;
diff --git a/test/HealthChecks.System.Tests/HealthChecks.System.approved.txt b/test/HealthChecks.System.Tests/HealthChecks.System.approved.txt
index 52b1fee702..9d9b33190e 100644
--- a/test/HealthChecks.System.Tests/HealthChecks.System.approved.txt
+++ b/test/HealthChecks.System.Tests/HealthChecks.System.approved.txt
@@ -56,6 +56,7 @@ namespace HealthChecks.System
public ProcessHealthCheck(string processName, System.Func predicate) { }
public System.Threading.Tasks.Task CheckHealthAsync(Microsoft.Extensions.Diagnostics.HealthChecks.HealthCheckContext context, System.Threading.CancellationToken cancellationToken = default) { }
}
+ [System.Runtime.Versioning.SupportedOSPlatform("windows")]
public class WindowsServiceHealthCheck : Microsoft.Extensions.Diagnostics.HealthChecks.IHealthCheck
{
public WindowsServiceHealthCheck(string serviceName, System.Func predicate, string? machineName = null) { }
@@ -74,6 +75,7 @@ namespace Microsoft.Extensions.DependencyInjection
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddProcessAllocatedMemoryHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, int maximumMegabytesAllocated, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { }
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddProcessHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string processName, System.Func predicate, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { }
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddVirtualMemorySizeHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, long maximumMemoryBytes, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { }
+ [System.Runtime.Versioning.SupportedOSPlatform("windows")]
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddWindowsServiceHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, string serviceName, System.Func predicate, string? machineName = null, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { }
public static Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder AddWorkingSetHealthCheck(this Microsoft.Extensions.DependencyInjection.IHealthChecksBuilder builder, long maximumMemoryBytes, string? name = null, Microsoft.Extensions.Diagnostics.HealthChecks.HealthStatus? failureStatus = default, System.Collections.Generic.IEnumerable? tags = null, System.TimeSpan? timeout = default) { }
}