diff --git a/eng/Directory.Build.Common.props b/eng/Directory.Build.Common.props index 90b599a91e5be..79f90e57d61b1 100644 --- a/eng/Directory.Build.Common.props +++ b/eng/Directory.Build.Common.props @@ -38,7 +38,7 @@ --> $(NoWarn);CA1812 $(NoWarn); @@ -78,7 +78,7 @@ true - true + true true true true diff --git a/eng/Directory.Build.Common.targets b/eng/Directory.Build.Common.targets index 90d5a9d77f2bd..82922789bfffd 100644 --- a/eng/Directory.Build.Common.targets +++ b/eng/Directory.Build.Common.targets @@ -1,4 +1,4 @@ - + @@ -87,7 +87,7 @@ - + diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 42e785a88109f..97722102037fa 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -168,7 +168,7 @@ - + diff --git a/sdk/batch/Microsoft.Azure.Batch/src/Microsoft.Azure.Batch.csproj b/sdk/batch/Microsoft.Azure.Batch/src/Microsoft.Azure.Batch.csproj index 8d84ef134eb1c..4a7e73e808159 100644 --- a/sdk/batch/Microsoft.Azure.Batch/src/Microsoft.Azure.Batch.csproj +++ b/sdk/batch/Microsoft.Azure.Batch/src/Microsoft.Azure.Batch.csproj @@ -41,7 +41,7 @@ - + all runtime; build; native; contentfiles; analyzers; reliability diff --git a/sdk/core/Azure.Core/src/Pipeline/HttpPipelineTransportOptions.cs b/sdk/core/Azure.Core/src/Pipeline/HttpPipelineTransportOptions.cs index 320af70914f14..2fa96a34c2311 100644 --- a/sdk/core/Azure.Core/src/Pipeline/HttpPipelineTransportOptions.cs +++ b/sdk/core/Azure.Core/src/Pipeline/HttpPipelineTransportOptions.cs @@ -17,7 +17,10 @@ public class HttpPipelineTransportOptions /// public HttpPipelineTransportOptions() { + // suppress false postive of NetAnalyzers: error CA1416: This call site is reachable on all platforms. 'X509Certificate2' is unsupported on: 'browser'. +#pragma warning disable CA1416 ClientCertificates = new List(); +#pragma warning restore CA1416 } /// @@ -29,6 +32,6 @@ public HttpPipelineTransportOptions() /// The client certificate collection that will be configured for the transport. /// /// - public IList ClientCertificates {get;} + public IList ClientCertificates { get; } } }