From ef5893823508f3dcf52da4d52f259bd9d9311bfe Mon Sep 17 00:00:00 2001 From: Andrew Lock Date: Wed, 15 Apr 2026 14:50:03 +0100 Subject: [PATCH] Remove System.Private.CoreLib resource keys --- .../UpdateVendors/VendoredDependency.cs | 13 - .../Vendors/System.Private.CoreLib/SR.cs | 411 ------------------ .../System.Private.CoreLib.csproj.txt | 9 - .../_last_downloaded_source_url.txt | 1 - 4 files changed, 434 deletions(-) delete mode 100644 tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/SR.cs delete mode 100644 tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/System.Private.CoreLib.csproj.txt delete mode 100644 tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/_last_downloaded_source_url.txt diff --git a/tracer/build/_build/UpdateVendors/VendoredDependency.cs b/tracer/build/_build/UpdateVendors/VendoredDependency.cs index d70a84ebaf4e..89d6a96a5d52 100644 --- a/tracer/build/_build/UpdateVendors/VendoredDependency.cs +++ b/tracer/build/_build/UpdateVendors/VendoredDependency.cs @@ -230,19 +230,6 @@ static VendoredDependency() }, relativePathsToExclude: new [] { "Resources/Strings.resx" }); - Add( - libraryName: "System.Private.CoreLib", - version: "1.0.0", - downloadUrl: "https://github.com/DataDog/dotnet-vendored-code/archive/refs/tags/1.0.0.zip", - pathToSrc: new[] { "dotnet-vendored-code-1.0.0", "System.Reflection.Metadata", "System.Private.CoreLib" }, - transform: filePath => - { - - RewriteCsFileWithStandardTransform(filePath, originalNamespace: "System.Runtime", AddNullableDirectiveTransform, AddIgnoreNullabilityWarningDisablePragma); - RewriteCsFileWithStandardTransform(filePath, originalNamespace: "System.Diagnostics", AddNullableDirectiveTransform, AddIgnoreNullabilityWarningDisablePragma); - RewriteCsFileWithStandardTransform(filePath, originalNamespace: "FxResources", AddNullableDirectiveTransform, AddIgnoreNullabilityWarningDisablePragma); - }); - // "Common" shared components required by System.Reflection.Metadata (among others) // Not a "real" package Add( diff --git a/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/SR.cs b/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/SR.cs deleted file mode 100644 index 3db2c4566830..000000000000 --- a/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/SR.cs +++ /dev/null @@ -1,411 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This file was automatically generated by the UpdateVendors tool. -//------------------------------------------------------------------------------ -#pragma warning disable CS0618, CS0649, CS1574, CS1580, CS1581, CS1584, CS1591, CS1573, CS8018, SYSLIB0011, SYSLIB0032 -#pragma warning disable CS8600, CS8601, CS8602, CS8603, CS8604, CS8618, CS8620, CS8714, CS8762, CS8765, CS8766, CS8767, CS8768, CS8769, CS8612, CS8629, CS8774 -//------------------------------------------------------------------------------ -// -// This file was automatically generated by the UpdateVendors tool. -//------------------------------------------------------------------------------ -#pragma warning disable CS0618, CS0649, CS1574, CS1580, CS1581, CS1584, CS1591, CS1573, CS8018, SYSLIB0011, SYSLIB0032 -#pragma warning disable CS8600, CS8601, CS8602, CS8603, CS8604, CS8618, CS8620, CS8714, CS8762, CS8765, CS8766, CS8767, CS8768, CS8769, CS8612, CS8629, CS8774 -//------------------------------------------------------------------------------ -// -// This file was automatically generated by the UpdateVendors tool. -//------------------------------------------------------------------------------ -#pragma warning disable CS0618, CS0649, CS1574, CS1580, CS1581, CS1584, CS1591, CS1573, CS8018, SYSLIB0011, SYSLIB0032 -#pragma warning disable CS8600, CS8601, CS8602, CS8603, CS8604, CS8618, CS8620, CS8714, CS8762, CS8765, CS8766, CS8767, CS8768, CS8769, CS8612, CS8629, CS8774 -#nullable enable -using System; -using System.Resources; - -namespace FxResources.System.Reflection.Metadata -{ - internal static class SR { } -} -namespace Datadog.Trace.VendoredMicrosoftCode.System -{ - internal static partial class SR - { - private static readonly bool s_usingResourceKeys = AppContext.TryGetSwitch("System.Resources.UseSystemResourceKeys", out bool usingResourceKeys) ? usingResourceKeys : false; - - // This method is used to decide if we need to append the exception message parameters to the message when calling SR.Format. - // by default it returns the value of System.Resources.UseSystemResourceKeys AppContext switch or false if not specified. - // Native code generators can replace the value this returns based on user input at the time of native code generation. - // The trimming tools are also capable of replacing the value of this method when the application is being trimmed. - public static bool UsingResourceKeys() => s_usingResourceKeys; - - public static string GetResourceString(string resourceKey) - { - if (UsingResourceKeys()) - { - return resourceKey; - } - - string? resourceString = null; - try - { - resourceString = -#if SYSTEM_PRIVATE_CORELIB || NATIVEAOT - InternalGetResourceString(resourceKey); -#else - ResourceManager.GetString(resourceKey); -#endif - } - catch (MissingManifestResourceException) { } - - return resourceString!; // only null if missing resources - } - - public static string GetResourceString(string resourceKey, string defaultString) - { - string resourceString = GetResourceString(resourceKey); - - return resourceKey == resourceString || resourceString == null ? defaultString : resourceString; - } - - public static string Format(string resourceFormat, object? p1) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1); - } - - return string.Format(resourceFormat, p1); - } - - public static string Format(string resourceFormat, object? p1, object? p2) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1, p2); - } - - return string.Format(resourceFormat, p1, p2); - } - - public static string Format(string resourceFormat, object? p1, object? p2, object? p3) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1, p2, p3); - } - - return string.Format(resourceFormat, p1, p2, p3); - } - - public static string Format(string resourceFormat, params object?[]? args) - { - if (args != null) - { - if (UsingResourceKeys()) - { - return resourceFormat + ", " + string.Join(", ", args); - } - - return string.Format(resourceFormat, args); - } - - return resourceFormat; - } - - public static string Format(IFormatProvider? provider, string resourceFormat, object? p1) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1); - } - - return string.Format(provider, resourceFormat, p1); - } - - public static string Format(IFormatProvider? provider, string resourceFormat, object? p1, object? p2) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1, p2); - } - - return string.Format(provider, resourceFormat, p1, p2); - } - - public static string Format(IFormatProvider? provider, string resourceFormat, object? p1, object? p2, object? p3) - { - if (UsingResourceKeys()) - { - return string.Join(", ", resourceFormat, p1, p2, p3); - } - - return string.Format(provider, resourceFormat, p1, p2, p3); - } - - public static string Format(IFormatProvider? provider, string resourceFormat, params object?[]? args) - { - if (args != null) - { - if (UsingResourceKeys()) - { - return resourceFormat + ", " + string.Join(", ", args); - } - - return string.Format(provider, resourceFormat, args); - } - - return resourceFormat; - } - } - - internal static partial class SR - { - private static global::System.Resources.ResourceManager s_resourceManager; - public static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(FxResources.System.Reflection.Metadata.SR))); - - /// Image is too small. - public static string @ImageTooSmall => GetResourceString("ImageTooSmall", @"Image is too small."); - /// Invalid COR header size. - public static string @InvalidCorHeaderSize => GetResourceString("InvalidCorHeaderSize", @"Invalid COR header size."); - /// Invalid handle. - public static string @InvalidHandle => GetResourceString("InvalidHandle", @"Invalid handle."); - /// Unexpected handle kind: {0}. - public static string @UnexpectedHandleKind => GetResourceString("UnexpectedHandleKind", @"Unexpected handle kind: {0}."); - /// Unexpected op-code: {0}. - public static string @UnexpectedOpCode => GetResourceString("UnexpectedOpCode", @"Unexpected op-code: {0}."); - /// Invalid local signature token: 0x{0:X8} - public static string @InvalidLocalSignatureToken => GetResourceString("InvalidLocalSignatureToken", @"Invalid local signature token: 0x{0:X8}"); - /// Invalid metadata section span. - public static string @InvalidMetadataSectionSpan => GetResourceString("InvalidMetadataSectionSpan", @"Invalid metadata section span."); - /// Invalid method header: 0x{0:X2} - public static string @InvalidMethodHeader1 => GetResourceString("InvalidMethodHeader1", @"Invalid method header: 0x{0:X2}"); - /// Invalid method header: 0x{0:X2} 0x{1:X2} - public static string @InvalidMethodHeader2 => GetResourceString("InvalidMethodHeader2", @"Invalid method header: 0x{0:X2} 0x{1:X2}"); - /// Invalid PE signature. - public static string @InvalidPESignature => GetResourceString("InvalidPESignature", @"Invalid PE signature."); - /// Invalid SEH header: 0x{0:X2} - public static string @InvalidSehHeader => GetResourceString("InvalidSehHeader", @"Invalid SEH header: 0x{0:X2}"); - /// Invalid token. - public static string @InvalidToken => GetResourceString("InvalidToken", @"Invalid token."); - /// Metadata image doesn't represent an assembly. - public static string @MetadataImageDoesNotRepresentAnAssembly => GetResourceString("MetadataImageDoesNotRepresentAnAssembly", @"Metadata image doesn't represent an assembly."); - /// Standalone debug metadata image doesn't contain Module table. - public static string @StandaloneDebugMetadataImageDoesNotContainModuleTable => GetResourceString("StandaloneDebugMetadataImageDoesNotContainModuleTable", @"Standalone debug metadata image doesn't contain Module table."); - /// PE image not available. - public static string @PEImageNotAvailable => GetResourceString("PEImageNotAvailable", @"PE image not available."); - /// Missing data directory. - public static string @MissingDataDirectory => GetResourceString("MissingDataDirectory", @"Missing data directory."); - /// Specified handle is not a valid metadata heap handle. - public static string @NotMetadataHeapHandle => GetResourceString("NotMetadataHeapHandle", @"Specified handle is not a valid metadata heap handle."); - /// Specified handle is not a valid metadata table or UserString heap handle. - public static string @NotMetadataTableOrUserStringHandle => GetResourceString("NotMetadataTableOrUserStringHandle", @"Specified handle is not a valid metadata table or UserString heap handle."); - /// Section too small. - public static string @SectionTooSmall => GetResourceString("SectionTooSmall", @"Section too small."); - /// Stream must support read and seek operations. - public static string @StreamMustSupportReadAndSeek => GetResourceString("StreamMustSupportReadAndSeek", @"Stream must support read and seek operations."); - /// Unknown file format. - public static string @UnknownFileFormat => GetResourceString("UnknownFileFormat", @"Unknown file format."); - /// Unknown PE Magic value. - public static string @UnknownPEMagicValue => GetResourceString("UnknownPEMagicValue", @"Unknown PE Magic value."); - /// Metadata table {0} not sorted. - public static string @MetadataTableNotSorted => GetResourceString("MetadataTableNotSorted", @"Metadata table {0} not sorted."); - /// Invalid number of rows of Module table: {0}. - public static string @ModuleTableInvalidNumberOfRows => GetResourceString("ModuleTableInvalidNumberOfRows", @"Invalid number of rows of Module table: {0}."); - /// Unknown tables: 0x{0:x16}. - public static string @UnknownTables => GetResourceString("UnknownTables", @"Unknown tables: 0x{0:x16}."); - /// Illegal tables in compressed metadata stream. - public static string @IllegalTablesInCompressedMetadataStream => GetResourceString("IllegalTablesInCompressedMetadataStream", @"Illegal tables in compressed metadata stream."); - /// Table row count space to small. - public static string @TableRowCountSpaceTooSmall => GetResourceString("TableRowCountSpaceTooSmall", @"Table row count space to small."); - /// Read out of bounds. - public static string @OutOfBoundsRead => GetResourceString("OutOfBoundsRead", @"Read out of bounds."); - /// Write out of bounds. - public static string @OutOfBoundsWrite => GetResourceString("OutOfBoundsWrite", @"Write out of bounds."); - /// Metadata header too small. - public static string @MetadataHeaderTooSmall => GetResourceString("MetadataHeaderTooSmall", @"Metadata header too small."); - /// Invalid COR20 header signature. - public static string @MetadataSignature => GetResourceString("MetadataSignature", @"Invalid COR20 header signature."); - /// Not enough space for version string. - public static string @NotEnoughSpaceForVersionString => GetResourceString("NotEnoughSpaceForVersionString", @"Not enough space for version string."); - /// Stream header too small. - public static string @StreamHeaderTooSmall => GetResourceString("StreamHeaderTooSmall", @"Stream header too small."); - /// Not enough space for stream header name. - public static string @NotEnoughSpaceForStreamHeaderName => GetResourceString("NotEnoughSpaceForStreamHeaderName", @"Not enough space for stream header name."); - /// Not enough space for String stream. - public static string @NotEnoughSpaceForStringStream => GetResourceString("NotEnoughSpaceForStringStream", @"Not enough space for String stream."); - /// Not enough space for Blob stream. - public static string @NotEnoughSpaceForBlobStream => GetResourceString("NotEnoughSpaceForBlobStream", @"Not enough space for Blob stream."); - /// Not enough space for GUID stream. - public static string @NotEnoughSpaceForGUIDStream => GetResourceString("NotEnoughSpaceForGUIDStream", @"Not enough space for GUID stream."); - /// Not enough space for Metadata stream. - public static string @NotEnoughSpaceForMetadataStream => GetResourceString("NotEnoughSpaceForMetadataStream", @"Not enough space for Metadata stream."); - /// Invalid Metadata stream format. - public static string @InvalidMetadataStreamFormat => GetResourceString("InvalidMetadataStreamFormat", @"Invalid Metadata stream format."); - /// Metadata tables too small. - public static string @MetadataTablesTooSmall => GetResourceString("MetadataTablesTooSmall", @"Metadata tables too small."); - /// Metadata table header too small. - public static string @MetadataTableHeaderTooSmall => GetResourceString("MetadataTableHeaderTooSmall", @"Metadata table header too small."); - /// Missing mscorlib reference in AssemblyRef table. - public static string @WinMDMissingMscorlibRef => GetResourceString("WinMDMissingMscorlibRef", @"Missing mscorlib reference in AssemblyRef table."); - /// Unexpected stream end. - public static string @UnexpectedStreamEnd => GetResourceString("UnexpectedStreamEnd", @"Unexpected stream end."); - /// Invalid relative virtual address (RVA): 0x{0:X8} - public static string @InvalidMethodRva => GetResourceString("InvalidMethodRva", @"Invalid relative virtual address (RVA): 0x{0:X8}"); - /// Can't get a heap offset for a virtual heap handle - public static string @CantGetOffsetForVirtualHeapHandle => GetResourceString("CantGetOffsetForVirtualHeapHandle", @"Can't get a heap offset for a virtual heap handle"); - /// Invalid number of sections declared in PE header. - public static string @InvalidNumberOfSections => GetResourceString("InvalidNumberOfSections", @"Invalid number of sections declared in PE header."); - /// Invalid signature. - public static string @InvalidSignature => GetResourceString("InvalidSignature", @"Invalid signature."); - /// PE image does not have metadata. - public static string @PEImageDoesNotHaveMetadata => GetResourceString("PEImageDoesNotHaveMetadata", @"PE image does not have metadata."); - /// Invalid coded index. - public static string @InvalidCodedIndex => GetResourceString("InvalidCodedIndex", @"Invalid coded index."); - /// Invalid compressed integer. - public static string @InvalidCompressedInteger => GetResourceString("InvalidCompressedInteger", @"Invalid compressed integer."); - /// Invalid document name. - public static string @InvalidDocumentName => GetResourceString("InvalidDocumentName", @"Invalid document name."); - /// Row ID or heap offset is too large. - public static string @RowIdOrHeapOffsetTooLarge => GetResourceString("RowIdOrHeapOffsetTooLarge", @"Row ID or heap offset is too large."); - /// EnCMap table not sorted or has missing records. - public static string @EnCMapNotSorted => GetResourceString("EnCMapNotSorted", @"EnCMap table not sorted or has missing records."); - /// Invalid serialized string. - public static string @InvalidSerializedString => GetResourceString("InvalidSerializedString", @"Invalid serialized string."); - /// Stream length minus starting position is too large to hold a PEImage. - public static string @StreamTooLarge => GetResourceString("StreamTooLarge", @"Stream length minus starting position is too large to hold a PEImage."); - /// Image is either too small or contains an invalid byte offset or count. - public static string @ImageTooSmallOrContainsInvalidOffsetOrCount => GetResourceString("ImageTooSmallOrContainsInvalidOffsetOrCount", @"Image is either too small or contains an invalid byte offset or count."); - /// The MetadataStringDecoder instance used to instantiate the Metadata reader must have a UTF8 encoding. - public static string @MetadataStringDecoderEncodingMustBeUtf8 => GetResourceString("MetadataStringDecoderEncodingMustBeUtf8", @"The MetadataStringDecoder instance used to instantiate the Metadata reader must have a UTF8 encoding."); - /// Invalid constant value. - public static string @InvalidConstantValue => GetResourceString("InvalidConstantValue", @"Invalid constant value."); - /// Value of type '{0}' is not a constant. - public static string @InvalidConstantValueOfType => GetResourceString("InvalidConstantValueOfType", @"Value of type '{0}' is not a constant."); - /// Invalid import definition kind: {0}. - public static string @InvalidImportDefinitionKind => GetResourceString("InvalidImportDefinitionKind", @"Invalid import definition kind: {0}."); - /// Value is too large. - public static string @ValueTooLarge => GetResourceString("ValueTooLarge", @"Value is too large."); - /// Blob is to large. - public static string @BlobTooLarge => GetResourceString("BlobTooLarge", @"Blob is to large."); - /// Invalid type size. - public static string @InvalidTypeSize => GetResourceString("InvalidTypeSize", @"Invalid type size."); - /// Handle belongs to a future generation - public static string @HandleBelongsToFutureGeneration => GetResourceString("HandleBelongsToFutureGeneration", @"Handle belongs to a future generation"); - /// Invalid row count: {0} - public static string @InvalidRowCount => GetResourceString("InvalidRowCount", @"Invalid row count: {0}"); - /// Invalid entry point token: 0x{0:8X} - public static string @InvalidEntryPointToken => GetResourceString("InvalidEntryPointToken", @"Invalid entry point token: 0x{0:8X}"); - /// There are too many subnamespaces. - public static string @TooManySubnamespaces => GetResourceString("TooManySubnamespaces", @"There are too many subnamespaces."); - /// There are too many exception regions. - public static string @TooManyExceptionRegions => GetResourceString("TooManyExceptionRegions", @"There are too many exception regions."); - /// Sequence point value is out of range. - public static string @SequencePointValueOutOfRange => GetResourceString("SequencePointValueOutOfRange", @"Sequence point value is out of range."); - /// Invalid directory relative virtual address. - public static string @InvalidDirectoryRVA => GetResourceString("InvalidDirectoryRVA", @"Invalid directory relative virtual address."); - /// Invalid directory size. - public static string @InvalidDirectorySize => GetResourceString("InvalidDirectorySize", @"Invalid directory size."); - /// The value of field Characteristics in debug directory entry must be zero. - public static string @InvalidDebugDirectoryEntryCharacteristics => GetResourceString("InvalidDebugDirectoryEntryCharacteristics", @"The value of field Characteristics in debug directory entry must be zero."); - /// Unexpected CodeView data signature value. - public static string @UnexpectedCodeViewDataSignature => GetResourceString("UnexpectedCodeViewDataSignature", @"Unexpected CodeView data signature value."); - /// Unexpected Embedded Portable PDB data signature value. - public static string @UnexpectedEmbeddedPortablePdbDataSignature => GetResourceString("UnexpectedEmbeddedPortablePdbDataSignature", @"Unexpected Embedded Portable PDB data signature value."); - /// Invalid PDB Checksum data format. - public static string @InvalidPdbChecksumDataFormat => GetResourceString("InvalidPdbChecksumDataFormat", @"Invalid PDB Checksum data format."); - /// Expected signature header for '{0}', but found '{1}' (0x{2:x2}). - public static string @UnexpectedSignatureHeader => GetResourceString("UnexpectedSignatureHeader", @"Expected signature header for '{0}', but found '{1}' (0x{2:x2})."); - /// Expected signature header for '{0}' or '{1}', but found '{2}' (0x{3:x2}). - public static string @UnexpectedSignatureHeader2 => GetResourceString("UnexpectedSignatureHeader2", @"Expected signature header for '{0}' or '{1}', but found '{2}' (0x{3:x2})."); - /// Specified handle is not a TypeDefinitionHandle or TypeReferenceHandle. - public static string @NotTypeDefOrRefHandle => GetResourceString("NotTypeDefOrRefHandle", @"Specified handle is not a TypeDefinitionHandle or TypeReferenceHandle."); - /// Unexpected SignatureTypeCode: (0x{0:x}). - public static string @UnexpectedSignatureTypeCode => GetResourceString("UnexpectedSignatureTypeCode", @"Unexpected SignatureTypeCode: (0x{0:x})."); - /// Signature type sequence must have at least one element. - public static string @SignatureTypeSequenceMustHaveAtLeastOneElement => GetResourceString("SignatureTypeSequenceMustHaveAtLeastOneElement", @"Signature type sequence must have at least one element."); - /// Specified handle is not a TypeDefinitionHandle, TypeReferenceHandle, or TypeSpecificationHandle. - public static string @NotTypeDefOrRefOrSpecHandle => GetResourceString("NotTypeDefOrRefOrSpecHandle", @"Specified handle is not a TypeDefinitionHandle, TypeReferenceHandle, or TypeSpecificationHandle."); - /// The Debug directory was not of type {0}. - public static string @UnexpectedDebugDirectoryType => GetResourceString("UnexpectedDebugDirectoryType", @"The Debug directory was not of type {0}."); - /// The limit on the size of {0} heap has been exceeded. - public static string @HeapSizeLimitExceeded => GetResourceString("HeapSizeLimitExceeded", @"The limit on the size of {0} heap has been exceeded."); - /// Builder must be aligned to 4 byte boundary. - public static string @BuilderMustAligned => GetResourceString("BuilderMustAligned", @"Builder must be aligned to 4 byte boundary."); - /// The operation is not valid on this builder as it has been linked with another one. - public static string @BuilderAlreadyLinked => GetResourceString("BuilderAlreadyLinked", @"The operation is not valid on this builder as it has been linked with another one."); - /// The size of the builder returned by {0}.{1} is smaller than requested. - public static string @ReturnedBuilderSizeTooSmall => GetResourceString("ReturnedBuilderSizeTooSmall", @"The size of the builder returned by {0}.{1} is smaller than requested."); - /// Can't add vararg parameters to non-vararg signature. - public static string @SignatureNotVarArg => GetResourceString("SignatureNotVarArg", @"Can't add vararg parameters to non-vararg signature."); - /// Specified label doesn't belong to the current builder. - public static string @LabelDoesntBelongToBuilder => GetResourceString("LabelDoesntBelongToBuilder", @"Specified label doesn't belong to the current builder."); - /// Can't emit a branch or exception region, the current encoder not created with a control flow builder. - public static string @ControlFlowBuilderNotAvailable => GetResourceString("ControlFlowBuilderNotAvailable", @"Can't emit a branch or exception region, the current encoder not created with a control flow builder."); - /// Base reader must be a full metadata reader. - public static string @BaseReaderMustBeFullMetadataReader => GetResourceString("BaseReaderMustBeFullMetadataReader", @"Base reader must be a full metadata reader."); - /// Module already added. - public static string @ModuleAlreadyAdded => GetResourceString("ModuleAlreadyAdded", @"Module already added."); - /// Assembly already added. - public static string @AssemblyAlreadyAdded => GetResourceString("AssemblyAlreadyAdded", @"Assembly already added."); - /// Expected list of size {0}. - public static string @ExpectedListOfSize => GetResourceString("ExpectedListOfSize", @"Expected list of size {0}."); - /// Expected array of size {0}. - public static string @ExpectedArrayOfSize => GetResourceString("ExpectedArrayOfSize", @"Expected array of size {0}."); - /// Expected non-empty list. - public static string @ExpectedNonEmptyList => GetResourceString("ExpectedNonEmptyList", @"Expected non-empty list."); - /// Expected non-empty array. - public static string @ExpectedNonEmptyArray => GetResourceString("ExpectedNonEmptyArray", @"Expected non-empty array."); - /// Expected non-empty string. - public static string @ExpectedNonEmptyString => GetResourceString("ExpectedNonEmptyString", @"Expected non-empty string."); - /// Specified readers must be minimal delta metadata readers. - public static string @ReadersMustBeDeltaReaders => GetResourceString("ReadersMustBeDeltaReaders", @"Specified readers must be minimal delta metadata readers."); - /// Signature provider returned invalid signature. - public static string @SignatureProviderReturnedInvalidSignature => GetResourceString("SignatureProviderReturnedInvalidSignature", @"Signature provider returned invalid signature."); - /// Unknown section name: '{0}'. - public static string @UnknownSectionName => GetResourceString("UnknownSectionName", @"Unknown section name: '{0}'."); - /// Hash must be at least {0}B long. - public static string @HashTooShort => GetResourceString("HashTooShort", @"Hash must be at least {0}B long."); - /// Expected array of length {0}. - public static string @UnexpectedArrayLength => GetResourceString("UnexpectedArrayLength", @"Expected array of length {0}."); - /// Value must be multiple of {0}. - public static string @ValueMustBeMultiple => GetResourceString("ValueMustBeMultiple", @"Value must be multiple of {0}."); - /// {0} must not return null. - public static string @MustNotReturnNull => GetResourceString("MustNotReturnNull", @"{0} must not return null."); - /// Metadata version too long. - public static string @MetadataVersionTooLong => GetResourceString("MetadataVersionTooLong", @"Metadata version too long."); - /// Row count must be zero for table #{0}. - public static string @RowCountMustBeZero => GetResourceString("RowCountMustBeZero", @"Row count must be zero for table #{0}."); - /// Row count specified for table index {0} is out of allowed range. - public static string @RowCountOutOfRange => GetResourceString("RowCountOutOfRange", @"Row count specified for table index {0} is out of allowed range."); - /// Declared size doesn't correspond to the actual size. - public static string @SizeMismatch => GetResourceString("SizeMismatch", @"Declared size doesn't correspond to the actual size."); - /// Data too big to fit in memory. - public static string @DataTooBig => GetResourceString("DataTooBig", @"Data too big to fit in memory."); - /// Unsupported format version: {0} - public static string @UnsupportedFormatVersion => GetResourceString("UnsupportedFormatVersion", @"Unsupported format version: {0}"); - /// The distance between the instruction {0} (offset {1}) and the target label doesn't fit the operand size: {2} - public static string @DistanceBetweenInstructionAndLabelTooBig => GetResourceString("DistanceBetweenInstructionAndLabelTooBig", @"The distance between the instruction {0} (offset {1}) and the target label doesn't fit the operand size: {2}"); - /// Label {0} has not been marked. - public static string @LabelNotMarked => GetResourceString("LabelNotMarked", @"Label {0} has not been marked."); - /// Method body was created with no exception regions. - public static string @MethodHasNoExceptionRegions => GetResourceString("MethodHasNoExceptionRegions", @"Method body was created with no exception regions."); - /// Invalid exception region bounds: start offset ({0}) is greater than end offset ({1}). - public static string @InvalidExceptionRegionBounds => GetResourceString("InvalidExceptionRegionBounds", @"Invalid exception region bounds: start offset ({0}) is greater than end offset ({1})."); - /// Unexpected value '{0}' of type '{1}' - public static string @UnexpectedValue => GetResourceString("UnexpectedValue", @"Unexpected value '{0}' of type '{1}'"); - /// Unexpected value '{0}' of unknown type. - public static string @UnexpectedValueUnknownType => GetResourceString("UnexpectedValueUnknownType", @"Unexpected value '{0}' of unknown type."); - /// The SwitchInstructionEncoder.Branch method was invoked too few times. - public static string @SwitchInstructionEncoderTooFewBranches => GetResourceString("SwitchInstructionEncoderTooFewBranches", @"The SwitchInstructionEncoder.Branch method was invoked too few times."); - /// The SwitchInstructionEncoder.Branch method was invoked too many times. - public static string @SwitchInstructionEncoderTooManyBranches => GetResourceString("SwitchInstructionEncoderTooManyBranches", @"The SwitchInstructionEncoder.Branch method was invoked too many times."); - - public static string CollectionModifiedDuringEnumeration => GetResourceString("CollectionModifiedDuringEnumeration", "Collection was modified; enumeration operation may not execute."); - - public static string DuplicateKey => GetResourceString("DuplicateKey", - "An element with the same key but a different value already exists. Key: {0}"); - - public static string Arg_KeyNotFoundWithKey => GetResourceString("KeyNotFoundWithKey", - "The key has not found in the dictionary. Key: {0}"); - - public static string Argument_GWithPrecisionNotSupported { get; } - } -} diff --git a/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/System.Private.CoreLib.csproj.txt b/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/System.Private.CoreLib.csproj.txt deleted file mode 100644 index ddd5277b7320..000000000000 --- a/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/System.Private.CoreLib.csproj.txt +++ /dev/null @@ -1,9 +0,0 @@ - - - - netstandard2.0 - latest - enable - - - diff --git a/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/_last_downloaded_source_url.txt b/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/_last_downloaded_source_url.txt deleted file mode 100644 index 9830f289bb17..000000000000 --- a/tracer/src/Datadog.Trace/Vendors/System.Private.CoreLib/_last_downloaded_source_url.txt +++ /dev/null @@ -1 +0,0 @@ -https://github.com/DataDog/dotnet-vendored-code/archive/refs/tags/1.0.0.zip \ No newline at end of file