From 090c84c8f42ac84afe7343744caeca0c2b6cbf6a Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 24 Jun 2026 15:04:00 -0700 Subject: [PATCH 1/3] Upgrade projects to target .NET 10 --- .../EventWaitHandleAccessRule/Overview/Project.csproj | 2 +- .../EventWaitHandleSecurity/RemoveAccessRule/Project.csproj | 2 +- .../EventWaitHandleSecurity/RemoveAccessRuleAll/Project.csproj | 2 +- .../RemoveAccessRuleSpecific/Project.csproj | 2 +- .../EventWaitHandleSecurity/ResetAccessRule/Project.csproj | 2 +- .../EventWaitHandleSecurity/SetAccessRule/Project.csproj | 2 +- .../FileSystemAuditRule/Overview/Project.csproj | 2 +- .../MutexAccessRule/Overview/Project.csproj | 2 +- .../MutexSecurity/RemoveAccessRule/Project.csproj | 2 +- .../MutexSecurity/RemoveAccessRuleAll/Project.csproj | 2 +- .../MutexSecurity/RemoveAccessRuleSpecific/Project.csproj | 2 +- .../MutexSecurity/ResetAccessRule/Project.csproj | 2 +- .../MutexSecurity/SetAccessRule/Project.csproj | 2 +- .../RegistryAccessRule/.ctor/Project.csproj | 2 +- .../RegistryAccessRule/Overview/Project.csproj | 2 +- .../RegistrySecurity/Overview/Project.csproj | 2 +- .../RegistrySecurity/RemoveAccessRuleAll/Project.csproj | 2 +- .../RegistrySecurity/RemoveAccessRuleSpecific/Project.csproj | 2 +- .../RegistrySecurity/ResetAccessRule/Project.csproj | 2 +- .../RegistrySecurity/SetAccessRule/Project.csproj | 2 +- .../SemaphoreAccessRule/Overview/Project.csproj | 2 +- .../SemaphoreSecurity/RemoveAccessRule/Project.csproj | 2 +- .../SemaphoreSecurity/RemoveAccessRuleAll/Project.csproj | 2 +- .../SemaphoreSecurity/RemoveAccessRuleSpecific/Project.csproj | 2 +- .../SemaphoreSecurity/ResetAccessRule/Project.csproj | 2 +- .../SemaphoreSecurity/SetAccessRule/Project.csproj | 2 +- .../OpenFlags/Overview/Project.csproj | 2 +- .../PublicKey/Key/Project.csproj | 2 +- .../PublicKey/Overview/Project.csproj | 2 +- .../StoreName/Overview/Project.csproj | 2 +- .../X500DistinguishedName/Overview/Project.csproj | 2 +- .../X509BasicConstraintsExtension/Overview/Project.csproj | 2 +- .../X509Certificate/.ctor/Project.csproj | 2 +- .../X509Certificate/CreateFromCertFile/Project.csproj | 2 +- .../X509Certificate/Equals/Project.csproj | 2 +- .../X509Certificate/GetCertHash/Project.csproj | 2 +- .../X509Certificate/GetCertHashString/Project.csproj | 2 +- .../X509Certificate/GetEffectiveDateString/Project.csproj | 2 +- .../X509Certificate/GetExpirationDateString/Project.csproj | 2 +- .../X509Certificate/GetFormat/Project.csproj | 2 +- .../X509Certificate/GetHashCode/Project.csproj | 2 +- .../X509Certificate/GetKeyAlgorithm/Project.csproj | 2 +- .../X509Certificate/GetKeyAlgorithmParameters/Project.csproj | 2 +- .../GetKeyAlgorithmParametersString/Project.csproj | 2 +- .../X509Certificate/GetPublicKey/Project.csproj | 2 +- .../X509Certificate/GetPublicKeyString/Project.csproj | 2 +- .../X509Certificate/GetRawCertData/Project.csproj | 2 +- .../X509Certificate/GetRawCertDataString/Project.csproj | 2 +- .../X509Certificate/GetSerialNumber/Project.csproj | 2 +- .../X509Certificate/GetSerialNumberString/Project.csproj | 2 +- .../X509Certificate/Overview/Project.csproj | 2 +- .../X509Chain/Overview/Project.csproj | 2 +- .../CipherData/.ctor/Project.csproj | 2 +- .../CipherData/Overview/Project.csproj | 2 +- .../CipherReference/GetXml/Project.csproj | 2 +- .../DSAKeyValue/Overview/Project.csproj | 2 +- .../DataObject/Overview/Project.csproj | 2 +- .../DataReference/Overview/Project.csproj | 2 +- .../EncryptedData/Overview/Project.csproj | 2 +- .../EncryptedKey/Overview/Project.csproj | 2 +- .../EncryptedType/Overview/Project.csproj | 2 +- .../EncryptedXml/AddKeyNameMapping/Project.csproj | 2 +- .../EncryptedXml/DecryptDocument/Project.csproj | 2 +- .../EncryptionProperty/Overview/Project.csproj | 2 +- .../IRelDecryptor/Overview/Project.csproj | 2 +- .../KeyInfo/Overview/Project.csproj | 2 +- .../KeyInfoX509Data/.ctor/Project.csproj | 2 +- .../KeyInfoX509Data/Overview/Project.csproj | 2 +- .../KeyReference/Overview/Project.csproj | 2 +- .../Reference/.ctor/Project.csproj | 2 +- .../Signature/Overview/Project.csproj | 2 +- .../SignedXml/AddObject/Project.csproj | 2 +- .../SignedXml/CheckSignatureReturningKey/Project.csproj | 2 +- .../SignedXml/XmlDsigBase64TransformUrl/Project.csproj | 2 +- .../SignedXml/XmlDsigC14NTransformUrl/Project.csproj | 2 +- .../XmlDsigEnvelopedSignatureTransformUrl/Project.csproj | 2 +- .../SignedXml/XmlDsigExcC14NTransformUrl/Project.csproj | 2 +- .../XmlDsigExcC14NWithCommentsTransformUrl/Project.csproj | 2 +- .../SignedXml/XmlDsigXPathTransformUrl/Project.csproj | 2 +- .../SignedXml/XmlDsigXsltTransformUrl/Project.csproj | 2 +- .../XmlDsigC14NWithCommentsTransform/Overview/Project.csproj | 2 +- .../XmlDsigXPathTransform/Overview/Project.csproj | 2 +- .../XmlDsigXsltTransform/Overview/Project.csproj | 2 +- .../System.Security.Cryptography/Aes/Overview/Project.csproj | 2 +- .../AesCryptoServiceProvider/Overview/Project.csproj | 2 +- .../AesManaged/Overview/Project.csproj | 2 +- .../AsnEncodedData/Overview/Project.csproj | 2 +- .../AsymmetricKeyExchangeDeformatter/Overview/Project.csproj | 2 +- .../CryptoConfig/Overview/Project.csproj | 2 +- .../CryptoStream/Overview/Project.csproj | 2 +- .../CryptographicException/Overview/Project.csproj | 2 +- .../Overview/Project.csproj | 2 +- .../CspKeyContainerInfo/Overview/Project.csproj | 2 +- .../CspParameters/KeyNumber/Project.csproj | 2 +- .../CspParameters/Overview/Project.csproj | 2 +- .../System.Security.Cryptography/DES/Create/project.csproj | 2 +- .../DESCryptoServiceProvider/Overview/Project.csproj | 2 +- .../DSASignatureDeformatter/Overview/Project.csproj | 2 +- .../DSASignatureFormatter/Overview/Project.csproj | 2 +- .../DataProtectionScope/Overview/Project.csproj | 2 +- .../ECDiffieHellmanCng/Overview/Project.csproj | 2 +- .../ECDsaCng/Overview/Project.csproj | 2 +- .../FromBase64Transform/Overview/Project.csproj | 2 +- .../HMACSHA256/Overview/Project.csproj | 2 +- .../HMACSHA384/Overview/Project.csproj | 2 +- .../HMACSHA512/Overview/Project.csproj | 2 +- .../HashAlgorithm/ComputeHash/Project.csproj | 2 +- .../HashAlgorithm/Overview/Project.csproj | 2 +- .../HashAlgorithm/TransformBlock/Project.csproj | 2 +- .../KeySizes/Overview/Project.csproj | 2 +- .../KeyedHashAlgorithm/Key/Project.csproj | 2 +- .../KeyedHashAlgorithm/Overview/Project.csproj | 2 +- .../MaskGenerationMethod/Overview/Project.csproj | 2 +- .../System.Security.Cryptography/Oid/Overview/Project.csproj | 2 +- .../PasswordDeriveBytes/Overview/Project.csproj | 2 +- .../System.Security.Cryptography/RC2/Create/project.csproj | 2 +- .../RC2CryptoServiceProvider/Overview/Project.csproj | 2 +- .../RC2CryptoServiceProvider/UseSalt/Project.csproj | 2 +- .../RNGCryptoServiceProvider/Overview/Project.csproj | 2 +- .../RSACryptoServiceProvider/Decrypt/Project.csproj | 2 +- .../RSACryptoServiceProvider/Encrypt/Project.csproj | 2 +- .../RSACryptoServiceProvider/ImportParameters/Project.csproj | 2 +- .../RSACryptoServiceProvider/PersistKeyInCsp/Project.csproj | 2 +- .../RSACryptoServiceProvider/SignHash/Project.csproj | 2 +- .../RSACryptoServiceProvider/UseMachineKeyStore/Project.csproj | 2 +- .../RSAOAEPKeyExchangeDeformatter/Overview/Project.csproj | 2 +- .../RSAOAEPKeyExchangeDeformatter/Parameters/Project.csproj | 2 +- .../CreateKeyExchange/Project.csproj | 2 +- .../RSAPKCS1SignatureDeformatter/Overview/Project.csproj | 2 +- .../RSAPKCS1SignatureFormatter/Overview/Project.csproj | 2 +- .../RandomNumberGenerator/GetBytes/Project.csproj | 2 +- .../RandomNumberGenerator/GetNonZeroBytes/Project.csproj | 2 +- .../Rfc2898DeriveBytes/Overview/Project.csproj | 2 +- .../RijndaelManaged/Overview/Project.csproj | 2 +- .../System.Security.Cryptography/SHA384/Overview/Project.csproj | 2 +- .../System.Security.Cryptography/SHA512/Overview/Project.csproj | 2 +- .../SymmetricAlgorithm/CreateEncryptor/Project.csproj | 2 +- .../SymmetricAlgorithm/LegalBlockSizes/Project.csproj | 2 +- .../SymmetricAlgorithm/Overview/Project.csproj | 2 +- .../ToBase64Transform/Overview/Project.csproj | 2 +- .../TripleDES/Create/project.csproj | 2 +- .../CodeConnectAccess/Overview/Project.csproj | 2 +- .../System.Security.Policy/GacInstalled/Equals/Project.csproj | 2 +- snippets/csharp/System.Security.Policy/Hash/SHA1/Project.csproj | 2 +- .../GenericIdentity/Overview/Project.csproj | 2 +- .../GenericPrincipal/Overview/Project.csproj | 2 +- .../WindowsAccountType/Overview/Project.csproj | 2 +- .../WindowsBuiltInRole/Overview/Project.csproj | 2 +- .../WindowsPrincipal/.ctor/Project.csproj | 2 +- .../WindowsPrincipal/Identity/Project.csproj | 2 +- .../CryptoProvider/BlockSize/RmContentPublish.csproj | 2 +- .../CryptoProvider/BoundGrants/RmContentViewer.csproj | 2 +- .../UnsignedPublishLicense/.ctor/UnsignedPubLicense.csproj | 2 +- .../System.Security/HostSecurityManager/Overview/Project.csproj | 2 +- .../csharp/System.Security/IPermission/Overview/Project.csproj | 2 +- .../System.Security/SecureString/AppendChar/Project.csproj | 2 +- .../System.Security/SecurityElement/Overview/Project.csproj | 2 +- .../SecurityElement/SearchForTextOfTag/Project.csproj | 2 +- .../System.Security/SecurityException/.ctor/Project.csproj | 2 +- .../System.Security/SecurityException/Overview/Project.csproj | 2 +- 160 files changed, 160 insertions(+), 160 deletions(-) diff --git a/snippets/csharp/System.Security.AccessControl/EventWaitHandleAccessRule/Overview/Project.csproj b/snippets/csharp/System.Security.AccessControl/EventWaitHandleAccessRule/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/EventWaitHandleAccessRule/Overview/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/EventWaitHandleAccessRule/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRuleAll/Project.csproj b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRuleAll/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRuleAll/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRuleAll/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRuleSpecific/Project.csproj b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRuleSpecific/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRuleSpecific/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/RemoveAccessRuleSpecific/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/ResetAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/ResetAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/ResetAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/ResetAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/SetAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/SetAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/SetAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/EventWaitHandleSecurity/SetAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/FileSystemAuditRule/Overview/Project.csproj b/snippets/csharp/System.Security.AccessControl/FileSystemAuditRule/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/FileSystemAuditRule/Overview/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/FileSystemAuditRule/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/MutexAccessRule/Overview/Project.csproj b/snippets/csharp/System.Security.AccessControl/MutexAccessRule/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/MutexAccessRule/Overview/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/MutexAccessRule/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRuleAll/Project.csproj b/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRuleAll/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRuleAll/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRuleAll/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRuleSpecific/Project.csproj b/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRuleSpecific/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRuleSpecific/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/MutexSecurity/RemoveAccessRuleSpecific/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/MutexSecurity/ResetAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/MutexSecurity/ResetAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/MutexSecurity/ResetAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/MutexSecurity/ResetAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/MutexSecurity/SetAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/MutexSecurity/SetAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/MutexSecurity/SetAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/MutexSecurity/SetAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/RegistryAccessRule/.ctor/Project.csproj b/snippets/csharp/System.Security.AccessControl/RegistryAccessRule/.ctor/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.AccessControl/RegistryAccessRule/.ctor/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/RegistryAccessRule/.ctor/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.AccessControl/RegistryAccessRule/Overview/Project.csproj b/snippets/csharp/System.Security.AccessControl/RegistryAccessRule/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.AccessControl/RegistryAccessRule/Overview/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/RegistryAccessRule/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/Overview/Project.csproj b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/Overview/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/RemoveAccessRuleAll/Project.csproj b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/RemoveAccessRuleAll/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/RemoveAccessRuleAll/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/RemoveAccessRuleAll/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/RemoveAccessRuleSpecific/Project.csproj b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/RemoveAccessRuleSpecific/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/RemoveAccessRuleSpecific/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/RemoveAccessRuleSpecific/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/ResetAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/ResetAccessRule/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/ResetAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/ResetAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/SetAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/SetAccessRule/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.AccessControl/RegistrySecurity/SetAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/RegistrySecurity/SetAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.AccessControl/SemaphoreAccessRule/Overview/Project.csproj b/snippets/csharp/System.Security.AccessControl/SemaphoreAccessRule/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/SemaphoreAccessRule/Overview/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/SemaphoreAccessRule/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRuleAll/Project.csproj b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRuleAll/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRuleAll/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRuleAll/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRuleSpecific/Project.csproj b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRuleSpecific/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRuleSpecific/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/RemoveAccessRuleSpecific/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/ResetAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/ResetAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/ResetAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/ResetAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/SetAccessRule/Project.csproj b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/SetAccessRule/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/SetAccessRule/Project.csproj +++ b/snippets/csharp/System.Security.AccessControl/SemaphoreSecurity/SetAccessRule/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/OpenFlags/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/OpenFlags/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/OpenFlags/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/OpenFlags/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Key/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Key/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Key/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Key/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/PublicKey/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/StoreName/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/StoreName/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/StoreName/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/StoreName/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X500DistinguishedName/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X500DistinguishedName/Overview/Project.csproj index 114ff238e65..1ef035f3a0b 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X500DistinguishedName/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X500DistinguishedName/Overview/Project.csproj @@ -2,7 +2,7 @@ Exe - net8.0-windows + net10.0-windows diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509BasicConstraintsExtension/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509BasicConstraintsExtension/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509BasicConstraintsExtension/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509BasicConstraintsExtension/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/.ctor/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/.ctor/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/.ctor/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/.ctor/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/CreateFromCertFile/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/CreateFromCertFile/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/CreateFromCertFile/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/CreateFromCertFile/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/Equals/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/Equals/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/Equals/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/Equals/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetCertHash/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetCertHash/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetCertHash/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetCertHash/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetCertHashString/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetCertHashString/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetCertHashString/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetCertHashString/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetEffectiveDateString/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetEffectiveDateString/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetEffectiveDateString/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetEffectiveDateString/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetExpirationDateString/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetExpirationDateString/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetExpirationDateString/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetExpirationDateString/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetFormat/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetFormat/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetFormat/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetFormat/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetHashCode/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetHashCode/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetHashCode/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetHashCode/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithm/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithm/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithm/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithm/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithmParameters/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithmParameters/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithmParameters/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithmParameters/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithmParametersString/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithmParametersString/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithmParametersString/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetKeyAlgorithmParametersString/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetPublicKey/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetPublicKey/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetPublicKey/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetPublicKey/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetPublicKeyString/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetPublicKeyString/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetPublicKeyString/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetPublicKeyString/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetRawCertData/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetRawCertData/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetRawCertData/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetRawCertData/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetRawCertDataString/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetRawCertDataString/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetRawCertDataString/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetRawCertDataString/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetSerialNumber/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetSerialNumber/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetSerialNumber/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetSerialNumber/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetSerialNumberString/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetSerialNumberString/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetSerialNumberString/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/GetSerialNumberString/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Certificate/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Chain/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Chain/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Chain/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.X509Certificates/X509Chain/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/CipherData/.ctor/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/CipherData/.ctor/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/CipherData/.ctor/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/CipherData/.ctor/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/CipherData/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/CipherData/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/CipherData/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/CipherData/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/CipherReference/GetXml/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/CipherReference/GetXml/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/CipherReference/GetXml/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/CipherReference/GetXml/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/DSAKeyValue/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/DSAKeyValue/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/DSAKeyValue/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/DSAKeyValue/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/DataObject/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/DataObject/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/DataObject/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/DataObject/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/DataReference/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/DataReference/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/DataReference/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/DataReference/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedData/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedData/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedData/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedData/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedKey/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedKey/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedKey/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedKey/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedType/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedType/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedType/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedType/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedXml/AddKeyNameMapping/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedXml/AddKeyNameMapping/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedXml/AddKeyNameMapping/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedXml/AddKeyNameMapping/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedXml/DecryptDocument/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedXml/DecryptDocument/Project.csproj index 1d49af111b4..87ef5ac09d4 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/EncryptedXml/DecryptDocument/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/EncryptedXml/DecryptDocument/Project.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net10.0 diff --git a/snippets/csharp/System.Security.Cryptography.Xml/EncryptionProperty/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/EncryptionProperty/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/EncryptionProperty/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/EncryptionProperty/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/IRelDecryptor/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/IRelDecryptor/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/IRelDecryptor/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/IRelDecryptor/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/KeyInfo/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/KeyInfo/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/KeyInfo/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/KeyInfo/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/KeyInfoX509Data/.ctor/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/KeyInfoX509Data/.ctor/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/KeyInfoX509Data/.ctor/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/KeyInfoX509Data/.ctor/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/KeyInfoX509Data/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/KeyInfoX509Data/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/KeyInfoX509Data/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/KeyInfoX509Data/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/KeyReference/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/KeyReference/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/KeyReference/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/KeyReference/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/Reference/.ctor/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/Reference/.ctor/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/Reference/.ctor/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/Reference/.ctor/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/Signature/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/Signature/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/Signature/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/Signature/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/AddObject/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/AddObject/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/AddObject/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/AddObject/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/CheckSignatureReturningKey/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/CheckSignatureReturningKey/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/CheckSignatureReturningKey/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/CheckSignatureReturningKey/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigBase64TransformUrl/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigBase64TransformUrl/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigBase64TransformUrl/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigBase64TransformUrl/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigC14NTransformUrl/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigC14NTransformUrl/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigC14NTransformUrl/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigC14NTransformUrl/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigEnvelopedSignatureTransformUrl/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigEnvelopedSignatureTransformUrl/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigEnvelopedSignatureTransformUrl/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigEnvelopedSignatureTransformUrl/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigExcC14NTransformUrl/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigExcC14NTransformUrl/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigExcC14NTransformUrl/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigExcC14NTransformUrl/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigExcC14NWithCommentsTransformUrl/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigExcC14NWithCommentsTransformUrl/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigExcC14NWithCommentsTransformUrl/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigExcC14NWithCommentsTransformUrl/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigXPathTransformUrl/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigXPathTransformUrl/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigXPathTransformUrl/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigXPathTransformUrl/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigXsltTransformUrl/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigXsltTransformUrl/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigXsltTransformUrl/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/SignedXml/XmlDsigXsltTransformUrl/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigC14NWithCommentsTransform/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigC14NWithCommentsTransform/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigC14NWithCommentsTransform/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigC14NWithCommentsTransform/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigXPathTransform/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigXPathTransform/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigXPathTransform/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigXPathTransform/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigXsltTransform/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigXsltTransform/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigXsltTransform/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography.Xml/XmlDsigXsltTransform/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography/Aes/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/Aes/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/Aes/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/Aes/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/AesCryptoServiceProvider/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/AesCryptoServiceProvider/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/AesCryptoServiceProvider/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/AesCryptoServiceProvider/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/AesManaged/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/AesManaged/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/AesManaged/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/AesManaged/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/AsnEncodedData/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/AsnEncodedData/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography/AsnEncodedData/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/AsnEncodedData/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter/Overview/Project.csproj index 29255f5f4b1..c8263ab3adb 100644 --- a/snippets/csharp/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/AsymmetricKeyExchangeDeformatter/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 diff --git a/snippets/csharp/System.Security.Cryptography/CryptoConfig/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/CryptoConfig/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/CryptoConfig/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/CryptoConfig/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/CryptoStream/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/CryptoStream/Overview/Project.csproj index 24f58ecd991..ffb97e9872d 100644 --- a/snippets/csharp/System.Security.Cryptography/CryptoStream/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/CryptoStream/Overview/Project.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/CryptographicException/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/CryptographicException/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/CryptographicException/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/CryptographicException/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/CryptographicUnexpectedOperationException/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/CryptographicUnexpectedOperationException/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/CryptographicUnexpectedOperationException/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/CryptographicUnexpectedOperationException/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/CspKeyContainerInfo/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/CspKeyContainerInfo/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/CspKeyContainerInfo/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/CspKeyContainerInfo/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/CspParameters/KeyNumber/Project.csproj b/snippets/csharp/System.Security.Cryptography/CspParameters/KeyNumber/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/CspParameters/KeyNumber/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/CspParameters/KeyNumber/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/CspParameters/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/CspParameters/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/CspParameters/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/CspParameters/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/DES/Create/project.csproj b/snippets/csharp/System.Security.Cryptography/DES/Create/project.csproj index 9ab42fef7a0..dfdef3fd2a7 100644 --- a/snippets/csharp/System.Security.Cryptography/DES/Create/project.csproj +++ b/snippets/csharp/System.Security.Cryptography/DES/Create/project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 diff --git a/snippets/csharp/System.Security.Cryptography/DESCryptoServiceProvider/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/DESCryptoServiceProvider/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography/DESCryptoServiceProvider/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/DESCryptoServiceProvider/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography/DSASignatureDeformatter/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/DSASignatureDeformatter/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/DSASignatureDeformatter/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/DSASignatureDeformatter/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/DSASignatureFormatter/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/DSASignatureFormatter/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/DSASignatureFormatter/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/DSASignatureFormatter/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/DataProtectionScope/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/DataProtectionScope/Overview/Project.csproj index a11815b79fb..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography/DataProtectionScope/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/DataProtectionScope/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography/ECDiffieHellmanCng/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/ECDiffieHellmanCng/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/ECDiffieHellmanCng/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/ECDiffieHellmanCng/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/ECDsaCng/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/ECDsaCng/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/ECDsaCng/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/ECDsaCng/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/FromBase64Transform/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/FromBase64Transform/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/FromBase64Transform/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/FromBase64Transform/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/HMACSHA256/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/HMACSHA256/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/HMACSHA256/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/HMACSHA256/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/HMACSHA384/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/HMACSHA384/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/HMACSHA384/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/HMACSHA384/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/HMACSHA512/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/HMACSHA512/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/HMACSHA512/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/HMACSHA512/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/HashAlgorithm/ComputeHash/Project.csproj b/snippets/csharp/System.Security.Cryptography/HashAlgorithm/ComputeHash/Project.csproj index 5080ad5bdb8..39e57712b67 100644 --- a/snippets/csharp/System.Security.Cryptography/HashAlgorithm/ComputeHash/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/HashAlgorithm/ComputeHash/Project.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net10.0 Program diff --git a/snippets/csharp/System.Security.Cryptography/HashAlgorithm/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/HashAlgorithm/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography/HashAlgorithm/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/HashAlgorithm/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography/HashAlgorithm/TransformBlock/Project.csproj b/snippets/csharp/System.Security.Cryptography/HashAlgorithm/TransformBlock/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/HashAlgorithm/TransformBlock/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/HashAlgorithm/TransformBlock/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/KeySizes/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/KeySizes/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/KeySizes/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/KeySizes/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/KeyedHashAlgorithm/Key/Project.csproj b/snippets/csharp/System.Security.Cryptography/KeyedHashAlgorithm/Key/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/KeyedHashAlgorithm/Key/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/KeyedHashAlgorithm/Key/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/KeyedHashAlgorithm/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/KeyedHashAlgorithm/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/KeyedHashAlgorithm/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/KeyedHashAlgorithm/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/MaskGenerationMethod/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/MaskGenerationMethod/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/MaskGenerationMethod/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/MaskGenerationMethod/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/Oid/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/Oid/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/Oid/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/Oid/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/PasswordDeriveBytes/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/PasswordDeriveBytes/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/PasswordDeriveBytes/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/PasswordDeriveBytes/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RC2/Create/project.csproj b/snippets/csharp/System.Security.Cryptography/RC2/Create/project.csproj index 9ab42fef7a0..dfdef3fd2a7 100644 --- a/snippets/csharp/System.Security.Cryptography/RC2/Create/project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RC2/Create/project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 diff --git a/snippets/csharp/System.Security.Cryptography/RC2CryptoServiceProvider/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/RC2CryptoServiceProvider/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RC2CryptoServiceProvider/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RC2CryptoServiceProvider/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RC2CryptoServiceProvider/UseSalt/Project.csproj b/snippets/csharp/System.Security.Cryptography/RC2CryptoServiceProvider/UseSalt/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RC2CryptoServiceProvider/UseSalt/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RC2CryptoServiceProvider/UseSalt/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RNGCryptoServiceProvider/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/RNGCryptoServiceProvider/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RNGCryptoServiceProvider/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RNGCryptoServiceProvider/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/Decrypt/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/Decrypt/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/Decrypt/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/Decrypt/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/Encrypt/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/Encrypt/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/Encrypt/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/Encrypt/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/ImportParameters/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/ImportParameters/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/ImportParameters/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/ImportParameters/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/PersistKeyInCsp/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/PersistKeyInCsp/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/PersistKeyInCsp/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/PersistKeyInCsp/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/SignHash/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/SignHash/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/SignHash/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/SignHash/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/UseMachineKeyStore/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/UseMachineKeyStore/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/UseMachineKeyStore/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSACryptoServiceProvider/UseMachineKeyStore/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter/Parameters/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter/Parameters/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter/Parameters/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeDeformatter/Parameters/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeFormatter/CreateKeyExchange/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeFormatter/CreateKeyExchange/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeFormatter/CreateKeyExchange/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSAOAEPKeyExchangeFormatter/CreateKeyExchange/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSAPKCS1SignatureDeformatter/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSAPKCS1SignatureDeformatter/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSAPKCS1SignatureDeformatter/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSAPKCS1SignatureDeformatter/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RSAPKCS1SignatureFormatter/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/RSAPKCS1SignatureFormatter/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RSAPKCS1SignatureFormatter/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RSAPKCS1SignatureFormatter/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RandomNumberGenerator/GetBytes/Project.csproj b/snippets/csharp/System.Security.Cryptography/RandomNumberGenerator/GetBytes/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography/RandomNumberGenerator/GetBytes/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RandomNumberGenerator/GetBytes/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography/RandomNumberGenerator/GetNonZeroBytes/Project.csproj b/snippets/csharp/System.Security.Cryptography/RandomNumberGenerator/GetNonZeroBytes/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Cryptography/RandomNumberGenerator/GetNonZeroBytes/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RandomNumberGenerator/GetNonZeroBytes/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Cryptography/Rfc2898DeriveBytes/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/Rfc2898DeriveBytes/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/Rfc2898DeriveBytes/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/Rfc2898DeriveBytes/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/RijndaelManaged/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/RijndaelManaged/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/RijndaelManaged/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/RijndaelManaged/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/SHA384/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/SHA384/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/SHA384/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/SHA384/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/SHA512/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/SHA512/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/SHA512/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/SHA512/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/CreateEncryptor/Project.csproj b/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/CreateEncryptor/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/CreateEncryptor/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/CreateEncryptor/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/LegalBlockSizes/Project.csproj b/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/LegalBlockSizes/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/LegalBlockSizes/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/LegalBlockSizes/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/SymmetricAlgorithm/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/ToBase64Transform/Overview/Project.csproj b/snippets/csharp/System.Security.Cryptography/ToBase64Transform/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Cryptography/ToBase64Transform/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Cryptography/ToBase64Transform/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Cryptography/TripleDES/Create/project.csproj b/snippets/csharp/System.Security.Cryptography/TripleDES/Create/project.csproj index 9ab42fef7a0..dfdef3fd2a7 100644 --- a/snippets/csharp/System.Security.Cryptography/TripleDES/Create/project.csproj +++ b/snippets/csharp/System.Security.Cryptography/TripleDES/Create/project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 diff --git a/snippets/csharp/System.Security.Policy/CodeConnectAccess/Overview/Project.csproj b/snippets/csharp/System.Security.Policy/CodeConnectAccess/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Policy/CodeConnectAccess/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Policy/CodeConnectAccess/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Policy/GacInstalled/Equals/Project.csproj b/snippets/csharp/System.Security.Policy/GacInstalled/Equals/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Policy/GacInstalled/Equals/Project.csproj +++ b/snippets/csharp/System.Security.Policy/GacInstalled/Equals/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Policy/Hash/SHA1/Project.csproj b/snippets/csharp/System.Security.Policy/Hash/SHA1/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Policy/Hash/SHA1/Project.csproj +++ b/snippets/csharp/System.Security.Policy/Hash/SHA1/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Principal/GenericIdentity/Overview/Project.csproj b/snippets/csharp/System.Security.Principal/GenericIdentity/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Principal/GenericIdentity/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Principal/GenericIdentity/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Principal/GenericPrincipal/Overview/Project.csproj b/snippets/csharp/System.Security.Principal/GenericPrincipal/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Principal/GenericPrincipal/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Principal/GenericPrincipal/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Principal/WindowsAccountType/Overview/Project.csproj b/snippets/csharp/System.Security.Principal/WindowsAccountType/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Principal/WindowsAccountType/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Principal/WindowsAccountType/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Principal/WindowsBuiltInRole/Overview/Project.csproj b/snippets/csharp/System.Security.Principal/WindowsBuiltInRole/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security.Principal/WindowsBuiltInRole/Overview/Project.csproj +++ b/snippets/csharp/System.Security.Principal/WindowsBuiltInRole/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security.Principal/WindowsPrincipal/.ctor/Project.csproj b/snippets/csharp/System.Security.Principal/WindowsPrincipal/.ctor/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Principal/WindowsPrincipal/.ctor/Project.csproj +++ b/snippets/csharp/System.Security.Principal/WindowsPrincipal/.ctor/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.Principal/WindowsPrincipal/Identity/Project.csproj b/snippets/csharp/System.Security.Principal/WindowsPrincipal/Identity/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security.Principal/WindowsPrincipal/Identity/Project.csproj +++ b/snippets/csharp/System.Security.Principal/WindowsPrincipal/Identity/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security.RightsManagement/CryptoProvider/BlockSize/RmContentPublish.csproj b/snippets/csharp/System.Security.RightsManagement/CryptoProvider/BlockSize/RmContentPublish.csproj index 7f1404bd378..b12ce1b3f1a 100644 --- a/snippets/csharp/System.Security.RightsManagement/CryptoProvider/BlockSize/RmContentPublish.csproj +++ b/snippets/csharp/System.Security.RightsManagement/CryptoProvider/BlockSize/RmContentPublish.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.RightsManagement/CryptoProvider/BoundGrants/RmContentViewer.csproj b/snippets/csharp/System.Security.RightsManagement/CryptoProvider/BoundGrants/RmContentViewer.csproj index 7f1404bd378..b12ce1b3f1a 100644 --- a/snippets/csharp/System.Security.RightsManagement/CryptoProvider/BoundGrants/RmContentViewer.csproj +++ b/snippets/csharp/System.Security.RightsManagement/CryptoProvider/BoundGrants/RmContentViewer.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security.RightsManagement/UnsignedPublishLicense/.ctor/UnsignedPubLicense.csproj b/snippets/csharp/System.Security.RightsManagement/UnsignedPublishLicense/.ctor/UnsignedPubLicense.csproj index 7f1404bd378..b12ce1b3f1a 100644 --- a/snippets/csharp/System.Security.RightsManagement/UnsignedPublishLicense/.ctor/UnsignedPubLicense.csproj +++ b/snippets/csharp/System.Security.RightsManagement/UnsignedPublishLicense/.ctor/UnsignedPubLicense.csproj @@ -2,7 +2,7 @@ WinExe - net6.0-windows + net10.0-windows true diff --git a/snippets/csharp/System.Security/HostSecurityManager/Overview/Project.csproj b/snippets/csharp/System.Security/HostSecurityManager/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security/HostSecurityManager/Overview/Project.csproj +++ b/snippets/csharp/System.Security/HostSecurityManager/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security/IPermission/Overview/Project.csproj b/snippets/csharp/System.Security/IPermission/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security/IPermission/Overview/Project.csproj +++ b/snippets/csharp/System.Security/IPermission/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security/SecureString/AppendChar/Project.csproj b/snippets/csharp/System.Security/SecureString/AppendChar/Project.csproj index 0735dba1f6d..330f567f133 100644 --- a/snippets/csharp/System.Security/SecureString/AppendChar/Project.csproj +++ b/snippets/csharp/System.Security/SecureString/AppendChar/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 diff --git a/snippets/csharp/System.Security/SecurityElement/Overview/Project.csproj b/snippets/csharp/System.Security/SecurityElement/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security/SecurityElement/Overview/Project.csproj +++ b/snippets/csharp/System.Security/SecurityElement/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security/SecurityElement/SearchForTextOfTag/Project.csproj b/snippets/csharp/System.Security/SecurityElement/SearchForTextOfTag/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/csharp/System.Security/SecurityElement/SearchForTextOfTag/Project.csproj +++ b/snippets/csharp/System.Security/SecurityElement/SearchForTextOfTag/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/csharp/System.Security/SecurityException/.ctor/Project.csproj b/snippets/csharp/System.Security/SecurityException/.ctor/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security/SecurityException/.ctor/Project.csproj +++ b/snippets/csharp/System.Security/SecurityException/.ctor/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true diff --git a/snippets/csharp/System.Security/SecurityException/Overview/Project.csproj b/snippets/csharp/System.Security/SecurityException/Overview/Project.csproj index a62a59dbaa3..b62ae7deede 100644 --- a/snippets/csharp/System.Security/SecurityException/Overview/Project.csproj +++ b/snippets/csharp/System.Security/SecurityException/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net472 + net10.0-windows true From afa1e1f8d87a80553848ed750844134edb8a0592 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 24 Jun 2026 18:18:28 -0700 Subject: [PATCH 2/3] fix compile errors --- .../CPP/form1.cpp | 243 ------------------ .../FileSystemAuditRule/Overview/sample.cs | 12 +- .../Overview/windowsidentitymembers.cs | 31 +-- .../Overview/Project.csproj | 9 - .../Overview/customsecuritymanager.cs | 115 --------- .../SecurityException/.ctor/Project.csproj | 9 - .../SecurityException/.ctor/form1.cs | 199 -------------- .../PublicKey/Overview/Project.csproj | 2 +- .../Overview/Project.vbproj | 2 +- .../CryptoStream/Overview/project.vbproj | 2 +- .../DES/Create/project.csproj | 2 +- .../RC2/Create/project.csproj | 2 +- .../SHA384/Overview/vb.vbproj | 2 +- .../SHA512/Overview/vb.vbproj | 2 +- .../TripleDES/Overview/project.vbproj | 2 +- .../Overview/customsecuritymanager.vb | 113 -------- .../SecureString/AppendChar/Project.vbproj | 2 +- .../SecurityException/.ctor/form1.vb | 179 ------------- xml/System.Security/HostSecurityManager.xml | 34 --- xml/System.Security/SecurityException.xml | 18 -- 20 files changed, 31 insertions(+), 949 deletions(-) delete mode 100644 snippets/cpp/VS_Snippets_CLR_System/system.Security.SecurityException/CPP/form1.cpp delete mode 100644 snippets/csharp/System.Security/HostSecurityManager/Overview/Project.csproj delete mode 100644 snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs delete mode 100644 snippets/csharp/System.Security/SecurityException/.ctor/Project.csproj delete mode 100644 snippets/csharp/System.Security/SecurityException/.ctor/form1.cs delete mode 100644 snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb delete mode 100644 snippets/visualbasic/System.Security/SecurityException/.ctor/form1.vb diff --git a/snippets/cpp/VS_Snippets_CLR_System/system.Security.SecurityException/CPP/form1.cpp b/snippets/cpp/VS_Snippets_CLR_System/system.Security.SecurityException/CPP/form1.cpp deleted file mode 100644 index 41c475aa884..00000000000 --- a/snippets/cpp/VS_Snippets_CLR_System/system.Security.SecurityException/CPP/form1.cpp +++ /dev/null @@ -1,243 +0,0 @@ - -#using "System.Data.dll" - -// -using namespace System; -using namespace System::Data; -using namespace System::Security; -using namespace System::Security::Permissions; -using namespace System::Security::Policy; -using namespace System::Reflection; -using namespace System::Runtime::Serialization; - -namespace SecurityExceptionSample -{ - [assembly:KeyContainerPermissionAttribute( - SecurityAction::RequestRefuse, - Flags=KeyContainerPermissionFlags::Import)]; - ref class TestSecurityException - { - public: - void MakeTest() - { - try - { - // Deny a permission. - KeyContainerPermission^ keyContainerDecryptPermission = - gcnew KeyContainerPermission( - KeyContainerPermissionFlags::Decrypt); - keyContainerDecryptPermission->Deny(); - - // Demand the denied permission and display - // the exception properties. - Display("Demanding a denied permission. \n\n"); - DemandDeniedPermission(); - Display("*******************************************" - "**************\n"); - CodeAccessPermission::RevertDeny(); - - // Demand the permission refused - // in the assembly-level attribute. - Display("Demanding a refused permission. \n\n"); - DemandRefusedPermission(); - Display("*******************************************" - "**************\n"); - - // Demand the permission implicitly refused through a - // PermitOnly attribute. Permit only the permission that - // will cause the failure and the security permissions - // necessary to display the results of the failure. - PermissionSet^ permitOnlySet = gcnew PermissionSet( - PermissionState::None); - permitOnlySet->AddPermission(gcnew KeyContainerPermission( - KeyContainerPermissionFlags::Import)); - permitOnlySet->AddPermission(gcnew SecurityPermission( - SecurityPermissionFlag::ControlEvidence | - SecurityPermissionFlag::ControlPolicy | - SecurityPermissionFlag::SerializationFormatter)); - permitOnlySet->PermitOnly(); - Display("Demanding an implicitly refused permission. \n\n"); - DemandPermitOnly(); - } - catch (SecurityException^ exception) - { - Display("*******************************************" - "**************\n"); - - // - Display("Displaying an exception using the ToString " - "method: "); - Display(exception->ToString()); - // - } - - } - - private: - void DemandDeniedPermission() - { - try - { - KeyContainerPermission^ keyContainerDecryptPermission = - gcnew KeyContainerPermission( - KeyContainerPermissionFlags::Decrypt); - keyContainerDecryptPermission->Demand(); - } - catch (SecurityException^ exception) - { - // - Display("The denied permission is: {0}", - exception->DenySetInstance); - // - - // - Display("The demanded permission is: {0}", - exception->Demanded); - // - - // - Display("The security action is: {0}", - exception->Action); - // - - // - Display("The method is: {0}", exception->Method); - // - - // - Display("The permission state at the time " - "of the exception was: {0}", - exception->PermissionState); - // - - // - Display("The permission that failed was: {0}", - exception->FirstPermissionThatFailed); - // - - // - Display("The permission type is: {0}", - exception->PermissionType); - // - - // - Display("Demonstrating the use of the GetObjectData " - "method."); - SerializationInfo^ entryPointSerializatonInfo = - gcnew SerializationInfo(TestSecurityException::typeid, - gcnew FormatterConverter); - exception->GetObjectData(entryPointSerializatonInfo, - *gcnew StreamingContext(StreamingContextStates::All)); - Display("The FirstPermissionThatFailed from the call" - " to GetObjectData is: "); - Display(entryPointSerializatonInfo->GetString( - "FirstPermissionThatFailed")); - // - } - } - - void DemandRefusedPermission() - { - try - { - KeyContainerPermission^ keyContainerImportPermission = - gcnew KeyContainerPermission( - KeyContainerPermissionFlags::Import); - keyContainerImportPermission->Demand(); - } - catch (SecurityException^ exception) - { - // - Display("The refused permission set is: {0}", - exception->RefusedSet); - // - - // - Display("The exception message is: {0}", - exception->Message); - // - - // - Display("The failed assembly is: {0}", - exception->FailedAssemblyInfo->EscapedCodeBase); - // - - // - Display("The granted set is: \n{0}", - exception->GrantedSet); - // - - Display("The permission that failed is: {0}", - exception->FirstPermissionThatFailed); - Display("The permission type is: {0}", - exception->PermissionType); - - // - Display("The source is: {0}", exception->Source); - // - } - } - - void DemandPermitOnly() - { - try - { - KeyContainerPermission^ keyContainerDecryptPermission = - gcnew KeyContainerPermission( - KeyContainerPermissionFlags::Decrypt); - keyContainerDecryptPermission->Demand(); - } - catch (SecurityException^ exception) - { - // - Display("The permitted permission is: {0}", - exception->PermitOnlySetInstance); - // - Display("The demanded permission is: {0}", - exception->Demanded); - Display("The security action is: {0}", - exception->Action); - Display("The method is: {0}", exception->Method); - Display("The permission state at the time of the " - "exception was: {0}", exception->PermissionState); - Display("The permission that failed was: {0}", - exception->FirstPermissionThatFailed); - Display("The permission type is: {0}", - exception->PermissionType); - - // - // Demonstrate the SecurityException constructor - // by throwing the exception again. - Display("Rethrowing the exception thrown as a " - "result of a PermitOnly security action."); - throw gcnew SecurityException(exception->Message, - exception->DenySetInstance, - exception->PermitOnlySetInstance, - exception->Method, exception->Demanded, - exception->FirstPermissionThatFailed); - // - } - } - - void Display(String^ line) - { - Console::WriteLine(line); - } - - void Display(String^ format, Object^ arg) - { - Console::WriteLine(format, arg); - } - }; -} - -using namespace SecurityExceptionSample; - -int main() -{ - TestSecurityException^ test = gcnew TestSecurityException; - test->MakeTest(); - Console::WriteLine("Press the enter key to exit."); - Console::Read(); -} -// diff --git a/snippets/csharp/System.Security.AccessControl/FileSystemAuditRule/Overview/sample.cs b/snippets/csharp/System.Security.AccessControl/FileSystemAuditRule/Overview/sample.cs index a787f2b8ea8..9219a52fec4 100644 --- a/snippets/csharp/System.Security.AccessControl/FileSystemAuditRule/Overview/sample.cs +++ b/snippets/csharp/System.Security.AccessControl/FileSystemAuditRule/Overview/sample.cs @@ -41,9 +41,11 @@ public static void Main() public static void AddFileAuditRule(string FileName, string Account, FileSystemRights Rights, AuditFlags AuditRule) { + FileInfo fInfo = new FileInfo(FileName); + // Get a FileSecurity object that represents the // current security settings. - FileSecurity fSecurity = File.GetAccessControl(FileName); + FileSecurity fSecurity = fInfo.GetAccessControl(); // Add the FileSystemAuditRule to the security settings. fSecurity.AddAuditRule(new FileSystemAuditRule(Account, @@ -51,16 +53,18 @@ public static void AddFileAuditRule(string FileName, string Account, FileSystemR AuditRule)); // Set the new access settings. - File.SetAccessControl(FileName, fSecurity); + fInfo.SetAccessControl(fSecurity); } // Removes an ACL entry on the specified file for the specified account. public static void RemoveFileAuditRule(string FileName, string Account, FileSystemRights Rights, AuditFlags AuditRule) { + FileInfo fInfo = new FileInfo(FileName); + // Get a FileSecurity object that represents the // current security settings. - FileSecurity fSecurity = File.GetAccessControl(FileName); + FileSecurity fSecurity = fInfo.GetAccessControl(); // Add the FileSystemAuditRule to the security settings. fSecurity.RemoveAuditRule(new FileSystemAuditRule(Account, @@ -68,7 +72,7 @@ public static void RemoveFileAuditRule(string FileName, string Account, FileSyst AuditRule)); // Set the new access settings. - File.SetAccessControl(FileName, fSecurity); + fInfo.SetAccessControl(fSecurity); } } } diff --git a/snippets/csharp/System.Security.Principal/WindowsAccountType/Overview/windowsidentitymembers.cs b/snippets/csharp/System.Security.Principal/WindowsAccountType/Overview/windowsidentitymembers.cs index 2c9ad32e1cc..02af86d4e8d 100644 --- a/snippets/csharp/System.Security.Principal/WindowsAccountType/Overview/windowsidentitymembers.cs +++ b/snippets/csharp/System.Security.Principal/WindowsAccountType/Overview/windowsidentitymembers.cs @@ -3,6 +3,7 @@ // using System; using System.Security.Principal; +using Microsoft.Win32.SafeHandles; class WindowsIdentityMembers { @@ -202,24 +203,20 @@ private static void GetAnonymousUser() // private static void ImpersonateIdentity(IntPtr logonToken) { - // Retrieve the Windows identity using the specified token. - WindowsIdentity windowsIdentity = new WindowsIdentity(logonToken); + // Create a SafeAccessTokenHandle from the specified token. + SafeAccessTokenHandle accessTokenHandle = new SafeAccessTokenHandle(logonToken); + + // Run the specified action while impersonating the Windows identity + // represented by the access token. + WindowsIdentity.RunImpersonated(accessTokenHandle, () => + { + Console.WriteLine("Name of the identity during impersonation: " + + WindowsIdentity.GetCurrent().Name + "."); + }); - // Create a WindowsImpersonationContext object by impersonating the - // Windows identity. - WindowsImpersonationContext impersonationContext = - windowsIdentity.Impersonate(); - - Console.WriteLine("Name of the identity after impersonation: " - + WindowsIdentity.GetCurrent().Name + "."); - Console.WriteLine(windowsIdentity.ImpersonationLevel); - // Stop impersonating the user. - impersonationContext.Undo(); - - // Check the identity name. - Console.Write("Name of the identity after performing an Undo on the"); - Console.WriteLine(" impersonation: " + - WindowsIdentity.GetCurrent().Name); + // Check the identity name after the impersonation ends. + Console.Write("Name of the identity after the impersonation ends: "); + Console.WriteLine(WindowsIdentity.GetCurrent().Name); } // } diff --git a/snippets/csharp/System.Security/HostSecurityManager/Overview/Project.csproj b/snippets/csharp/System.Security/HostSecurityManager/Overview/Project.csproj deleted file mode 100644 index b62ae7deede..00000000000 --- a/snippets/csharp/System.Security/HostSecurityManager/Overview/Project.csproj +++ /dev/null @@ -1,9 +0,0 @@ - - - - Library - net10.0-windows - true - - - diff --git a/snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs b/snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs deleted file mode 100644 index 4bf5a8f6198..00000000000 --- a/snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs +++ /dev/null @@ -1,115 +0,0 @@ -// -// To replace the default security manager with MySecurityManager, add the -// assembly to the GAC and call MySecurityManager in the -// custom implementation of the AppDomainManager. - -using System; -using System.Collections; -using System.Net; -using System.Reflection; -using System.Security; -using System.Security.Permissions; -using System.Security.Policy; -using System.Security.Principal; -using System.Threading; -using System.Runtime.InteropServices; -using System.Runtime.Hosting; - -[assembly: System.Security.AllowPartiallyTrustedCallersAttribute()] -namespace MyNamespace -{ - [Serializable()] - [SecurityPermissionAttribute(SecurityAction.Demand, Flags = SecurityPermissionFlag.Infrastructure)] - public class MySecurityManager : HostSecurityManager - { - public MySecurityManager() - { - Console.WriteLine(" Creating MySecurityManager."); - } - - // - private HostSecurityManagerOptions hostFlags = HostSecurityManagerOptions.HostDetermineApplicationTrust | - HostSecurityManagerOptions.HostAssemblyEvidence; - public override HostSecurityManagerOptions Flags - { - get - { - return hostFlags; - } - } - // - - // - public override Evidence ProvideAssemblyEvidence(Assembly loadedAssembly, Evidence evidence) - { - Console.WriteLine("Provide assembly evidence for: " + (loadedAssembly == null ? "Unknown" : loadedAssembly.ToString()) + "."); - if (evidence == null) - return null; - - evidence.AddAssemblyEvidence(new CustomEvidenceType()); - return evidence; - } - // - // - public override Evidence ProvideAppDomainEvidence(Evidence evidence) - { - Console.WriteLine("Provide evidence for the " + AppDomain.CurrentDomain.FriendlyName + " AppDomain."); - if (evidence == null) - return null; - - evidence.AddHostEvidence(new CustomEvidenceType()); - return evidence; - } - // - - // - [SecurityPermissionAttribute(SecurityAction.Demand, Execution = true)] - [SecurityPermissionAttribute(SecurityAction.Assert, Unrestricted = true)] - public override ApplicationTrust DetermineApplicationTrust(Evidence applicationEvidence, Evidence activatorEvidence, TrustManagerContext context) - { - if (applicationEvidence == null) - throw new ArgumentNullException("applicationEvidence"); - - // Get the activation context from the application evidence. - // This HostSecurityManager does not examine the activator evidence - // nor is it concerned with the TrustManagerContext; - // it simply grants the requested grant in the application manifest. - - IEnumerator enumerator = applicationEvidence.GetHostEnumerator(); - ActivationArguments activationArgs = null; - while (enumerator.MoveNext()) - { - activationArgs = enumerator.Current as ActivationArguments; - if (activationArgs != null) - break; - } - - if (activationArgs == null) - return null; - - ActivationContext activationContext = activationArgs.ActivationContext; - if (activationContext == null) - return null; - - // - ApplicationTrust trust = new ApplicationTrust(activationContext.Identity); - ApplicationSecurityInfo asi = new ApplicationSecurityInfo(activationContext); - trust.DefaultGrantSet = new PolicyStatement(asi.DefaultRequestSet, PolicyStatementAttribute.Nothing); - trust.IsApplicationTrustedToRun = true; - // - return trust; - } - // - } - [Serializable()] - public class CustomEvidenceType : EvidenceBase - { - public CustomEvidenceType() { } - - public override string ToString() - { - return "CustomEvidenceType"; - } - } -} -// diff --git a/snippets/csharp/System.Security/SecurityException/.ctor/Project.csproj b/snippets/csharp/System.Security/SecurityException/.ctor/Project.csproj deleted file mode 100644 index b62ae7deede..00000000000 --- a/snippets/csharp/System.Security/SecurityException/.ctor/Project.csproj +++ /dev/null @@ -1,9 +0,0 @@ - - - - Library - net10.0-windows - true - - - diff --git a/snippets/csharp/System.Security/SecurityException/.ctor/form1.cs b/snippets/csharp/System.Security/SecurityException/.ctor/form1.cs deleted file mode 100644 index b934a1b8eaf..00000000000 --- a/snippets/csharp/System.Security/SecurityException/.ctor/form1.cs +++ /dev/null @@ -1,199 +0,0 @@ -// -using System; -using System.Data; -using System.Security; -using System.Security.Permissions; -using System.Security.Policy; -using System.Reflection; -using System.Runtime.Serialization; - -[assembly: KeyContainerPermissionAttribute(SecurityAction.RequestRefuse, - Flags = KeyContainerPermissionFlags.Import)] -namespace TestForm -{ - class EntryPoint - { - [STAThread] - static void Main() - { - EntryPoint eP = new EntryPoint(); - eP.RunCode(); - Console.WriteLine("Press the ENTER key to exit."); - Console.Read(); - } - void RunCode() - { - try - { - // Deny a permission. - KeyContainerPermission kCP1 = new KeyContainerPermission( - KeyContainerPermissionFlags.Decrypt); - kCP1.Deny(); - - // Demand the denied permission and display the - // exception properties. - Display("Demanding a denied permission. \n\n"); - DemandDeniedPermission(); - Display("************************************************\n"); - CodeAccessPermission.RevertDeny(); - - // Demand the permission refused in the - // assembly-level attribute. - Display("Demanding a refused permission. \n\n"); - DemandRefusedPermission(); - Display("************************************************\n"); - - // Demand the permission implicitly refused through a - // PermitOnly attribute. Permit only the permission that - // will cause the failure and the security permissions - // necessary to display the results of the failure. - PermissionSet permitOnly = new PermissionSet( - PermissionState.None); - permitOnly.AddPermission(new KeyContainerPermission( - KeyContainerPermissionFlags.Import)); - permitOnly.AddPermission(new SecurityPermission( - SecurityPermissionFlag.ControlEvidence | - SecurityPermissionFlag.ControlPolicy | - SecurityPermissionFlag.SerializationFormatter)); - permitOnly.PermitOnly(); - Display("Demanding an implicitly refused permission. \n\n"); - DemandPermitOnly(); - } - catch (Exception sE) - { - Display("************************************************\n"); - // - Display("Displaying an exception using the ToString method: "); - Display(sE.ToString()); - // - } - } - - void DemandDeniedPermission() - { - try - { - KeyContainerPermission kCP = new KeyContainerPermission( - KeyContainerPermissionFlags.Decrypt); - kCP.Demand(); - } - catch (SecurityException sE) - { - // - Display("The denied permission is: " + - ((PermissionSet)sE.DenySetInstance).ToString()); - // - // - Display("The demanded permission is: " + - sE.Demanded.ToString()); - // - // - Display("The security action is: " + sE.Action.ToString()); - // - // - Display("The method is: " + sE.Method); - // - // - Display( - "The permission state at the time of the exception was: " + - sE.PermissionState); - // - // - Display("The permission that failed was: " + - (IPermission)sE.FirstPermissionThatFailed); - // - // - Display("The permission type is: " + - sE.PermissionType.ToString()); - // - // - Display("Demonstrating the use of the GetObjectData method."); - SerializationInfo si = new SerializationInfo( - typeof(EntryPoint), new FormatterConverter()); - sE.GetObjectData(si, - new StreamingContext(StreamingContextStates.All)); - Display("The FirstPermissionThatFailed from the " + - "call to GetObjectData is: "); - Display(si.GetString("FirstPermissionThatFailed")); - // - } - } - - void DemandRefusedPermission() - { - try - { - KeyContainerPermission kCP = new KeyContainerPermission( - KeyContainerPermissionFlags.Import); - kCP.Demand(); - } - catch (SecurityException sE) - { - // - Display("The refused permission set is: " + - (sE.RefusedSet).ToString()); - // - // - Display("The exception message is: " + sE.Message); - // - // - Display("The failed assembly is: " + - sE.FailedAssemblyInfo.EscapedCodeBase); - // - // - Display("The granted set is: \n" + sE.GrantedSet); - // - Display("The permission that failed is: " + - sE.FirstPermissionThatFailed); - Display("The permission type is: " + - sE.PermissionType.ToString()); - // - Display("The source is: " + sE.Source); - // - } - } - - void DemandPermitOnly() - { - try - { - KeyContainerPermission kCP = new KeyContainerPermission( - KeyContainerPermissionFlags.Decrypt); - kCP.Demand(); - } - catch (SecurityException sE) - { - // - Display("The permitted permission is: " + - ((PermissionSet)sE.PermitOnlySetInstance).ToString()); - // - Display("The demanded permission is: " + - sE.Demanded.ToString()); - Display("The security action is: " + sE.Action.ToString()); - Display("The method is: " + sE.Method.ToString()); - Display( - "The permission state at the time of the exception was: " + - sE.PermissionState); - Display("The permission that failed was: " + - (IPermission)sE.FirstPermissionThatFailed); - Display("The permission type is: " + - sE.PermissionType.ToString()); - - // - //Demonstrate the SecurityException constructor by - // throwing the exception again. - Display("Rethrowing the exception thrown as a result of a " + - "PermitOnly security action."); - throw new SecurityException(sE.Message, sE.DenySetInstance, - sE.PermitOnlySetInstance, sE.Method, sE.Demanded, - (IPermission)sE.FirstPermissionThatFailed); - // - } - } - void Display(string line) - { - Console.WriteLine(line); - } - } -} -// diff --git a/snippets/visualbasic/System.Security.Cryptography.X509Certificates/PublicKey/Overview/Project.csproj b/snippets/visualbasic/System.Security.Cryptography.X509Certificates/PublicKey/Overview/Project.csproj index c02dc5044e7..a369cfa8a80 100644 --- a/snippets/visualbasic/System.Security.Cryptography.X509Certificates/PublicKey/Overview/Project.csproj +++ b/snippets/visualbasic/System.Security.Cryptography.X509Certificates/PublicKey/Overview/Project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 \ No newline at end of file diff --git a/snippets/visualbasic/System.Security.Cryptography.X509Certificates/X500DistinguishedName/Overview/Project.vbproj b/snippets/visualbasic/System.Security.Cryptography.X509Certificates/X500DistinguishedName/Overview/Project.vbproj index 9a432250911..13e9f992a28 100644 --- a/snippets/visualbasic/System.Security.Cryptography.X509Certificates/X500DistinguishedName/Overview/Project.vbproj +++ b/snippets/visualbasic/System.Security.Cryptography.X509Certificates/X500DistinguishedName/Overview/Project.vbproj @@ -2,7 +2,7 @@ Exe - net8.0-windows + net10.0-windows diff --git a/snippets/visualbasic/System.Security.Cryptography/CryptoStream/Overview/project.vbproj b/snippets/visualbasic/System.Security.Cryptography/CryptoStream/Overview/project.vbproj index d50c0e10aeb..469d2086aa2 100644 --- a/snippets/visualbasic/System.Security.Cryptography/CryptoStream/Overview/project.vbproj +++ b/snippets/visualbasic/System.Security.Cryptography/CryptoStream/Overview/project.vbproj @@ -2,7 +2,7 @@ Exe - net8.0 + net10.0 \ No newline at end of file diff --git a/snippets/visualbasic/System.Security.Cryptography/DES/Create/project.csproj b/snippets/visualbasic/System.Security.Cryptography/DES/Create/project.csproj index 9ab42fef7a0..dfdef3fd2a7 100644 --- a/snippets/visualbasic/System.Security.Cryptography/DES/Create/project.csproj +++ b/snippets/visualbasic/System.Security.Cryptography/DES/Create/project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 diff --git a/snippets/visualbasic/System.Security.Cryptography/RC2/Create/project.csproj b/snippets/visualbasic/System.Security.Cryptography/RC2/Create/project.csproj index 9ab42fef7a0..dfdef3fd2a7 100644 --- a/snippets/visualbasic/System.Security.Cryptography/RC2/Create/project.csproj +++ b/snippets/visualbasic/System.Security.Cryptography/RC2/Create/project.csproj @@ -2,7 +2,7 @@ Library - net6.0 + net10.0 diff --git a/snippets/visualbasic/System.Security.Cryptography/SHA384/Overview/vb.vbproj b/snippets/visualbasic/System.Security.Cryptography/SHA384/Overview/vb.vbproj index 7c3e6284580..d39f580f5e1 100644 --- a/snippets/visualbasic/System.Security.Cryptography/SHA384/Overview/vb.vbproj +++ b/snippets/visualbasic/System.Security.Cryptography/SHA384/Overview/vb.vbproj @@ -3,7 +3,7 @@ Exe vb - net6.0 + net10.0 diff --git a/snippets/visualbasic/System.Security.Cryptography/SHA512/Overview/vb.vbproj b/snippets/visualbasic/System.Security.Cryptography/SHA512/Overview/vb.vbproj index 7c3e6284580..d39f580f5e1 100644 --- a/snippets/visualbasic/System.Security.Cryptography/SHA512/Overview/vb.vbproj +++ b/snippets/visualbasic/System.Security.Cryptography/SHA512/Overview/vb.vbproj @@ -3,7 +3,7 @@ Exe vb - net6.0 + net10.0 diff --git a/snippets/visualbasic/System.Security.Cryptography/TripleDES/Overview/project.vbproj b/snippets/visualbasic/System.Security.Cryptography/TripleDES/Overview/project.vbproj index fc3f09ab482..dfdef3fd2a7 100644 --- a/snippets/visualbasic/System.Security.Cryptography/TripleDES/Overview/project.vbproj +++ b/snippets/visualbasic/System.Security.Cryptography/TripleDES/Overview/project.vbproj @@ -2,7 +2,7 @@ Library - net9.0 + net10.0 diff --git a/snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb b/snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb deleted file mode 100644 index 7b9d2c02680..00000000000 --- a/snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb +++ /dev/null @@ -1,113 +0,0 @@ -' -' To replace the default security manager with MySecurityManager, add the -' assembly to the GAC and call MySecurityManager in the -' custom implementation of the AppDomainManager. -Imports System.Collections -Imports System.Net -Imports System.Reflection -Imports System.Security -Imports System.Security.Permissions -Imports System.Security.Policy -Imports System.Security.Principal -Imports System.Threading -Imports System.Runtime.InteropServices -Imports System.Runtime.Hosting - - - - - - _ -Public Class MySecurityManager - Inherits HostSecurityManager - - Public Sub New() - Console.WriteLine(" Creating MySecurityManager.") - - End Sub - - - ' - Private hostFlags As HostSecurityManagerOptions = HostSecurityManagerOptions.HostDetermineApplicationTrust Or HostSecurityManagerOptions.HostAssemblyEvidence - - Public Overrides ReadOnly Property Flags() As HostSecurityManagerOptions - Get - Return hostFlags - End Get - End Property - - ' - ' - Public Overrides Function ProvideAssemblyEvidence(ByVal loadedAssembly As [Assembly], ByVal evidence As Evidence) As Evidence - Console.WriteLine("Provide assembly evidence for: " + IIf(loadedAssembly Is Nothing, "Unknown", loadedAssembly.ToString()) + ".") 'TODO: For performance reasons this should be changed to nested IF statements - If evidence Is Nothing Then - Return Nothing - End If - evidence.AddAssemblyEvidence(New CustomEvidenceType()) - Return evidence - - End Function 'ProvideAssemblyEvidence - - ' - ' - Public Overrides Function ProvideAppDomainEvidence(ByVal evidence As Evidence) As Evidence - Console.WriteLine("Provide evidence for the " + AppDomain.CurrentDomain.FriendlyName + " AppDomain.") - If evidence Is Nothing Then - Return Nothing - End If - evidence.AddHostEvidence(New CustomEvidenceType()) - Return evidence - - End Function 'ProvideAppDomainEvidence - - ' - ' - _ - Public Overrides Function DetermineApplicationTrust(ByVal applicationEvidence As Evidence, ByVal activatorEvidence As Evidence, ByVal context As TrustManagerContext) As ApplicationTrust - If applicationEvidence Is Nothing Then - Throw New ArgumentNullException("applicationEvidence") - End If - ' Get the activation context from the application evidence. - ' This HostSecurityManager does not examine the activator evidence - ' nor is it concerned with the TrustManagerContext; - ' it simply grants the requested grant in the application manifest. - Dim enumerator As IEnumerator = applicationEvidence.GetHostEnumerator() - Dim activationArgs As ActivationArguments = Nothing - While enumerator.MoveNext() - activationArgs = enumerator.Current ' - If Not (activationArgs Is Nothing) Then - Exit While - End If - End While - If activationArgs Is Nothing Then - Return Nothing - End If - Dim activationContext As ActivationContext = activationArgs.ActivationContext - If activationContext Is Nothing Then - Return Nothing - End If - ' - Dim trust As New ApplicationTrust(activationContext.Identity) - Dim asi As New ApplicationSecurityInfo(activationContext) - trust.DefaultGrantSet = New PolicyStatement(asi.DefaultRequestSet, PolicyStatementAttribute.Nothing) - trust.IsApplicationTrustedToRun = True - ' - Return trust - - End Function 'DetermineApplicationTrust -End Class -' - _ -Public Class CustomEvidenceType - Inherits EvidenceBase - - Public Sub New() - - End Sub - - Public Overrides Function ToString() As String - Return "CustomEvidenceType" - - End Function 'ToString -End Class -' \ No newline at end of file diff --git a/snippets/visualbasic/System.Security/SecureString/AppendChar/Project.vbproj b/snippets/visualbasic/System.Security/SecureString/AppendChar/Project.vbproj index 92e46ddaccf..a15a29bf12c 100644 --- a/snippets/visualbasic/System.Security/SecureString/AppendChar/Project.vbproj +++ b/snippets/visualbasic/System.Security/SecureString/AppendChar/Project.vbproj @@ -2,7 +2,7 @@ Exe - net9.0 + net10.0 diff --git a/snippets/visualbasic/System.Security/SecurityException/.ctor/form1.vb b/snippets/visualbasic/System.Security/SecurityException/.ctor/form1.vb deleted file mode 100644 index 3e117442d65..00000000000 --- a/snippets/visualbasic/System.Security/SecurityException/.ctor/form1.vb +++ /dev/null @@ -1,179 +0,0 @@ -' -Imports System.Data -Imports System.Security -Imports System.Security.Permissions -Imports System.Security.Policy -Imports System.Reflection -Imports System.Runtime.Serialization - - - -Class EntryPoint - - _ - Shared Sub Main() - Dim eP As New EntryPoint() - eP.RunCode() - Console.WriteLine("Press the ENTER key to exit.") - Console.Read() - - End Sub - - Sub RunCode() - Try - ' Deny a permission. - Dim kCP1 As New KeyContainerPermission( _ - KeyContainerPermissionFlags.Decrypt) - kCP1.Deny() - - ' Demand the denied permission and display the - ' exception properties. - Display("Demanding a denied permission. " & vbLf & vbLf) - DemandDeniedPermission() - Display("************************************************" & vbLf) - CodeAccessPermission.RevertDeny() - - ' Demand the permission refused in the - ' assembly-level attribute. - Display("Demanding a refused permission. " & vbLf & vbLf) - DemandRefusedPermission() - Display("************************************************" & vbLf) - - ' Demand the permission implicitly refused through a - ' PermitOnly attribute. Permit only the permission that - ' will cause the failure and the security permissions - ' necessary to display the results of the failure. - Dim permitOnly As New PermissionSet(PermissionState.None) - permitOnly.AddPermission( _ - New KeyContainerPermission(KeyContainerPermissionFlags.Import)) - permitOnly.AddPermission(New SecurityPermission( _ - SecurityPermissionFlag.ControlEvidence Or _ - SecurityPermissionFlag.ControlPolicy Or _ - SecurityPermissionFlag.SerializationFormatter)) - permitOnly.PermitOnly() - Display( _ - "Demanding an implicitly refused permission. " & vbLf & vbLf) - DemandPermitOnly() - Catch sE As Exception - Display("************************************************" & vbLf) - ' - Display("Displaying an exception using the ToString method: ") - Display(sE.ToString()) - ' - End Try - End Sub - - Sub DemandDeniedPermission() - Try - Dim kCP As New KeyContainerPermission( _ - KeyContainerPermissionFlags.Decrypt) - kCP.Demand() - Catch sE As SecurityException - ' - Display("The denied permission is: " & _ - CType(sE.DenySetInstance, PermissionSet).ToString()) - ' - ' - Display("The demanded permission is: " & sE.Demanded.ToString()) - ' - ' - Display("The security action is: " & sE.Action.ToString()) - ' - ' - Display("The method is: " & sE.Method.ToString()) - ' - ' - Display( _ - "The permission state at the time of the exception was: " & _ - sE.PermissionState) - ' - ' - Display("The permission that failed was: " & _ - CType(sE.FirstPermissionThatFailed, _ - IPermission).ToXml().ToString()) - ' - ' - Display("The permission type is: " & sE.PermissionType.ToString()) - ' - ' - Display("Demonstrating the use of the GetObjectData method.") - Dim si As New SerializationInfo( _ - GetType(EntryPoint), New FormatterConverter()) - sE.GetObjectData(si, _ - New StreamingContext(StreamingContextStates.All)) - Display("The FirstPermissionThatFailed from the " & _ - "call to GetObjectData is: ") - Display(si.GetString("FirstPermissionThatFailed")) - End Try - ' - End Sub - - Sub DemandRefusedPermission() - Try - Dim kCP As New KeyContainerPermission( _ - KeyContainerPermissionFlags.Import) - kCP.Demand() - Catch sE As SecurityException - ' - Display("The refused permission set is: " & _ - sE.RefusedSet.ToString()) - ' - ' - Display("The exception message is: " & sE.Message) - ' - ' - Display("The failed assembly is: " & _ - sE.FailedAssemblyInfo.EscapedCodeBase) - ' - ' - Display("The granted set is: " & vbLf & sE.GrantedSet) - ' - Display("The permission that failed is: " & CType( _ - sE.FirstPermissionThatFailed, IPermission).ToXml().ToString()) - Display("The permission type is: " & sE.PermissionType.ToString()) - ' - Display("The source is: " & sE.Source) - End Try - ' - End Sub - - Sub DemandPermitOnly() - Try - Dim kCP As New KeyContainerPermission( _ - KeyContainerPermissionFlags.Decrypt) - kCP.Demand() - Catch sE As SecurityException - ' - Display("The permitted permission is: " & _ - CType(sE.PermitOnlySetInstance, PermissionSet).ToString()) - ' - Display("The demanded permission is: " & sE.Demanded.ToString()) - Display("The security action is: " & sE.Action.ToString()) - Display("The method is: " & sE.Method.ToString()) - Display("The permission state at the time of the exception was: " & _ - sE.PermissionState) - Display("The permission that failed was: " & CType( _ - sE.FirstPermissionThatFailed, IPermission).ToXml().ToString()) - Display("The permission type is: " & sE.PermissionType.ToString()) - - ' - ' Demonstrate the SecurityException constructor by - ' throwing the exception again. - Display("Rethrowing the exception thrown as a result of a " & _ - "PermitOnly security action.") - Throw New SecurityException(sE.Message, sE.DenySetInstance, _ - sE.PermitOnlySetInstance, sE.Method, sE.Demanded, _ - CType(sE.FirstPermissionThatFailed, IPermission)) - ' - End Try - - End Sub - - Sub Display(ByVal line As String) - - Console.WriteLine(line) - - End Sub -End Class -' diff --git a/xml/System.Security/HostSecurityManager.xml b/xml/System.Security/HostSecurityManager.xml index 009c80b3f7a..228307fce37 100644 --- a/xml/System.Security/HostSecurityManager.xml +++ b/xml/System.Security/HostSecurityManager.xml @@ -40,12 +40,6 @@ Host providers should implement a host security manager that inherits from the class. -## Examples - The following example shows a very simple implementation of a . - - :::code language="csharp" source="~/snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs" id="Snippet1"::: - :::code language="vb" source="~/snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb" id="Snippet1"::: - ]]> @@ -135,12 +129,6 @@ Host providers should implement a host security manager that inherits from the < The base implementation does not use the activator evidence. However, an overridden implementation could use the activator evidence to determine the security evidence. -## Examples - The following example shows how to override the method for a custom host security manager. This example is part of a larger example provided for the class. - - :::code language="csharp" source="~/snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs" id="Snippet3"::: - :::code language="vb" source="~/snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb" id="Snippet3"::: - ]]> @@ -245,14 +233,6 @@ Host providers should implement a host security manager that inherits from the < The derived host can change the value of this property when only a subset of the is of interest. The possible subsets include none, the refused set, the policy level, and assembly evidence. - - -## Examples - The following example shows how to override the property for a custom host security manager. This example is part of a larger example provided for the class. - - :::code language="csharp" source="~/snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs" id="Snippet2"::: - :::code language="vb" source="~/snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb" id="Snippet2"::: - ]]> @@ -307,12 +287,6 @@ Host providers should implement a host security manager that inherits from the < A return value of `null` indicates that the host cannot generate evidence of this specific type. -## Examples - The following example shows how to override the method for a custom host security manager. This example is part of a larger example provided for the class. - - :::code language="csharp" source="~/snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs" id="Snippet6"::: - :::code language="vb" source="~/snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb" id="Snippet6"::: - ]]> @@ -562,14 +536,6 @@ Host providers should implement a host security manager that inherits from the < > [!IMPORTANT] > See the Notes to Inheritors for the class for critical implementation information. - - -## Examples - The following example shows how to override the method for a custom host security manager. This example is part of a larger example provided for the class. - - :::code language="csharp" source="~/snippets/csharp/System.Security/HostSecurityManager/Overview/customsecuritymanager.cs" id="Snippet5"::: - :::code language="vb" source="~/snippets/visualbasic/System.Security/HostSecurityManager/Overview/customsecuritymanager.vb" id="Snippet5"::: - ]]> diff --git a/xml/System.Security/SecurityException.xml b/xml/System.Security/SecurityException.xml index 03db6bd30bd..43ef9b33120 100644 --- a/xml/System.Security/SecurityException.xml +++ b/xml/System.Security/SecurityException.xml @@ -512,15 +512,6 @@ ## Remarks In the case of a returned permission set or permission set collection, the returned object contains all the demanded permissions, one or more of which caused the failure. - - -## Examples - The following code example shows the use of the property to display the demanded security permission, permission set, or permission set collection that failed. This code example is part of a larger example provided for the class. - - :::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_System/system.Security.SecurityException/CPP/form1.cpp" id="Snippet3"::: - :::code language="csharp" source="~/snippets/csharp/System.Security/SecurityException/.ctor/form1.cs" id="Snippet3"::: - :::code language="vb" source="~/snippets/visualbasic/System.Security/SecurityException/.ctor/form1.vb" id="Snippet3"::: - ]]> @@ -622,15 +613,6 @@ > [!NOTE] > This property is not populated when a security exception occurs in a or stack frame, because the assembly issuing the or security action is not the assembly that failed the stack walk. In these cases, the security exception is created with a constructor that does not require an assembly name, granted set information, or refused set information. - - -## Examples - The following code example shows the use of the property to display the information about the failed assembly. - - :::code language="cpp" source="~/snippets/cpp/VS_Snippets_CLR_System/system.Security.SecurityException/CPP/form1.cpp" id="Snippet12"::: - :::code language="csharp" source="~/snippets/csharp/System.Security/SecurityException/.ctor/form1.cs" id="Snippet12"::: - :::code language="vb" source="~/snippets/visualbasic/System.Security/SecurityException/.ctor/form1.vb" id="Snippet12"::: - ]]> From 69d1cef55d0647185a93602d00c60c4d3532b37e Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Wed, 24 Jun 2026 18:47:07 -0700 Subject: [PATCH 3/3] fix compile errors --- .../SecureString/AppendChar/Program.vb | 5 + .../SecureString/AppendChar/xat.vb | 54 +++++------ .../SecureString/AppendChar/xchar.vb | 91 ++++++++++--------- 3 files changed, 78 insertions(+), 72 deletions(-) create mode 100644 snippets/visualbasic/System.Security/SecureString/AppendChar/Program.vb diff --git a/snippets/visualbasic/System.Security/SecureString/AppendChar/Program.vb b/snippets/visualbasic/System.Security/SecureString/AppendChar/Program.vb new file mode 100644 index 00000000000..cad3619313f --- /dev/null +++ b/snippets/visualbasic/System.Security/SecureString/AppendChar/Program.vb @@ -0,0 +1,5 @@ +Public Class Program + Shared Sub Main() + Example.Run() + End Sub +End Class diff --git a/snippets/visualbasic/System.Security/SecureString/AppendChar/xat.vb b/snippets/visualbasic/System.Security/SecureString/AppendChar/xat.vb index e113b806c74..0a0075a1e2e 100644 --- a/snippets/visualbasic/System.Security/SecureString/AppendChar/xat.vb +++ b/snippets/visualbasic/System.Security/SecureString/AppendChar/xat.vb @@ -2,41 +2,41 @@ Imports System.Security Module Example - Public Sub Main() - Dim msg As String = "The current length of the SecureString object: {0}" + vbCrLf - Console.WriteLine("1) Instantiate the SecureString object.") - Dim ss As New SecureString() - Console.WriteLine(msg, ss.Length) + Public Sub Run() + Dim msg As String = "The current length of the SecureString object: {0}" + vbCrLf + Console.WriteLine("1) Instantiate the SecureString object.") + Dim ss As New SecureString() + Console.WriteLine(msg, ss.Length) - Console.WriteLine("2) Append 'a' to the value.") - ss.AppendChar("a"c) - Console.WriteLine(msg, ss.Length) + Console.WriteLine("2) Append 'a' to the value.") + ss.AppendChar("a"c) + Console.WriteLine(msg, ss.Length) - Console.WriteLine("3) Append 'X' to the value.") - ss.AppendChar("X"c) - Console.WriteLine(msg, ss.Length) + Console.WriteLine("3) Append 'X' to the value.") + ss.AppendChar("X"c) + Console.WriteLine(msg, ss.Length) - Console.WriteLine("4) Append 'c' to the value.") - ss.AppendChar("c"c) - Console.WriteLine(msg, ss.Length) + Console.WriteLine("4) Append 'c' to the value.") + ss.AppendChar("c"c) + Console.WriteLine(msg, ss.Length) - Console.WriteLine("5) Insert 'd' at the end of the value.") - ss.InsertAt(ss.Length, "d"c) - Console.WriteLine(msg, ss.Length) + Console.WriteLine("5) Insert 'd' at the end of the value.") + ss.InsertAt(ss.Length, "d"c) + Console.WriteLine(msg, ss.Length) - Console.WriteLine("6) Remove the last character ('d') from the value.") - ss.RemoveAt(3) - Console.WriteLine(msg, ss.Length) + Console.WriteLine("6) Remove the last character ('d') from the value.") + ss.RemoveAt(3) + Console.WriteLine(msg, ss.Length) - Console.WriteLine("7) Set the second character of the value to 'b'.") - ss.SetAt(1, "b"c) - Console.WriteLine(msg, ss.Length) + Console.WriteLine("7) Set the second character of the value to 'b'.") + ss.SetAt(1, "b"c) + Console.WriteLine(msg, ss.Length) - Console.WriteLine("8) Delete the value of the SecureString object:") - ss.Clear() - Console.WriteLine(msg, ss.Length) + Console.WriteLine("8) Delete the value of the SecureString object:") + ss.Clear() + Console.WriteLine(msg, ss.Length) - ss.Dispose() + ss.Dispose() End Sub End Module ' The example displays the following output: diff --git a/snippets/visualbasic/System.Security/SecureString/AppendChar/xchar.vb b/snippets/visualbasic/System.Security/SecureString/AppendChar/xchar.vb index 8c475a55569..658b27e01a4 100644 --- a/snippets/visualbasic/System.Security/SecureString/AppendChar/xchar.vb +++ b/snippets/visualbasic/System.Security/SecureString/AppendChar/xchar.vb @@ -2,56 +2,57 @@ Imports System.Security Class ExampleClass - Public Shared Sub Main() - Dim cki As ConsoleKeyInfo - Dim m As String = vbCrLf & "Enter your password (up to 15 letters, numbers, and underscores)" & + Public Shared Sub Run() + Dim cki As ConsoleKeyInfo + Dim m As String = vbCrLf & "Enter your password (up to 15 letters, numbers, and underscores)" & vbCrLf & "Press BACKSPACE to delete the last character entered. " & vbCrLf & "Press Enter when done, or ESCAPE to quit: " - Dim password As New SecureString() - Dim top, left As Integer - - ' The Console.TreatControlCAsInput property prevents CTRL+C from - ' ending this example. - Console.TreatControlCAsInput = True - - Console.Clear() - Console.WriteLine(m) - - top = Console.CursorTop - left = Console.CursorLeft - - ' Read user input from the console. Store up to 15 letter, digit, or underscore - ' characters in a SecureString object, or delete a character if the user enters - ' a backspace. Display an asterisk (*) on the console to represent each character - ' that is stored. - - Do - cki = Console.ReadKey(True) - If cki.Key = ConsoleKey.Escape Then Exit Do - - If cki.Key = ConsoleKey.Backspace Then - If password.Length > 0 Then - Console.SetCursorPosition(left + password.Length - 1, top) - Console.Write(" "c) - Console.SetCursorPosition(left + password.Length - 1, top) - password.RemoveAt(password.Length - 1) - End If - Else - If password.Length < 15 AndAlso([Char].IsLetterOrDigit(cki.KeyChar) _ + Dim password As New SecureString() + Dim top, left As Integer + + ' The Console.TreatControlCAsInput property prevents CTRL+C from + ' ending this example. + Console.TreatControlCAsInput = True + + Console.Clear() + Console.WriteLine(m) + + top = Console.CursorTop + left = Console.CursorLeft + + ' Read user input from the console. Store up to 15 letter, digit, or underscore + ' characters in a SecureString object, or delete a character if the user enters + ' a backspace. Display an asterisk (*) on the console to represent each character + ' that is stored. + + Do + cki = Console.ReadKey(True) + If cki.Key = ConsoleKey.Escape Then Exit Do + + If cki.Key = ConsoleKey.Backspace Then + If password.Length > 0 Then + Console.SetCursorPosition(left + password.Length - 1, top) + Console.Write(" "c) + Console.SetCursorPosition(left + password.Length - 1, top) + password.RemoveAt(password.Length - 1) + End If + Else + If password.Length < 15 AndAlso ([Char].IsLetterOrDigit(cki.KeyChar) _ OrElse cki.KeyChar = "_"c) Then - password.AppendChar(cki.KeyChar) - Console.SetCursorPosition(left + password.Length - 1, top) - Console.Write("*"c) + password.AppendChar(cki.KeyChar) + Console.SetCursorPosition(left + password.Length - 1, top) + Console.Write("*"c) + End If End If - End If - Loop While cki.Key <> ConsoleKey.Enter And password.Length < 15 - - ' Make the password read-only to prevent modification. - password.MakeReadOnly() - ' Dispose of the SecureString instance. - password.Dispose() - End Sub + Loop While cki.Key <> ConsoleKey.Enter And password.Length < 15 + + ' Make the password read-only to prevent modification. + password.MakeReadOnly() + ' Dispose of the SecureString instance. + password.Dispose() + End Sub End Class + ' The example displays output like the following: ' Enter your password (up to 15 letters, numbers, and underscores) ' Press BACKSPACE to delete the last character entered.