diff --git a/src/libraries/System.Net.Security/src/Resources/Strings.resx b/src/libraries/System.Net.Security/src/Resources/Strings.resx index 8af05ebe134c8d..1270f6bb3be83a 100644 --- a/src/libraries/System.Net.Security/src/Resources/Strings.resx +++ b/src/libraries/System.Net.Security/src/Resources/Strings.resx @@ -443,4 +443,7 @@ CipherSuitesPolicy is not supported on this platform. + + System.Net.Security is not supported on this platform. + diff --git a/src/libraries/System.Net.Security/src/System.Net.Security.csproj b/src/libraries/System.Net.Security/src/System.Net.Security.csproj index 30737df95bbcca..cce9afa62bc968 100644 --- a/src/libraries/System.Net.Security/src/System.Net.Security.csproj +++ b/src/libraries/System.Net.Security/src/System.Net.Security.csproj @@ -7,10 +7,13 @@ $(DefineConstants);PRODUCT enable + + SR.SystemNetSecurity_PlatformNotSupported + $(DefineConstants);SYSNETSECURITY_NO_OPENSSL - + @@ -86,7 +89,7 @@ - + True True @@ -94,7 +97,7 @@ - + True True @@ -206,7 +209,7 @@ - + - + @@ -358,7 +361,7 @@ - + diff --git a/src/libraries/System.Net.Security/tests/FunctionalTests/AssemblyInfo.cs b/src/libraries/System.Net.Security/tests/FunctionalTests/AssemblyInfo.cs index 54c8a4d926e5c3..4b859917fd8cb2 100644 --- a/src/libraries/System.Net.Security/tests/FunctionalTests/AssemblyInfo.cs +++ b/src/libraries/System.Net.Security/tests/FunctionalTests/AssemblyInfo.cs @@ -4,3 +4,4 @@ using Xunit; [assembly: ActiveIssue("https://github.com/dotnet/runtime/issues/34690", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)] +[assembly: SkipOnMono("System.Net.Security is not supported on Browser", TestPlatforms.Browser)] \ No newline at end of file diff --git a/src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj b/src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj index a1e3f33b84be1c..3845b272ae6aed 100644 --- a/src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj +++ b/src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj @@ -4,9 +4,12 @@ true $(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-Browser;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS annotations + true + + @@ -84,7 +87,7 @@ - + @@ -94,7 +97,7 @@ - + diff --git a/src/libraries/System.Net.Security/tests/UnitTests/AssemblyInfo.cs b/src/libraries/System.Net.Security/tests/UnitTests/AssemblyInfo.cs new file mode 100644 index 00000000000000..766d39919ff4eb --- /dev/null +++ b/src/libraries/System.Net.Security/tests/UnitTests/AssemblyInfo.cs @@ -0,0 +1,6 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Xunit; + +[assembly: SkipOnMono("System.Net.Security is not supported on Browser", TestPlatforms.Browser)] \ No newline at end of file diff --git a/src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj b/src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj index 2323a9323b51b3..8379fd48c4792a 100644 --- a/src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj +++ b/src/libraries/System.Net.Security/tests/UnitTests/System.Net.Security.Unit.Tests.csproj @@ -12,8 +12,12 @@ $(NoWarn);3021 $(NetCoreAppCurrent)-Windows_NT;$(NetCoreAppCurrent)-Unix;$(NetCoreAppCurrent)-Browser;$(NetCoreAppCurrent)-OSX;$(NetCoreAppCurrent)-iOS annotations + true + + + @@ -30,7 +34,7 @@ - + diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 4a8efb0e136bc6..f4ffdf695e6356 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -39,7 +39,6 @@ -