diff --git a/src/libraries/Common/tests/StaticTestGenerator/Program.cs b/src/libraries/Common/tests/StaticTestGenerator/Program.cs index a3d6b723615..6ab713b8c62 100644 --- a/src/libraries/Common/tests/StaticTestGenerator/Program.cs +++ b/src/libraries/Common/tests/StaticTestGenerator/Program.cs @@ -33,7 +33,7 @@ namespace StaticTestGenerator } // Set up an assembly resolving event handler to help locate helper assemblies that are needed - // to process the test assembly, such as xunit assemblies and corefx test helpers. + // to process the test assembly, such as xunit assemblies and .NET Core test helpers. string[] probingPaths = new[] { Path.GetDirectoryName(testAssemblyPath), runtimeAssembliesPath, outputPath, AppContext.BaseDirectory }; AppDomain.CurrentDomain.AssemblyResolve += (object sender, ResolveEventArgs args) => { @@ -212,7 +212,7 @@ namespace StaticTestGenerator /// Parse the command-line. /// The arguments passed to Main. /// The location of the xunit test assembly to be analyzed. The resulting .cs file will call into this assembly. - /// The directory containing all of the helper assemblies needed, e.g. xunit's assemblies, corefx utility assemblies, etc. + /// The directory containing all of the helper assemblies needed, e.g. xunit's assemblies, .NET Core utility assemblies, etc. /// The directory into which the resulting project should be written. /// The xunit command-line object to pass to xunit test discovery. /// @@ -274,7 +274,7 @@ namespace StaticTestGenerator // Invalid command line arguments. Console.WriteLine("Usage: "); Console.WriteLine(" Example:"); - Console.WriteLine(@" dotnet run d:\tmpoutput d:\repos\corefx\artifacts\bin\testhost\netcoreapp5.0-Windows_NT-Debug-x64\shared\Microsoft.NETCore.App\$(ProductVersion) d:\repos\corefx\artifacts\bin\System.Runtime.Tests\netcoreapp5.0-Windows_NT-Debug\System.Runtime.Tests.dll"); + Console.WriteLine(@" dotnet run d:\tmpoutput d:\repos\runtime\artifacts\bin\testhost\netcoreapp5.0-Windows_NT-Debug-x64\shared\Microsoft.NETCore.App\$(ProductVersion) d:\repos\runtime\artifacts\bin\System.Runtime.Tests\netcoreapp5.0-Windows_NT-Debug\System.Runtime.Tests.dll"); testAssemblyPath = string.Empty; runtimeAssembliesPath = string.Empty; outputPath = string.Empty; diff --git a/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ApplicationSettingsBase.cs b/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ApplicationSettingsBase.cs index 376482ca501..64b519b7d55 100644 --- a/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ApplicationSettingsBase.cs +++ b/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ApplicationSettingsBase.cs @@ -751,7 +751,7 @@ namespace System.Configuration /// private bool IsFirstRunOfClickOnceApp() { - // Never ClickOnce app in CoreFX + // Always false for .NET Core return false; } @@ -760,7 +760,7 @@ namespace System.Configuration /// internal static bool IsClickOnceDeployed(AppDomain appDomain) { - // Never ClickOnce app in CoreFX + // Always false for .NET Core return false; } diff --git a/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/Internal/WriteFileContext.cs b/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/Internal/WriteFileContext.cs index 04996bb7d43..74436f5ec83 100644 --- a/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/Internal/WriteFileContext.cs +++ b/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/Internal/WriteFileContext.cs @@ -5,9 +5,9 @@ using System.IO; using System.Threading; -// The CODEDOM check is here to support frameworks that may not have fully -// incorporated all of corefx, but want to use System.Configuration.ConfigurationManager. -// TempFileCollection was moved in corefx. +// The CODEDOM check is here to support versions of the framework that may not have fully +// incorporated all of .NET Core, but want to use System.Configuration.ConfigurationManager. +// TempFileCollection was moved around in .NET Core. #if CODEDOM using System.CodeDom.Compiler; #else diff --git a/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/TypeUtil.cs b/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/TypeUtil.cs index 6a24a6edcf9..08fb527ff84 100644 --- a/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/TypeUtil.cs +++ b/src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/TypeUtil.cs @@ -45,7 +45,7 @@ namespace System.Configuration // they lived in System.dll. // // On .NET Framework we would try to emulate that behavior by looking in - // System. As types have moved around in CoreFX- we'll try to load + // System. As types have moved around in .NET Core, we'll try to load // from the a variety of assemblies to mimick the old behavior. // Don't bother to look around if we've already got something that diff --git a/src/libraries/System.Data.Odbc/src/DatabaseSetupInstructions.md b/src/libraries/System.Data.Odbc/src/DatabaseSetupInstructions.md index bed49dbea92..72a2dc7a503 100644 --- a/src/libraries/System.Data.Odbc/src/DatabaseSetupInstructions.md +++ b/src/libraries/System.Data.Odbc/src/DatabaseSetupInstructions.md @@ -3,7 +3,7 @@ ## In Fedora 24 container: - `docker ps` shows _id of existing Fedora 24 container - `docker exec -it _id /bin/sh` -- `dnf install findutils` need to install findutils for building corefx to add missing xargs +- `dnf install findutils` need to install findutils for building libraries to add missing xargs - `find / -name libsqlite3odbc.so` to be used in odbcinst.ini - `odbcinst -j` to show version and location of ini files - `ldconfig -p | grep sqlite` diff --git a/src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectoryEntry.cs b/src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectoryEntry.cs index f1af856aa79..af515111e82 100644 --- a/src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectoryEntry.cs +++ b/src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectoryEntry.cs @@ -332,11 +332,7 @@ namespace System.DirectoryServices /// /// Gets or sets the path for this . /// - [ - DefaultValue(""), - // CoreFXPort - Remove design support - // TypeConverter("System.Diagnostics.Design.StringValueConverter, " + AssemblyRef.SystemDesign) - ] + [DefaultValue("")] public string Path { get => _path; @@ -427,11 +423,7 @@ namespace System.DirectoryServices /// /// Gets or sets the username to use when authenticating the client. /// - [ - DefaultValue(null), - // CoreFXPort - Remove design support - // TypeConverter("System.Diagnostics.Design.StringValueConverter, " + AssemblyRef.SystemDesign) - ] + [DefaultValue(null)] public string Username { get diff --git a/src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectorySearcher.cs b/src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectorySearcher.cs index 117aab649d0..e8cb80aae59 100644 --- a/src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectorySearcher.cs +++ b/src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectorySearcher.cs @@ -195,11 +195,7 @@ namespace System.DirectoryServices /// /// Gets or sets the Lightweight Directory Access Protocol (LDAP) filter string format. /// - [ - DefaultValue(defaultFilter), - // CoreFXPort - Remove design support - // TypeConverter("System.Diagnostics.Design.StringValueConverter, " + AssemblyRef.SystemDesign) - ] + [DefaultValue(defaultFilter)] public string Filter { get => _filter; @@ -408,11 +404,7 @@ namespace System.DirectoryServices /// Gets or sets an attribute name to indicate that an attribute-scoped query search should be /// performed. /// - [ - DefaultValue(""), - // CoreFXPort - Remove design support - // TypeConverter("System.Diagnostics.Design.StringValueConverter, " + AssemblyRef.SystemDesign) - ] + [DefaultValue("")] public string AttributeScopeQuery { get => _attributeScopeQuery; diff --git a/src/libraries/System.Drawing.Primitives/tests/ColorTests.cs b/src/libraries/System.Drawing.Primitives/tests/ColorTests.cs index 7c05311d426..989a09c77ca 100644 --- a/src/libraries/System.Drawing.Primitives/tests/ColorTests.cs +++ b/src/libraries/System.Drawing.Primitives/tests/ColorTests.cs @@ -623,7 +623,8 @@ namespace System.Drawing.Primitives.Tests [Fact] public void GetHashCodeForUnknownNamed() { - // .NET Framework gives all such colors the same hash code. CoreFX makes more effort with them. + // The .NET Framework gives all unknown colors the same hashcode, + // .NET Core will provide a unique hashcode. Color c1 = Color.FromName("SomeUnknownColorName"); Color c2 = Color.FromName("AnotherUnknownColorName"); Assert.NotEqual(c2.GetHashCode(), c1.GetHashCode()); diff --git a/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs b/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs index 8a37b2a10c3..a7b9c5c8e0e 100644 --- a/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs +++ b/src/libraries/System.IO.FileSystem/tests/Directory/CreateDirectory.cs @@ -343,7 +343,7 @@ namespace System.IO.Tests [PlatformSpecific(TestPlatforms.Windows)] // trailing whitespace in path is removed on Windows public void TrailingWhiteSpace_NotTrimmed(string component) { - // In CoreFX we don't trim anything other than space (' ') + // In .NET Core we don't trim anything other than space (' ') DirectoryInfo testDir = Create(GetTestFilePath() + component); string path = IOServices.RemoveTrailingSlash(testDir.FullName); DirectoryInfo result = Create(path); diff --git a/src/libraries/System.IO.FileSystem/tests/File/Exists.cs b/src/libraries/System.IO.FileSystem/tests/File/Exists.cs index 6eb45ad2db3..c1e4a0d4142 100644 --- a/src/libraries/System.IO.FileSystem/tests/File/Exists.cs +++ b/src/libraries/System.IO.FileSystem/tests/File/Exists.cs @@ -194,7 +194,7 @@ namespace System.IO.Tests [PlatformSpecific(TestPlatforms.Windows)] public void TrailingWhiteSpace_NotTrimmed(string component) { - // In CoreFX we don't trim anything other than space (' ') + // In .NET Core we don't trim anything other than space (' ') string path = GetTestFilePath() + component; FileInfo testFile = new FileInfo(path); testFile.Create().Dispose(); diff --git a/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/Helper.Win32Unix.cs b/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/Helper.Win32Unix.cs index 54be6440d0f..15e0e913a96 100644 --- a/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/Helper.Win32Unix.cs +++ b/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/Helper.Win32Unix.cs @@ -30,7 +30,7 @@ namespace System.IO.IsolatedStorage internal static void GetDefaultIdentityAndHash(out object identity, out string hash, char separator) { - // .NET Framework IsolatedStorage uses identity from System.Security.Policy.Evidence to build + // In .NET Framework IsolatedStorage uses identity from System.Security.Policy.Evidence to build // the folder structure on disk. It would use the "best" available evidence in this order: // // 1. Publisher (Authenticode) @@ -43,7 +43,7 @@ namespace System.IO.IsolatedStorage // from the Assembly which comes from the EntryAssembly(). We'll emulate the legacy default behavior // by pulling directly from EntryAssembly. // - // Note that it is possible that there won't be an EntryAssembly, which is something .NET Framework doesn't + // Note that it is possible that there won't be an EntryAssembly, which is something the .NET Framework doesn't // have to deal with and shouldn't be likely on .NET Core due to a single AppDomain. Without Evidence // to pull from we'd have to dig into the use case to try and find a reasonable solution should we // run into this in the wild. diff --git a/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFile.cs b/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFile.cs index fa13df9c1b7..3bef2d8824b 100644 --- a/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFile.cs +++ b/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFile.cs @@ -30,7 +30,7 @@ namespace System.IO.IsolatedStorage // private const string IDFile = "identity.dat"; // "info.dat" is used to track disk space usage (against quota). The accounting file for Silverlight - // stores is "appInfo.dat". CoreFX is always in full trust so we can safely ignore these. + // stores is "appInfo.dat". .NET Core is always in full trust so we can safely ignore these. // // private const string InfoFile = "info.dat"; // private const string AppInfoFile = "appInfo.dat"; @@ -472,12 +472,12 @@ namespace System.IO.IsolatedStorage // Not currently supported: https://github.com/dotnet/corefx/issues/10936 // Implementing this would require serializing/deserializing identity objects which is particularly - // complicated given the normal identity objects used by .NET Framework aren't available on CoreFX. + // complicated given the normal identity objects used by .NET Framework aren't available on .NET Core. // // Starting expectation is that a given store's location would be identical between implementations - // (say, for a particular StrongName). You could iterate any store opened at least once by .NET Framework on - // .NET Framework as it would create the needed identity file. You wouldn't be able to iterate if it was only - // ever opened by CoreFX, as the needed file isn't there yet. + // (say, for a particular StrongName). You could iterate any store opened at least once by the .NET Framework + // at run time as it would create the needed identity file. You wouldn't be able to iterate if it was only + // ever opened by .NET Core, as the needed file isn't there yet. return new IsolatedStorageFileEnumerator(); } @@ -827,9 +827,8 @@ namespace System.IO.IsolatedStorage return false; // Check if we have unknown files - - // Note that we don't generate these files in CoreFX, but we want to match - // .NET Framework removal semantics as .NET Framework will generate these. + // Note that we don't generate these files in .NET Core, but we want to match + // the removal semantics generated by the .NET Framework. if (Helper.IsRoaming(Scope)) return ((files.Length > 1) || !IsIdFile(files[0])); diff --git a/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFileStream.cs b/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFileStream.cs index ffdddc81f7b..829c32d9bde 100644 --- a/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFileStream.cs +++ b/src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageFileStream.cs @@ -59,7 +59,7 @@ namespace System.IO.IsolatedStorage } // On .NET Framework FileStream has an internal no arg constructor that we utilize to provide the facade. We don't have access - // to internals in CoreFX so we'll do the next best thing and contort ourselves into the SafeFileHandle constructor. + // to internals in .NET Core so we'll do the next best thing and contort ourselves into the SafeFileHandle constructor. // (A path constructor would try and create the requested file and give us two open handles.) // // We only expose our own nested FileStream so the base class having a handle doesn't matter. Passing a new SafeFileHandle diff --git a/src/libraries/System.IO.IsolatedStorage/tests/System/IO/IsolatedStorage/TestHelper.cs b/src/libraries/System.IO.IsolatedStorage/tests/System/IO/IsolatedStorage/TestHelper.cs index 103c4ab4686..78ac0acdf9e 100644 --- a/src/libraries/System.IO.IsolatedStorage/tests/System/IO/IsolatedStorage/TestHelper.cs +++ b/src/libraries/System.IO.IsolatedStorage/tests/System/IO/IsolatedStorage/TestHelper.cs @@ -49,7 +49,7 @@ namespace System.IO.IsolatedStorage /// public static string GetUserRootDirectory(this IsolatedStorageFile isf) { - // CoreFX and .NET Framework use the same internal property + // .NET Core and .NET Framework use the same internal property return (string)s_rootDirectoryProperty.GetValue(isf); } diff --git a/src/libraries/System.IO.Packaging/src/System/IO/Packaging/PackagingUtilities.cs b/src/libraries/System.IO.Packaging/src/System/IO/Packaging/PackagingUtilities.cs index 5782d733715..4215445a9f6 100644 --- a/src/libraries/System.IO.Packaging/src/System/IO/Packaging/PackagingUtilities.cs +++ b/src/libraries/System.IO.Packaging/src/System/IO/Packaging/PackagingUtilities.cs @@ -60,7 +60,7 @@ namespace System.IO.Packaging //is not present, we base our decision on byte order marking. Previously, reader was an XmlTextReader, which would //take that into account and return the correct value. - //However, we can't use XmlTextReader, as it is not in COREFX. Therefore, if there is no XmlDeclaration, or the encoding + //However, we can't use XmlTextReader, as it is not in the libraries. Therefore, if there is no XmlDeclaration, or the encoding //attribute is not set, then we will throw now exception, and UTF-8 will be assumed. //TODO: in the future, we can do the work to detect the BOM, and throw an exception if the file is in an invalid encoding. diff --git a/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/ExpressionStringBuilder.cs b/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/ExpressionStringBuilder.cs index f11748cc8ee..6abb20cd619 100644 --- a/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/ExpressionStringBuilder.cs +++ b/src/libraries/System.Linq.Expressions/src/System/Linq/Expressions/ExpressionStringBuilder.cs @@ -257,7 +257,7 @@ namespace System.Linq.Expressions break; case ExpressionType.Power: op = "**"; - break; // This was changed in CoreFx from ^ to ** + break; // This was changed in .NET Core from ^ to ** case ExpressionType.PowerAssign: op = "**="; break; @@ -660,7 +660,7 @@ namespace System.Linq.Expressions case ExpressionType.ConvertChecked: Out(", "); Out(node.Type.Name); - Out(')'); break; // These were changed in CoreFx to add the type name + Out(')'); break; // These were changed in .NET Core to add the type name case ExpressionType.PostIncrementAssign: Out("++"); break; case ExpressionType.PostDecrementAssign: Out("--"); break; default: Out(')'); break; diff --git a/src/libraries/System.Management/src/System/Management/WMIGenerator.cs b/src/libraries/System.Management/src/System/Management/WMIGenerator.cs index 48021528114..b9527392d5a 100644 --- a/src/libraries/System.Management/src/System/Management/WMIGenerator.cs +++ b/src/libraries/System.Management/src/System/Management/WMIGenerator.cs @@ -4837,7 +4837,7 @@ namespace System.Management case CodeLanguage.JScript: strProvider = "JScript.NET."; - bSucceeded = false; // JScriptCodeProvider does not exist on CoreFx + bSucceeded = false; // JScriptCodeProvider does not exist on .NET Core break; case CodeLanguage.CSharp: diff --git a/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs b/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs index 8a596379015..dcef588f4df 100644 --- a/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs +++ b/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs @@ -713,7 +713,7 @@ namespace System.Net.Tests [Fact] public void ConnectionGroupName_SetAndGetGroup_ValuesMatch() { - // Note: In CoreFX changing this value will not have any effect on HTTP stack's behavior. + // Note: In .NET Core changing this value will not have any effect on HTTP stack's behavior. // For app-compat reasons we allow applications to alter and read the property. HttpWebRequest request = WebRequest.CreateHttp("http://test"); Assert.Null(request.ConnectionGroupName); @@ -1029,7 +1029,7 @@ namespace System.Net.Tests [Fact] public void ReadWriteTimeout_SetThenGet_ValuesMatch() { - // Note: In CoreFX changing this value will not have any effect on HTTP stack's behavior. + // Note: In .NET Core changing this value will not have any effect on HTTP stack's behavior. // For app-compat reasons we allow applications to alter and read the property. HttpWebRequest request = WebRequest.CreateHttp("http://test"); request.ReadWriteTimeout = 5; diff --git a/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStreamPal.Windows.cs b/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStreamPal.Windows.cs index e53f0fb43d1..5a7023a3607 100644 --- a/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStreamPal.Windows.cs +++ b/src/libraries/System.Net.Security/src/System/Net/Security/NegotiateStreamPal.Windows.cs @@ -49,7 +49,7 @@ namespace System.Net.Security string authtype = context.ProtocolName; // The following call was also specifying WindowsAccountType.Normal, true. - // WindowsIdentity.IsAuthenticated is no longer supported in CoreFX. + // WindowsIdentity.IsAuthenticated is no longer supported in .NET Core result = new WindowsIdentity(token.DangerousGetHandle(), authtype); return result; } diff --git a/src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Windows.cs b/src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Windows.cs index 2e4b77c0786..607836d3829 100644 --- a/src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Windows.cs +++ b/src/libraries/System.Net.Security/src/System/Net/Security/SslStreamPal.Windows.cs @@ -156,7 +156,7 @@ namespace System.Net.Security Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_CRED_NO_DEFAULT_CREDS | Interop.SspiCli.SCHANNEL_CRED.Flags.SCH_SEND_AUX_RECORD; - // CoreFX: always opt-in SCH_USE_STRONG_CRYPTO for TLS. + // .NET Core: always opt-in SCH_USE_STRONG_CRYPTO for TLS. if (((protocolFlags == 0) || (protocolFlags & ~(Interop.SChannel.SP_PROT_SSL2 | Interop.SChannel.SP_PROT_SSL3)) != 0) && (policy != EncryptionPolicy.AllowNoEncryption) && (policy != EncryptionPolicy.NoEncryption)) diff --git a/src/libraries/System.Net.Security/src/System/Security/Authentication/ExtendedProtection/ExtendedProtectionPolicy.cs b/src/libraries/System.Net.Security/src/System/Security/Authentication/ExtendedProtection/ExtendedProtectionPolicy.cs index fc93358936e..e3f3019fe43 100644 --- a/src/libraries/System.Net.Security/src/System/Security/Authentication/ExtendedProtection/ExtendedProtectionPolicy.cs +++ b/src/libraries/System.Net.Security/src/System/Security/Authentication/ExtendedProtection/ExtendedProtectionPolicy.cs @@ -150,7 +150,7 @@ namespace System.Security.Authentication.ExtendedProtection { get { - // CoreFX is supported only on Win7+ where ExtendedProtection is supported. + // .NET Core is supported only on Win7+ where ExtendedProtection is supported. return true; } } diff --git a/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketFlags.cs b/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketFlags.cs index 213f9d83266..16ab9a1b2c3 100644 --- a/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketFlags.cs +++ b/src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketFlags.cs @@ -21,7 +21,7 @@ namespace System.Net.Sockets // Send without using routing tables. DontRoute = 0x0004, - // This is defined in the .NET Framework and isn't being ported to CoreFx + // This is defined in the .NET Framework and isn't being ported to .NET Core // since it is Windows specific. However, leave this enum value reserved // to prevent future numbering conflicts. // MaxIOVectorLength = 0x0010 diff --git a/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocket.cs b/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocket.cs index 0dc6f282d76..16bcbca728e 100644 --- a/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocket.cs +++ b/src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocket.cs @@ -168,7 +168,7 @@ namespace System.Net.WebSockets [EditorBrowsable(EditorBrowsableState.Never)] public static void RegisterPrefixes() { - // The current WebRequest implementation in corefx does not support upgrading + // The current WebRequest implementation in the libraries does not support upgrading // web socket connections. For now, we throw. throw new PlatformNotSupportedException(); } diff --git a/src/libraries/System.Private.CoreLib/src/System/IO/PersistedFiles.Names.Unix.cs b/src/libraries/System.Private.CoreLib/src/System/IO/PersistedFiles.Names.Unix.cs index 8984f1aee32..5d32c213fc8 100644 --- a/src/libraries/System.Private.CoreLib/src/System/IO/PersistedFiles.Names.Unix.cs +++ b/src/libraries/System.Private.CoreLib/src/System/IO/PersistedFiles.Names.Unix.cs @@ -12,6 +12,8 @@ namespace System.IO internal const string TopLevelDirectory = "dotnet"; internal const string TopLevelHiddenDirectory = "." + TopLevelDirectory; + // Do not update this corefx reference to libraries + // as we need to keep the original directory structure. internal const string SecondLevelDirectory = "corefx"; } } diff --git a/src/libraries/System.Private.CoreLib/src/System/Number.BigInteger.cs b/src/libraries/System.Private.CoreLib/src/System/Number.BigInteger.cs index 726973bbd9e..185d386b189 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Number.BigInteger.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Number.BigInteger.cs @@ -427,8 +427,8 @@ namespace System public static void DivRem(ref BigInteger lhs, ref BigInteger rhs, out BigInteger quo, out BigInteger rem) { - // This is modified from the CoreFX BigIntegerCalculator.DivRem.cs implementation: - // https://github.com/dotnet/corefx/blob/0bb106232745aedfc0d0c5a84ff2b244bf190317/src/System.Runtime.Numerics/src/System/Numerics/BigIntegerCalculator.DivRem.cs + // This is modified from the libraries BigIntegerCalculator.DivRem.cs implementation: + // https://github.com/dotnet/runtime/blob/master/src/libraries/System.Runtime.Numerics/src/System/Numerics/BigIntegerCalculator.DivRem.cs Debug.Assert(!rhs.IsZero()); diff --git a/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs b/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs index 7b5f6f15222..f1550fb43d5 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Reflection/AssemblyName.cs @@ -272,7 +272,7 @@ namespace System.Reflection return new string(dest, 0, position); } - // This implementation of EscapeString has been copied from System.Private.Uri from corefx repo + // This implementation of EscapeString has been copied from System.Private.Uri from the runtime repo // - forceX characters are always escaped if found // - rsvd character will remain unescaped // diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/Encoding/BlobEncoders.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/Encoding/BlobEncoders.cs index 17603431a82..b04cf3f3e55 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/Encoding/BlobEncoders.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/Encoding/BlobEncoders.cs @@ -916,7 +916,7 @@ namespace System.Reflection.Metadata.Ecma335 public void Type(EntityHandle type, bool isValueType) { // Get the coded index before we start writing anything (might throw argument exception): - // Note: We don't allow TypeSpec as per https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/Ecma-335-Issues.md#proposed-specification-change + // Note: We don't allow TypeSpec as per https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/Ecma-335-Issues.md#proposed-specification-change int codedIndex = CodedIndex.TypeDefOrRef(type); ClassOrValue(isValueType); @@ -979,7 +979,7 @@ namespace System.Reflection.Metadata.Ecma335 } // Get the coded index before we start writing anything (might throw argument exception): - // Note: We don't allow TypeSpec as per https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/Ecma-335-Issues.md#proposed-specification-change + // Note: We don't allow TypeSpec as per https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/Ecma-335-Issues.md#proposed-specification-change int codedIndex = CodedIndex.TypeDefOrRef(genericType); Builder.WriteByte((byte)SignatureTypeCode.GenericTypeInstance); diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/MetadataBuilder.Tables.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/MetadataBuilder.Tables.cs index f19ccd90372..ce8084ae3b2 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/MetadataBuilder.Tables.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/Ecma335/MetadataBuilder.Tables.cs @@ -1208,19 +1208,17 @@ namespace System.Reflection.Metadata.Ecma335 /// /// /// Document Name blob. - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#document-name-blob /// /// /// GUID of the hash algorithm used to calculate the value of . - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#document-table-0x30 for common values. /// /// /// The hash of the document content. /// /// /// GUID of the language. - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#document-table-0x30 for common values. /// + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md public DocumentHandle AddDocument(BlobHandle name, GuidHandle hashAlgorithm, BlobHandle hash, GuidHandle language) { _documentTable.Add(new DocumentRow @@ -1242,7 +1240,7 @@ namespace System.Reflection.Metadata.Ecma335 /// /// /// Sequence Points blob, or nil if the method doesn't have sequence points. - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#sequence-points-blob. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#sequence-points-blob. /// public MethodDebugInformationHandle AddMethodDebugInformation(DocumentHandle document, BlobHandle sequencePoints) { @@ -1318,7 +1316,7 @@ namespace System.Reflection.Metadata.Ecma335 /// /// Name of the variable. /// - /// LocalConstantSig blob, see https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localconstantsig-blob. + /// LocalConstantSig blob, see https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localconstantsig-blob. /// public LocalConstantHandle AddLocalConstant(StringHandle name, BlobHandle signature) { @@ -1336,7 +1334,7 @@ namespace System.Reflection.Metadata.Ecma335 /// /// Parent scope handle. /// - /// Imports blob, see https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#imports-blob. + /// Imports blob, see https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#imports-blob. /// public ImportScopeHandle AddImportScope(ImportScopeHandle parentScope, BlobHandle imports) { diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/Document.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/Document.cs index 5744a86706a..4ed57d86087 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/Document.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/Document.cs @@ -10,7 +10,7 @@ namespace System.Reflection.Metadata /// Source document in debug metadata. /// /// - /// See also https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#document-table-0x30. + /// See also https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#document-table-0x30. /// public readonly struct Document { diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/ImportScope.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/ImportScope.cs index bafb119490d..5072b6d570e 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/ImportScope.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/ImportScope.cs @@ -10,7 +10,7 @@ namespace System.Reflection.Metadata /// Lexical scope within which a group of imports are available. Stored in debug metadata. /// /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#importscope-table-0x35 + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#importscope-table-0x35 /// public readonly struct ImportScope { diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalConstant.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalConstant.cs index d989d84e17f..c94b4bc3433 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalConstant.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalConstant.cs @@ -10,7 +10,7 @@ namespace System.Reflection.Metadata /// Local constant. Stored in debug metadata. /// /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localconstant-table-0x34. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localconstant-table-0x34. /// public readonly struct LocalConstant { diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalScope.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalScope.cs index d9294ce51c9..697a5c04497 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalScope.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalScope.cs @@ -10,7 +10,7 @@ namespace System.Reflection.Metadata /// Scope of local variables and constants. Stored in debug metadata. /// /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localscope-table-0x32. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localscope-table-0x32. /// public readonly struct LocalScope { diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalVariable.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalVariable.cs index 0c96e8dd412..9b018d848b0 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalVariable.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/LocalVariable.cs @@ -10,7 +10,7 @@ namespace System.Reflection.Metadata /// Local variable. Stored in debug metadata. /// /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localvariable-table-0x33. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#localvariable-table-0x33. /// public readonly struct LocalVariable { diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/MethodDebugInformation.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/MethodDebugInformation.cs index 5adf6ce50ca..565f4519817 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/MethodDebugInformation.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/PortablePdb/MethodDebugInformation.cs @@ -10,7 +10,7 @@ namespace System.Reflection.Metadata /// Debug information associated with a method definition. Stored in debug metadata. /// /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#methoddebuginformation-table-0x31. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PortablePdb-Metadata.md#methoddebuginformation-table-0x31. /// public readonly struct MethodDebugInformation { diff --git a/src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/DebugDirectory/DebugDirectoryEntryType.cs b/src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/DebugDirectory/DebugDirectoryEntryType.cs index 80c6db2f7ae..f0b2d0bef11 100644 --- a/src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/DebugDirectory/DebugDirectoryEntryType.cs +++ b/src/libraries/System.Reflection.Metadata/src/System/Reflection/PortableExecutable/DebugDirectory/DebugDirectoryEntryType.cs @@ -21,7 +21,7 @@ namespace System.Reflection.PortableExecutable /// Associated PDB file description. /// /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PE-COFF.md#codeview-debug-directory-entry-type-2 for specification. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PE-COFF.md#codeview-debug-directory-entry-type-2 for specification. /// CodeView = 2, @@ -45,7 +45,7 @@ namespace System.Reflection.PortableExecutable /// The debug directory entry of type must have all fields, except for Type zeroed. /// /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PE-COFF.md#deterministic-debug-directory-entry-type-16 for specification. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PE-COFF.md#deterministic-debug-directory-entry-type-16 for specification. /// /// Reproducible = 16, @@ -60,7 +60,7 @@ namespace System.Reflection.PortableExecutable /// /// Data spans the remainder of the blob and contains a Deflate-compressed Portable PDB. /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PE-COFF.md#embedded-portable-pdb-debug-directory-entry-type-17 for specification. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PE-COFF.md#embedded-portable-pdb-debug-directory-entry-type-17 for specification. /// EmbeddedPortablePdb = 17, @@ -71,7 +71,7 @@ namespace System.Reflection.PortableExecutable /// The hash can be used to validate that a given PDB file was built with the PE/COFF file and not altered in any way. /// More than one entry can be present, in case multiple PDBs were produced during the build of the PE/COFF file (e.g. private and public symbols). /// - /// See https://github.com/dotnet/corefx/blob/master/src/System.Reflection.Metadata/specs/PE-COFF.md#pdb-checksum-debug-directory-entry-type-19 for specification. + /// See https://github.com/dotnet/runtime/blob/master/src/libraries/System.Reflection.Metadata/specs/PE-COFF.md#pdb-checksum-debug-directory-entry-type-19 for specification. /// PdbChecksum = 19, } diff --git a/src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/General/Helpers.cs b/src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/General/Helpers.cs index e7db909cd9d..987bda55a96 100644 --- a/src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/General/Helpers.cs +++ b/src/libraries/System.Reflection.MetadataLoadContext/src/System/Reflection/TypeLoading/General/Helpers.cs @@ -147,7 +147,7 @@ namespace System.Reflection.TypeLoading { // @TODO - https://github.com/dotnet/corefxlab/issues/2447 - This is not the best way to compute the PKT as AssemblyName // throws if the PK isn't a valid PK blob. That's not something we should block a metadata inspection tool for so we - // should compute the PKT ourselves as soon as we can convince the CoreFx analyzers to let us use SHA1. + // should compute the PKT ourselves as soon as we can convince the libraries analyzers to let us use SHA1. AssemblyName an = new AssemblyName(); an.SetPublicKey(pkt); return an.GetPublicKeyToken(); diff --git a/src/libraries/System.Runtime.Extensions/tests/System/IO/PathTests_Windows.cs b/src/libraries/System.Runtime.Extensions/tests/System/IO/PathTests_Windows.cs index 368caefc4e6..cad18255746 100644 --- a/src/libraries/System.Runtime.Extensions/tests/System/IO/PathTests_Windows.cs +++ b/src/libraries/System.Runtime.Extensions/tests/System/IO/PathTests_Windows.cs @@ -392,18 +392,18 @@ namespace System.IO.Tests public static TheoryData GetFullPath_Windows_FullyQualified => new TheoryData { - { @"C:\git\corefx", @"C:\git\corefx", @"C:\git\corefx" }, - { @"C:\git\corefx.\.\.\.\.\.", @"C:\git\corefx", @"C:\git\corefx" }, - { @"C:\git\corefx\\\.", @"C:\git\corefx", @"C:\git\corefx" }, - { @"C:\git\corefx\..\corefx\.\..\corefx", @"C:\git\corefx", @"C:\git\corefx" }, - { @"C:\somedir\..", @"C:\git\corefx", @"C:\" }, - { @"C:\", @"C:\git\corefx", @"C:\" }, - { @"..\..\..\..", @"C:\git\corefx", @"C:\" }, - { @"C:\\\", @"C:\git\corefx", @"C:\" }, - { @"C:\..\..\", @"C:\git\corefx", @"C:\" }, - { @"C:\..\git\..\.\", @"C:\git\corefx", @"C:\" }, - { @"C:\git\corefx\..\..\..\", @"C:\git\corefx", @"C:\" }, - { @"C:\.\corefx\", @"C:\git\corefx", @"C:\corefx\" }, + { @"C:\git\runtime", @"C:\git\runtime", @"C:\git\runtime" }, + { @"C:\git\runtime.\.\.\.\.\.", @"C:\git\runtime", @"C:\git\runtime" }, + { @"C:\git\runtime\\\.", @"C:\git\runtime", @"C:\git\runtime" }, + { @"C:\git\runtime\..\runtime\.\..\runtime", @"C:\git\runtime", @"C:\git\runtime" }, + { @"C:\somedir\..", @"C:\git\runtime", @"C:\" }, + { @"C:\", @"C:\git\runtime", @"C:\" }, + { @"..\..\..\..", @"C:\git\runtime", @"C:\" }, + { @"C:\\\", @"C:\git\runtime", @"C:\" }, + { @"C:\..\..\", @"C:\git\runtime", @"C:\" }, + { @"C:\..\git\..\.\", @"C:\git\runtime", @"C:\" }, + { @"C:\git\runtime\..\..\..\", @"C:\git\runtime", @"C:\" }, + { @"C:\.\runtime\", @"C:\git\runtime", @"C:\runtime\" }, }; [Theory, @@ -416,25 +416,25 @@ namespace System.IO.Tests public static TheoryData GetFullPath_Windows_PathIsDevicePath => new TheoryData { // Device Paths with \\?\ wont get normalized i.e. relative segments wont get removed. - { @"\\?\C:\git\corefx.\.\.\.\.\.", @"C:\git\corefx", @"\\?\C:\git\corefx.\.\.\.\.\." }, - { @"\\?\C:\git\corefx\\\.", @"C:\git\corefx", @"\\?\C:\git\corefx\\\." }, - { @"\\?\C:\git\corefx\..\corefx\.\..\corefx", @"C:\git\corefx", @"\\?\C:\git\corefx\..\corefx\.\..\corefx" }, - { @"\\?\\somedir\..", @"C:\git\corefx", @"\\?\\somedir\.." }, - { @"\\?\", @"C:\git\corefx", @"\\?\" }, - { @"\\?\..\..\..\..", @"C:\git\corefx", @"\\?\..\..\..\.." }, - { @"\\?\\\\" , @"C:\git\corefx", @"\\?\\\\" }, - { @"\\?\C:\Foo." , @"C:\git\corefx", @"\\?\C:\Foo." }, - { @"\\?\C:\Foo " , @"C:\git\corefx", @"\\?\C:\Foo " }, + { @"\\?\C:\git\runtime.\.\.\.\.\.", @"C:\git\runtime", @"\\?\C:\git\runtime.\.\.\.\.\." }, + { @"\\?\C:\git\runtime\\\.", @"C:\git\runtime", @"\\?\C:\git\runtime\\\." }, + { @"\\?\C:\git\runtime\..\runtime\.\..\runtime", @"C:\git\runtime", @"\\?\C:\git\runtime\..\runtime\.\..\runtime" }, + { @"\\?\\somedir\..", @"C:\git\runtime", @"\\?\\somedir\.." }, + { @"\\?\", @"C:\git\runtime", @"\\?\" }, + { @"\\?\..\..\..\..", @"C:\git\runtime", @"\\?\..\..\..\.." }, + { @"\\?\\\\" , @"C:\git\runtime", @"\\?\\\\" }, + { @"\\?\C:\Foo." , @"C:\git\runtime", @"\\?\C:\Foo." }, + { @"\\?\C:\Foo " , @"C:\git\runtime", @"\\?\C:\Foo " }, - { @"\\.\C:\git\corefx.\.\.\.\.\.", @"C:\git\corefx", @"\\.\C:\git\corefx" }, - { @"\\.\C:\git\corefx\\\.", @"C:\git\corefx", @"\\.\C:\git\corefx" }, - { @"\\.\C:\git\corefx\..\corefx\.\..\corefx", @"C:\git\corefx", @"\\.\C:\git\corefx" }, - { @"\\.\\somedir\..", @"C:\git\corefx", @"\\.\" }, - { @"\\.\", @"C:\git\corefx", @"\\.\" }, - { @"\\.\..\..\..\..", @"C:\git\corefx", @"\\.\" }, - { @"\\.\", @"C:\git\corefx", @"\\.\" }, - { @"\\.\C:\Foo." , @"C:\git\corefx", @"\\.\C:\Foo" }, - { @"\\.\C:\Foo " , @"C:\git\corefx", @"\\.\C:\Foo" }, + { @"\\.\C:\git\runtime.\.\.\.\.\.", @"C:\git\runtime", @"\\.\C:\git\runtime" }, + { @"\\.\C:\git\runtime\\\.", @"C:\git\runtime", @"\\.\C:\git\runtime" }, + { @"\\.\C:\git\runtime\..\runtime\.\..\runtime", @"C:\git\runtime", @"\\.\C:\git\runtime" }, + { @"\\.\\somedir\..", @"C:\git\runtime", @"\\.\" }, + { @"\\.\", @"C:\git\runtime", @"\\.\" }, + { @"\\.\..\..\..\..", @"C:\git\runtime", @"\\.\" }, + { @"\\.\", @"C:\git\runtime", @"\\.\" }, + { @"\\.\C:\Foo." , @"C:\git\runtime", @"\\.\C:\Foo" }, + { @"\\.\C:\Foo " , @"C:\git\runtime", @"\\.\C:\Foo" }, }; [Theory, @@ -540,67 +540,67 @@ namespace System.IO.Tests public static TheoryData GetFullPath_CommonRootedWindowsData => new TheoryData { - { "", @"C:\git\corefx", @"C:\git\corefx" }, - { "..", @"C:\git\corefx", @"C:\git" }, + { "", @"C:\git\runtime", @"C:\git\runtime" }, + { "..", @"C:\git\runtime", @"C:\git" }, // Current drive rooted - { @"\tmp\bar", @"C:\git\corefx", @"C:\tmp\bar" }, - { @"\.\bar", @"C:\git\corefx", @"C:\bar" }, - { @"\tmp\..", @"C:\git\corefx", @"C:\" }, - { @"\tmp\bar\..", @"C:\git\corefx", @"C:\tmp" }, - { @"\tmp\bar\..", @"C:\git\corefx", @"C:\tmp" }, - { @"\", @"C:\git\corefx", @"C:\" }, + { @"\tmp\bar", @"C:\git\runtime", @"C:\tmp\bar" }, + { @"\.\bar", @"C:\git\runtime", @"C:\bar" }, + { @"\tmp\..", @"C:\git\runtime", @"C:\" }, + { @"\tmp\bar\..", @"C:\git\runtime", @"C:\tmp" }, + { @"\tmp\bar\..", @"C:\git\runtime", @"C:\tmp" }, + { @"\", @"C:\git\runtime", @"C:\" }, - { @"..\..\tmp\bar", @"C:\git\corefx", @"C:\tmp\bar" }, - { @"..\..\.\bar", @"C:\git\corefx", @"C:\bar" }, - { @"..\..\..\..\tmp\..", @"C:\git\corefx", @"C:\" }, - { @"\tmp\..\bar..\..\..", @"C:\git\corefx", @"C:\" }, - { @"\tmp\..\bar\..", @"C:\git\corefx", @"C:\" }, - { @"\.\.\..\..\", @"C:\git\corefx", @"C:\" }, + { @"..\..\tmp\bar", @"C:\git\runtime", @"C:\tmp\bar" }, + { @"..\..\.\bar", @"C:\git\runtime", @"C:\bar" }, + { @"..\..\..\..\tmp\..", @"C:\git\runtime", @"C:\" }, + { @"\tmp\..\bar..\..\..", @"C:\git\runtime", @"C:\" }, + { @"\tmp\..\bar\..", @"C:\git\runtime", @"C:\" }, + { @"\.\.\..\..\", @"C:\git\runtime", @"C:\" }, // Specific drive rooted - { @"C:tmp\foo\..", @"C:\git\corefx", @"C:\git\corefx\tmp" }, - { @"C:tmp\foo\.", @"C:\git\corefx", @"C:\git\corefx\tmp\foo" }, - { @"C:tmp\foo\..", @"C:\git\corefx", @"C:\git\corefx\tmp" }, - { @"C:tmp", @"C:\git\corefx", @"C:\git\corefx\tmp" }, - { @"C:", @"C:\git\corefx", @"C:\git\corefx" }, - { @"C", @"C:\git\corefx", @"C:\git\corefx\C" }, + { @"C:tmp\foo\..", @"C:\git\runtime", @"C:\git\runtime\tmp" }, + { @"C:tmp\foo\.", @"C:\git\runtime", @"C:\git\runtime\tmp\foo" }, + { @"C:tmp\foo\..", @"C:\git\runtime", @"C:\git\runtime\tmp" }, + { @"C:tmp", @"C:\git\runtime", @"C:\git\runtime\tmp" }, + { @"C:", @"C:\git\runtime", @"C:\git\runtime" }, + { @"C", @"C:\git\runtime", @"C:\git\runtime\C" }, - { @"Z:tmp\foo\..", @"C:\git\corefx", @"Z:\tmp" }, - { @"Z:tmp\foo\.", @"C:\git\corefx", @"Z:\tmp\foo" }, - { @"Z:tmp\foo\..", @"C:\git\corefx", @"Z:\tmp" }, - { @"Z:tmp", @"C:\git\corefx", @"Z:\tmp" }, - { @"Z:", @"C:\git\corefx", @"Z:\" }, - { @"Z", @"C:\git\corefx", @"C:\git\corefx\Z" }, + { @"Z:tmp\foo\..", @"C:\git\runtime", @"Z:\tmp" }, + { @"Z:tmp\foo\.", @"C:\git\runtime", @"Z:\tmp\foo" }, + { @"Z:tmp\foo\..", @"C:\git\runtime", @"Z:\tmp" }, + { @"Z:tmp", @"C:\git\runtime", @"Z:\tmp" }, + { @"Z:", @"C:\git\runtime", @"Z:\" }, + { @"Z", @"C:\git\runtime", @"C:\git\runtime\Z" }, // Relative segments eating into the root - { @"C:..\..\..\tmp\foo\..", @"C:\git\corefx", @"C:\tmp" }, - { @"C:tmp\..\..\foo\.", @"C:\git\corefx", @"C:\git\foo" }, - { @"C:..\..\tmp\foo\..", @"C:\git\corefx", @"C:\tmp" }, - { @"C:tmp\..\", @"C:\git\corefx", @"C:\git\corefx\" }, - { @"C:", @"C:\git\corefx", @"C:\git\corefx" }, - { @"C", @"C:\git\corefx", @"C:\git\corefx\C" }, + { @"C:..\..\..\tmp\foo\..", @"C:\git\runtime", @"C:\tmp" }, + { @"C:tmp\..\..\foo\.", @"C:\git\runtime", @"C:\git\foo" }, + { @"C:..\..\tmp\foo\..", @"C:\git\runtime", @"C:\tmp" }, + { @"C:tmp\..\", @"C:\git\runtime", @"C:\git\runtime\" }, + { @"C:", @"C:\git\runtime", @"C:\git\runtime" }, + { @"C", @"C:\git\runtime", @"C:\git\runtime\C" }, - { @"C:tmp\..\..\..\..\foo\..", @"C:\git\corefx", @"C:\" }, + { @"C:tmp\..\..\..\..\foo\..", @"C:\git\runtime", @"C:\" }, { @"C:tmp\..\..\foo\.", @"C:\", @"C:\foo" }, { @"C:..\..\tmp\..\foo\..", @"C:\", @"C:\" }, { @"C:tmp\..\", @"C:\", @"C:\" }, - { @"Z:tmp\foo\..", @"C:\git\corefx", @"Z:\tmp" }, - { @"Z:tmp\foo\.", @"C:\git\corefx", @"Z:\tmp\foo" }, - { @"Z:tmp\foo\..", @"C:\git\corefx", @"Z:\tmp" }, - { @"Z:tmp", @"C:\git\corefx", @"Z:\tmp" }, - { @"Z:", @"C:\git\corefx", @"Z:\" }, - { @"Z", @"C:\git\corefx", @"C:\git\corefx\Z" }, + { @"Z:tmp\foo\..", @"C:\git\runtime", @"Z:\tmp" }, + { @"Z:tmp\foo\.", @"C:\git\runtime", @"Z:\tmp\foo" }, + { @"Z:tmp\foo\..", @"C:\git\runtime", @"Z:\tmp" }, + { @"Z:tmp", @"C:\git\runtime", @"Z:\tmp" }, + { @"Z:", @"C:\git\runtime", @"Z:\" }, + { @"Z", @"C:\git\runtime", @"C:\git\runtime\Z" }, - { @"Z:..\..\..\tmp\foo\..", @"C:\git\corefx", @"Z:\tmp" }, - { @"Z:tmp\..\..\foo\.", @"C:\git\corefx", @"Z:\foo" }, - { @"Z:..\..\tmp\foo\..", @"C:\git\corefx", @"Z:\tmp" }, - { @"Z:tmp\..\", @"C:\git\corefx", @"Z:\" }, - { @"Z:", @"C:\git\corefx", @"Z:\" }, - { @"Z", @"C:\git\corefx", @"C:\git\corefx\Z" }, + { @"Z:..\..\..\tmp\foo\..", @"C:\git\runtime", @"Z:\tmp" }, + { @"Z:tmp\..\..\foo\.", @"C:\git\runtime", @"Z:\foo" }, + { @"Z:..\..\tmp\foo\..", @"C:\git\runtime", @"Z:\tmp" }, + { @"Z:tmp\..\", @"C:\git\runtime", @"Z:\" }, + { @"Z:", @"C:\git\runtime", @"Z:\" }, + { @"Z", @"C:\git\runtime", @"C:\git\runtime\Z" }, - { @"Z:tmp\..\..\..\..\foo\..", @"C:\git\corefx", @"Z:\" }, + { @"Z:tmp\..\..\..\..\foo\..", @"C:\git\runtime", @"Z:\" }, { @"Z:tmp\..\..\foo\.", @"C:\", @"Z:\foo" }, { @"Z:..\..\tmp\..\foo\..", @"C:\", @"Z:\" }, { @"Z:tmp\..\", @"C:\", @"Z:\" }, diff --git a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/HandleCollectorTests.cs b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/HandleCollectorTests.cs index 40c639fd77c..b119a763f28 100644 --- a/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/HandleCollectorTests.cs +++ b/src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/HandleCollectorTests.cs @@ -105,8 +105,8 @@ namespace System.Runtime.InteropServices // Jump HandleCollector instance forward until it almost overflows TypeInfo type = typeof(HandleCollector).GetTypeInfo(); FieldInfo handleCount = - type.GetDeclaredField("_handleCount") ?? // corefx - type.GetDeclaredField("handleCount"); // desktop + type.GetDeclaredField("_handleCount") ?? // .NET Core + type.GetDeclaredField("handleCount"); // .NET Framework Assert.NotNull(handleCount); handleCount.SetValue(collector, int.MaxValue - ToAdd); } diff --git a/src/libraries/System.Runtime/tests/System/HashCodeTests.cs b/src/libraries/System.Runtime/tests/System/HashCodeTests.cs index 8564559be77..912f103f6d3 100644 --- a/src/libraries/System.Runtime/tests/System/HashCodeTests.cs +++ b/src/libraries/System.Runtime/tests/System/HashCodeTests.cs @@ -11,7 +11,7 @@ public static class HashCodeTests [Fact] public static void HashCode_Add() { - // The version of xUnit used by corefx does not support params theories. + // The version of xUnit used by .NET Core does not support params theories. void Theory(uint expected, params uint[] vector) { var hc = new HashCode(); diff --git a/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs b/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs index 285a5591b42..edd6e158fdf 100644 --- a/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs +++ b/src/libraries/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs @@ -477,7 +477,7 @@ namespace System.Text.Tests AssertExtensions.Throws("name", () => Encoding.GetEncoding((string)mapping[2])); } - // Currently the class EncodingInfo isn't present in corefx, so this checks none of the code pages are present. + // Currently the class EncodingInfo isn't present in .NET Core, so this checks none of the code pages are present. // When it is, comment out this line and remove the previous foreach/assert. // Assert.Equal(CrossplatformDefaultEncodings, Encoding.GetEncodings().OrderBy(i => i.CodePage).Select(i => Map(i.CodePage, i.WebName))); @@ -502,7 +502,7 @@ namespace System.Text.Tests } // Adding the code page provider should keep the originals, too. ValidateDefaultEncodings(); - // Currently the class EncodingInfo isn't present in corefx, so this checks the complete list + // Currently the class EncodingInfo isn't present in .NET Core, so this checks the complete list // When it is, comment out this line and remove the previous foreach/assert. // Assert.Equal(CrossplatformDefaultEncodings().Union(CodePageInfo().Select(i => Map((int)i[0], (string)i[1])).OrderBy(i => i.Key)), // Encoding.GetEncodings().OrderBy(i => i.CodePage).Select(i => Map(i.CodePage, i.WebName))); diff --git a/src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClass.cs b/src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClass.cs index 5416ec2c441..6933cd9bb1f 100644 --- a/src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClass.cs +++ b/src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClass.cs @@ -122,7 +122,7 @@ namespace System.Text.Json.Serialization.Tests @"""MyDateTime"" : ""2019-01-30T12:01:02.0000000Z""," + @"""MyDateTimeOffset"" : ""2019-01-30T12:01:02.0000000+01:00""," + @"""MyGuid"" : ""1B33498A-7B7D-4DDA-9C13-F6AA4AB449A6""," + - @"""MyUri"" : ""https://github.com/dotnet/corefx""," + + @"""MyUri"" : ""https://github.com/dotnet/runtime""," + @"""MyEnum"" : 2," + // int by default @"""MyInt64Enum"" : -9223372036854775808," + @"""MyUInt64Enum"" : 18446744073709551615," + @@ -156,7 +156,7 @@ namespace System.Text.Json.Serialization.Tests @"""MyDateTimeArray"" : [""2019-01-30T12:01:02.0000000Z""]," + @"""MyDateTimeOffsetArray"" : [""2019-01-30T12:01:02.0000000+01:00""]," + @"""MyGuidArray"" : [""1B33498A-7B7D-4DDA-9C13-F6AA4AB449A6""]," + - @"""MyUriArray"" : [""https://github.com/dotnet/corefx""]," + + @"""MyUriArray"" : [""https://github.com/dotnet/runtime""]," + @"""MyEnumArray"" : [2]," + // int by default @"""MyInt16TwoDimensionArray"" : [[10, 11],[20, 21]]," + @"""MyInt16TwoDimensionList"" : [[10, 11],[20, 21]]," + @@ -210,7 +210,7 @@ namespace System.Text.Json.Serialization.Tests MyDateTime = new DateTime(2019, 1, 30, 12, 1, 2, DateTimeKind.Utc); MyDateTimeOffset = new DateTimeOffset(2019, 1, 30, 12, 1, 2, new TimeSpan(1, 0, 0)); MyGuid = new Guid("1B33498A-7B7D-4DDA-9C13-F6AA4AB449A6"); - MyUri = new Uri("https://github.com/dotnet/corefx"); + MyUri = new Uri("https://github.com/dotnet/runtime"); MyEnum = SampleEnum.Two; MyInt64Enum = SampleEnumInt64.MinNegative; MyUInt64Enum = SampleEnumUInt64.Max; @@ -232,7 +232,7 @@ namespace System.Text.Json.Serialization.Tests MyDateTimeArray = new DateTime[] { new DateTime(2019, 1, 30, 12, 1, 2, DateTimeKind.Utc) }; MyDateTimeOffsetArray = new DateTimeOffset[] { new DateTimeOffset(2019, 1, 30, 12, 1, 2, new TimeSpan(1, 0, 0)) }; MyGuidArray = new Guid[] { new Guid("1B33498A-7B7D-4DDA-9C13-F6AA4AB449A6") }; - MyUriArray = new Uri[] { new Uri("https://github.com/dotnet/corefx") }; + MyUriArray = new Uri[] { new Uri("https://github.com/dotnet/runtime") }; MyEnumArray = new SampleEnum[] { SampleEnum.Two }; MySimpleStruct = new SimpleStruct { One = 11, Two = 1.9999 }; MySimpleTestStruct = new SimpleTestStruct { MyInt64 = 64, MyString = "Hello", MyInt32Array = new int[] { 32 } }; @@ -326,7 +326,7 @@ namespace System.Text.Json.Serialization.Tests Assert.Equal(new DateTime(2019, 1, 30, 12, 1, 2, DateTimeKind.Utc), MyDateTime); Assert.Equal(new DateTimeOffset(2019, 1, 30, 12, 1, 2, new TimeSpan(1, 0, 0)), MyDateTimeOffset); Assert.Equal(new Guid("1B33498A-7B7D-4DDA-9C13-F6AA4AB449A6"), MyGuid); - Assert.Equal(new Uri("https://github.com/dotnet/corefx"), MyUri); + Assert.Equal(new Uri("https://github.com/dotnet/runtime"), MyUri); Assert.Equal(SampleEnum.Two, MyEnum); Assert.Equal(SampleEnumInt64.MinNegative, MyInt64Enum); Assert.Equal(SampleEnumUInt64.Max, MyUInt64Enum); @@ -354,7 +354,7 @@ namespace System.Text.Json.Serialization.Tests Assert.Equal(new DateTime(2019, 1, 30, 12, 1, 2, DateTimeKind.Utc), MyDateTimeArray[0]); Assert.Equal(new DateTimeOffset(2019, 1, 30, 12, 1, 2, new TimeSpan(1, 0, 0)), MyDateTimeOffsetArray[0]); Assert.Equal(new Guid("1B33498A-7B7D-4DDA-9C13-F6AA4AB449A6"), MyGuidArray[0]); - Assert.Equal(new Uri("https://github.com/dotnet/corefx"), MyUriArray[0]); + Assert.Equal(new Uri("https://github.com/dotnet/runtime"), MyUriArray[0]); Assert.Equal(SampleEnum.Two, MyEnumArray[0]); Assert.Equal(10, MyInt16TwoDimensionArray[0][0]); diff --git a/src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClassWithObjectArrays.cs b/src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClassWithObjectArrays.cs index 5d82f390557..f1557120872 100644 --- a/src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClassWithObjectArrays.cs +++ b/src/libraries/System.Text.Json/tests/Serialization/TestClasses.SimpleTestClassWithObjectArrays.cs @@ -47,7 +47,7 @@ namespace System.Text.Json.Serialization.Tests @"""MyDecimal"" : [3.3]," + @"""MyDateTime"" : [""2019-01-30T12:01:02.0000000Z""]," + @"""MyGuid"" : [""97E9F02C-337E-4615-B26C-0020F5DC28C9""]," + - @"""MyUri"" : [""https://github.com/dotnet/corefx""]," + + @"""MyUri"" : [""https://github.com/dotnet/runtime""]," + @"""MyEnum"" : [2]" + // int by default @"}"; @@ -76,7 +76,7 @@ namespace System.Text.Json.Serialization.Tests MyDecimal = new object[] { 3.3m }; MyDateTime = new object[] { new DateTime(2019, 1, 30, 12, 1, 2, DateTimeKind.Utc) }; MyGuid = new object[] { new Guid("97E9F02C-337E-4615-B26C-0020F5DC28C9") }; - MyUri = new object[] { new Uri("https://github.com/dotnet/corefx") }; + MyUri = new object[] { new Uri("https://github.com/dotnet/runtime") }; MyEnum = new object[] { SampleEnum.Two }; } @@ -142,8 +142,7 @@ namespace System.Text.Json.Serialization.Tests Assert.Equal(new Guid("97E9F02C-337E-4615-B26C-0020F5DC28C9"), ((JsonElement)MyGuid[0]).GetGuid()); Assert.IsType(MyUri[0]); Assert.Equal(JsonValueKind.String, ((JsonElement)MyUri[0]).ValueKind); - // TODO: Use JsonElement.GetUri() when https://github.com/dotnet/corefx/issues/38647 is implemented. - Assert.Equal(new Uri("https://github.com/dotnet/corefx"), new Uri(((JsonElement)MyUri[0]).GetString())); + Assert.Equal(new Uri("https://github.com/dotnet/runtime"), new Uri(((JsonElement)MyUri[0]).GetString())); Assert.IsType(MyEnum[0]); Assert.Equal(JsonValueKind.Number, ((JsonElement)MyEnum[0]).ValueKind); Assert.Equal(SampleEnum.Two, (SampleEnum)((JsonElement)MyEnum[0]).GetUInt32()); diff --git a/src/libraries/System.Utf8String.Experimental/README.md b/src/libraries/System.Utf8String.Experimental/README.md index 5be839bdbdf..226fea3881a 100644 --- a/src/libraries/System.Utf8String.Experimental/README.md +++ b/src/libraries/System.Utf8String.Experimental/README.md @@ -6,7 +6,7 @@ To install: install-package System.Utf8String.Experimental -prerelease -source https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json ``` -This package can only be installed into a project targeting a __nightly__ build of coreclr or corefx. Anything under the _master_ column of https://github.com/dotnet/core-sdk would work, as would any coreclr + corefx built from your own dev box (as long as you're building from _master_ instead of _release/..._). Installing this onto a project targeting an official Preview build would not work, as official Preview builds come from the _release_ branch. +This package can only be installed into a project targeting a __nightly__ build of coreclr or libraries. Anything under the _master_ column of https://github.com/dotnet/core-sdk would work, as would any coreclr + libraries built from your own dev box (as long as you're building from _master_ instead of _release/..._). Installing this onto a project targeting an official Preview build would not work, as official Preview builds come from the _release_ branch. It's possible that installing the package might fail with an error similar to that seen below. @@ -14,7 +14,7 @@ It's possible that installing the package might fail with an error similar to th install-package : NU1605: Detected package downgrade: Microsoft.NETCore.Platforms from 3.0.0-preview6.19251.6 to 3.0.0-preview6.19223.2. Reference the package directly from the project to select a different version. ``` -This can occur if the NuGet client attempts to install a newer version of the package than allowed by the coreclr / corefx your application is targeting. For now you can work around this error by specifying the explicit package version in the install command. Match the version passed to the NuGet client (shown below) to the version specified in the error message (shown above). +This can occur if the NuGet client attempts to install a newer version of the package than allowed by the .NET Core version your application is targeting. For now you can work around this error by specifying the explicit package version in the install command. Match the version passed to the NuGet client (shown below) to the version specified in the error message (shown above). ```ps install-package System.Utf8String.Experimental -prerelease -source https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json -version 3.0.0-preview6.19223.2