You've already forked linux-packaging-mono
Imported Upstream version 5.4.0.167
Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
parent
e49d6f06c0
commit
536cd135cc
@@ -20,3 +20,11 @@ Extern aliases:
|
||||
|
||||
* MONO_SECURITY_ALIAS: we're using Mono.Security from the "MonoSecurity" extern alias.
|
||||
|
||||
## How to import new version update
|
||||
|
||||
```
|
||||
wget https://patch-diff.githubusercontent.com/raw/Microsoft/referencesource/pull/{pull-request-number}.patch
|
||||
patch -p1 <{pull-request-number}.patch
|
||||
```
|
||||
|
||||
After that manually review .rej files generated during patching (they are hidden by .gitignore)
|
@@ -839,7 +839,7 @@ namespace System.Activities.Core.Presentation {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to ActivityDelegate arguments don't match. Check your activity configuration to make sure it is in [....] with the declared ActivityDelegate..
|
||||
/// Looks up a localized string similar to ActivityDelegate arguments don't match. Check your activity configuration to make sure it is in sync with the declared ActivityDelegate..
|
||||
/// </summary>
|
||||
internal static string WrongNumberOfArgumentsForActivityDelegate {
|
||||
get {
|
||||
|
@@ -55,7 +55,7 @@ namespace System.Activities.Core.Presentation
|
||||
{
|
||||
morphed.Expression = morphedExpression;
|
||||
}
|
||||
//[....]
|
||||
//Microsoft
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -560,7 +560,7 @@ namespace System.Activities.Presentation
|
||||
}
|
||||
else
|
||||
{
|
||||
//[....]
|
||||
//Microsoft
|
||||
|
||||
entry.Expression = null;
|
||||
}
|
||||
|
@@ -118,7 +118,7 @@ namespace System.Activities.DurableInstancing
|
||||
SqlCommandAsyncResult thisPtr = (SqlCommandAsyncResult) state;
|
||||
try
|
||||
{
|
||||
// this can throw on the [....] path - we need to signal the callback
|
||||
// this can throw on the sync path - we need to signal the callback
|
||||
thisPtr.StartCommandInternal(false);
|
||||
}
|
||||
catch (Exception e)
|
||||
@@ -171,7 +171,7 @@ namespace System.Activities.DurableInstancing
|
||||
this.sqlCommand.Connection.Close();
|
||||
}
|
||||
|
||||
// If we completed [....] then any retry is done by the original caller.
|
||||
// If we completed sync then any retry is done by the original caller.
|
||||
if (!result.CompletedSynchronously)
|
||||
{
|
||||
if (this.CheckRetryCountAndTimer() && ShouldRetryForSqlError(exception.Number, RetryErrorOptions.RetryOnEnd))
|
||||
|
@@ -37,7 +37,6 @@ namespace System.Activities.Debugger
|
||||
|
||||
static Type threadWorkerControllerType = typeof(ThreadWorkerController);
|
||||
static MethodInfo islandWorkerMethodInfo = threadWorkerControllerType.GetMethod("IslandWorker", BindingFlags.Static | BindingFlags.Public);
|
||||
const string Md5Identifier = "406ea660-64cf-4c82-b6f0-42d48172a799";
|
||||
internal const string MethodWithPrimingPrefix = "_";
|
||||
|
||||
List<LogicalThread> threads;
|
||||
@@ -681,7 +680,7 @@ namespace System.Activities.Debugger
|
||||
[SecurityCritical]
|
||||
void InitDynamicModule(string asmName)
|
||||
{
|
||||
// See http://blogs.msdn.com/[....]/archive/2005/02/03/366429.aspx for a simple example
|
||||
// See http://blogs.msdn.com/Microsoft/archive/2005/02/03/366429.aspx for a simple example
|
||||
// of debuggable reflection-emit.
|
||||
Fx.Assert(dynamicModule == null, "can only be initialized once");
|
||||
|
||||
@@ -791,7 +790,7 @@ namespace System.Activities.Debugger
|
||||
|
||||
if (checksumBytes != null)
|
||||
{
|
||||
documentWriter.SetCheckSum(new Guid(Md5Identifier), checksumBytes);
|
||||
documentWriter.SetCheckSum(SymbolHelper.ChecksumProviderId, checksumBytes);
|
||||
}
|
||||
}
|
||||
return documentWriter;
|
||||
|
@@ -14,6 +14,24 @@ namespace System.Activities.Debugger.Symbol
|
||||
|
||||
internal static class SymbolHelper
|
||||
{
|
||||
static readonly Guid Md5IdentifierGuid = new Guid("406ea660-64cf-4c82-b6f0-42d48172a799");
|
||||
static readonly Guid Sha1IdentifierGuid = new Guid("ff1816ec-aa5e-4d10-87f7-6f4963833460");
|
||||
|
||||
public static Guid ChecksumProviderId
|
||||
{
|
||||
get
|
||||
{
|
||||
if (LocalAppContextSwitches.UseMD5ForWFDebugger)
|
||||
{
|
||||
return Md5IdentifierGuid;
|
||||
}
|
||||
else
|
||||
{
|
||||
return Sha1IdentifierGuid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// This is the same Encode/Decode logic as the WCF FramingEncoder
|
||||
public static int ReadEncodedInt32(BinaryReader reader)
|
||||
{
|
||||
@@ -61,8 +79,6 @@ namespace System.Activities.Debugger.Symbol
|
||||
return count;
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Cryptographic.Standard", "CA5350:MD5CannotBeUsed",
|
||||
Justification = "Design has been approved. We are not using MD5 for any security or cryptography purposes but rather as a hash.")]
|
||||
public static byte[] CalculateChecksum(string fileName)
|
||||
{
|
||||
Fx.Assert(!string.IsNullOrEmpty(fileName), "fileName should not be empty or null");
|
||||
@@ -71,8 +87,10 @@ namespace System.Activities.Debugger.Symbol
|
||||
{
|
||||
using (StreamReader streamReader = new StreamReader(fileName))
|
||||
{
|
||||
MD5 md5 = new MD5CryptoServiceProvider();
|
||||
checksum = md5.ComputeHash(streamReader.BaseStream);
|
||||
using (HashAlgorithm hashAlgorithm = CreateHashProvider())
|
||||
{
|
||||
checksum = hashAlgorithm.ComputeHash(streamReader.BaseStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IOException)
|
||||
@@ -108,7 +126,28 @@ namespace System.Activities.Debugger.Symbol
|
||||
internal static bool ValidateChecksum(byte[] checksumToValidate)
|
||||
{
|
||||
// We are using MD5.ComputeHash, which will return a 16 byte array.
|
||||
return checksumToValidate.Length == 16;
|
||||
if (LocalAppContextSwitches.UseMD5ForWFDebugger)
|
||||
{
|
||||
return checksumToValidate.Length == 16;
|
||||
}
|
||||
else
|
||||
{
|
||||
return checksumToValidate.Length == 20;
|
||||
}
|
||||
}
|
||||
|
||||
[SuppressMessage("Microsoft.Cryptographic.Standard", "CA5350:MD5CannotBeUsed",
|
||||
Justification = "Design has been approved. We are not using MD5 for any security or cryptography purposes but rather as a hash.")]
|
||||
static HashAlgorithm CreateHashProvider()
|
||||
{
|
||||
if (LocalAppContextSwitches.UseMD5ForWFDebugger)
|
||||
{
|
||||
return new MD5CryptoServiceProvider();
|
||||
}
|
||||
else
|
||||
{
|
||||
return new SHA1CryptoServiceProvider();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
b9cf8fe7e52450ceff6d1c34154cba802c4c505e
|
||||
417960427bfc30cc142d10ff973cd735255bf300
|
@@ -599,7 +599,7 @@ namespace System.Activities.Runtime
|
||||
}
|
||||
|
||||
// We need to null this out once we've recreated the dictionary to avoid
|
||||
// having out of [....] data
|
||||
// having out of sync data
|
||||
this.rawDeserializedLists = null;
|
||||
|
||||
// then walk our instance list, fixup parent references, and perform basic validation
|
||||
|
@@ -114,12 +114,12 @@ namespace System.Activities.Statements
|
||||
}
|
||||
}
|
||||
|
||||
return BeginMakeMethodCall(context, targetInstance, callback, state); // defer to concrete instance for [....]/async variations
|
||||
return BeginMakeMethodCall(context, targetInstance, callback, state); // defer to concrete instance for sync/async variations
|
||||
}
|
||||
|
||||
public void EndExecuteMethod(AsyncCodeActivityContext context, IAsyncResult result)
|
||||
{
|
||||
EndMakeMethodCall(context, result); // defer to concrete instance for [....]/async variations
|
||||
EndMakeMethodCall(context, result); // defer to concrete instance for sync/async variations
|
||||
}
|
||||
|
||||
[SuppressMessage("Reliability", "Reliability108:IsFatalRule",
|
||||
|
@@ -355,7 +355,7 @@ namespace System.Activities.Statements
|
||||
{
|
||||
return null;
|
||||
}
|
||||
else // For a regular [....] method, ambiguity is distinct from no match and gets an explicit error message
|
||||
else // For a regular sync method, ambiguity is distinct from no match and gets an explicit error message
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
@@ -1 +1 @@
|
||||
ff9b74d7295d3a52cf91057ee647d184edec0c5e
|
||||
952c17975ba5a0c0d5e525db02d26f5ee47de911
|
@@ -74,7 +74,7 @@ namespace System.Activities
|
||||
{
|
||||
// In the interest of allocating less objects we don't implement
|
||||
// the full async pattern here. Instead, we've flattened it to
|
||||
// do the [....] part and then optionally delegate down to the inner
|
||||
// do the sync part and then optionally delegate down to the inner
|
||||
// BeginCommit.
|
||||
|
||||
if (this.contextOwnedTransaction != null)
|
||||
|
@@ -0,0 +1,291 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="AssociatedMetadataTypeTypeDescriptor_MetadataTypeContainsUnknownProperties" xml:space="preserve">
|
||||
<value>The associated metadata type for type '{0}' contains the following unknown properties or fields: {1}. Please make sure that the names of these members match the names of the properties on the main type.</value>
|
||||
</data>
|
||||
<data name="AttributeStore_Type_Must_Be_Public" xml:space="preserve">
|
||||
<value>The type '{0}' must be public.</value>
|
||||
</data>
|
||||
<data name="AttributeStore_Unknown_Method" xml:space="preserve">
|
||||
<value>The type '{0}' does not contain a public method named '{1}'.</value>
|
||||
</data>
|
||||
<data name="AttributeStore_Unknown_Property" xml:space="preserve">
|
||||
<value>The type '{0}' does not contain a public property named '{1}'.</value>
|
||||
</data>
|
||||
<data name="CustomValidationAttribute_Method_Must_Return_ValidationResult" xml:space="preserve">
|
||||
<value>The CustomValidationAttribute method '{0}' in type '{1}' must return System.ComponentModel.DataAnnotations.ValidationResult. Use System.ComponentModel.DataAnnotations.ValidationResult.Success to represent success.</value>
|
||||
</data>
|
||||
<data name="CustomValidationAttribute_Method_Not_Found" xml:space="preserve">
|
||||
<value>The CustomValidationAttribute method '{0}' does not exist in type '{1}' or is not public and static.</value>
|
||||
</data>
|
||||
<data name="CustomValidationAttribute_Method_Required" xml:space="preserve">
|
||||
<value>The CustomValidationAttribute.Method was not specified.</value>
|
||||
</data>
|
||||
<data name="CustomValidationAttribute_Method_Signature" xml:space="preserve">
|
||||
<value>The CustomValidationAttribute method '{0}' in type '{1}' must match the expected signature: public static ValidationResult {0}(object value, ValidationContext context). The value can be strongly typed. The ValidationContext parameter is optional.</value>
|
||||
</data>
|
||||
<data name="CustomValidationAttribute_Type_Must_Be_Public" xml:space="preserve">
|
||||
<value>The custom validation type '{0}' must be public.</value>
|
||||
</data>
|
||||
<data name="CustomValidationAttribute_ValidationError" xml:space="preserve">
|
||||
<value>{0} is not valid.</value>
|
||||
</data>
|
||||
<data name="CustomValidationAttribute_ValidatorType_Required" xml:space="preserve">
|
||||
<value>The CustomValidationAttribute.ValidatorType was not specified.</value>
|
||||
</data>
|
||||
<data name="DataTypeAttribute_EmptyDataTypeString" xml:space="preserve">
|
||||
<value>The custom DataType string cannot be null or empty.</value>
|
||||
</data>
|
||||
<data name="LocalizableString_LocalizationFailed" xml:space="preserve">
|
||||
<value>Cannot retrieve property '{0}' because localization failed. Type '{1}' is not public or does not contain a public static string property with the name '{2}'.</value>
|
||||
</data>
|
||||
<data name="Validator_Property_Value_Wrong_Type" xml:space="preserve">
|
||||
<value>The value for property '{0}' must be of type '{1}'.</value>
|
||||
</data>
|
||||
<data name="RangeAttribute_ArbitraryTypeNotIComparable" xml:space="preserve">
|
||||
<value>The type {0} must implement {1}.</value>
|
||||
</data>
|
||||
<data name="RangeAttribute_MinGreaterThanMax" xml:space="preserve">
|
||||
<value>The maximum value '{0}' must be greater than or equal to the minimum value '{1}'.</value>
|
||||
</data>
|
||||
<data name="RangeAttribute_Must_Set_Min_And_Max" xml:space="preserve">
|
||||
<value>The minimum and maximum values must be set.</value>
|
||||
</data>
|
||||
<data name="RangeAttribute_Must_Set_Operand_Type" xml:space="preserve">
|
||||
<value>The OperandType must be set when strings are used for minimum and maximum values.</value>
|
||||
</data>
|
||||
<data name="RangeAttribute_ValidationError" xml:space="preserve">
|
||||
<value>The field {0} must be between {1} and {2}.</value>
|
||||
</data>
|
||||
<data name="RegexAttribute_ValidationError" xml:space="preserve">
|
||||
<value>The field {0} must match the regular expression '{1}'.</value>
|
||||
</data>
|
||||
<data name="RegularExpressionAttribute_Empty_Pattern" xml:space="preserve">
|
||||
<value>The pattern must be set to a valid regular expression.</value>
|
||||
</data>
|
||||
<data name="RequiredAttribute_ValidationError" xml:space="preserve">
|
||||
<value>The {0} field is required.</value>
|
||||
</data>
|
||||
<data name="StringLengthAttribute_InvalidMaxLength" xml:space="preserve">
|
||||
<value>The maximum length must be a nonnegative integer.</value>
|
||||
</data>
|
||||
<data name="StringLengthAttribute_ValidationError" xml:space="preserve">
|
||||
<value>The field {0} must be a string with a maximum length of {1}.</value>
|
||||
</data>
|
||||
<data name="UIHintImplementation_ControlParameterKeyIsNotAString" xml:space="preserve">
|
||||
<value>The key parameter at position {0} with value '{1}' is not a string. Every key control parameter must be a string.</value>
|
||||
</data>
|
||||
<data name="UIHintImplementation_ControlParameterKeyIsNull" xml:space="preserve">
|
||||
<value>The key parameter at position {0} is null. Every key control parameter must be a string.</value>
|
||||
</data>
|
||||
<data name="UIHintImplementation_NeedEvenNumberOfControlParameters" xml:space="preserve">
|
||||
<value>The number of control parameters must be even.</value>
|
||||
</data>
|
||||
<data name="UIHintImplementation_ControlParameterKeyOccursMoreThanOnce" xml:space="preserve">
|
||||
<value>The key parameter at position {0} with value '{1}' occurs more than once.</value>
|
||||
</data>
|
||||
<data name="ValidationAttribute_Cannot_Set_ErrorMessage_And_Resource" xml:space="preserve">
|
||||
<value>Either ErrorMessageString or ErrorMessageResourceName must be set, but not both.</value>
|
||||
</data>
|
||||
<data name="ValidationAttribute_NeedBothResourceTypeAndResourceName" xml:space="preserve">
|
||||
<value>Both ErrorMessageResourceType and ErrorMessageResourceName need to be set on this attribute.</value>
|
||||
</data>
|
||||
<data name="ValidationAttribute_ResourcePropertyNotStringType" xml:space="preserve">
|
||||
<value>The property '{0}' on resource type '{1}' is not a string type.</value>
|
||||
</data>
|
||||
<data name="ValidationAttribute_ResourceTypeDoesNotHaveProperty" xml:space="preserve">
|
||||
<value>The resource type '{0}' does not have an accessible static property named '{1}'.</value>
|
||||
</data>
|
||||
<data name="ValidationAttribute_ValidationError" xml:space="preserve">
|
||||
<value>The field {0} is invalid.</value>
|
||||
</data>
|
||||
<data name="ValidationContext_Must_Be_Method" xml:space="preserve">
|
||||
<value>The ValidationContext for the type '{0}', member name '{1}' must provide the MethodInfo.</value>
|
||||
</data>
|
||||
<data name="EnumDataTypeAttribute_TypeNeedsToBeAnEnum" xml:space="preserve">
|
||||
<value>The type '{0}' needs to represent an enumeration type.</value>
|
||||
</data>
|
||||
<data name="EnumDataTypeAttribute_TypeCannotBeNull" xml:space="preserve">
|
||||
<value>The type provided for EnumDataTypeAttribute cannot be null.</value>
|
||||
</data>
|
||||
<data name="MetadataTypeAttribute_TypeCannotBeNull" xml:space="preserve">
|
||||
<value>MetadataClassType cannot be null.</value>
|
||||
</data>
|
||||
<data name="DisplayAttribute_PropertyNotSet" xml:space="preserve">
|
||||
<value>The {0} property has not been set. Use the {1} method to get the value.</value>
|
||||
</data>
|
||||
<data name="ValidationContextServiceContainer_ItemAlreadyExists" xml:space="preserve">
|
||||
<value>A service of type '{0}' already exists in the container.</value>
|
||||
</data>
|
||||
<data name="Validator_InstanceMustMatchValidationContextInstance" xml:space="preserve">
|
||||
<value>The instance provided must match the ObjectInstance on the ValidationContext supplied.</value>
|
||||
</data>
|
||||
<data name="ValidationAttribute_IsValid_NotImplemented" xml:space="preserve">
|
||||
<value>IsValid(object value) has not been implemented by this class. The preferred entry point is GetValidationResult() and classes should override IsValid(object value, ValidationContext context).</value>
|
||||
</data>
|
||||
<data name="CustomValidationAttribute_Type_Conversion_Failed" xml:space="preserve">
|
||||
<value>Could not convert the value of type '{0}' to '{1}' as expected by method {2}.{3}.</value>
|
||||
</data>
|
||||
<data name="StringLengthAttribute_ValidationErrorIncludingMinimum" xml:space="preserve">
|
||||
<value>The field {0} must be a string with a minimum length of {2} and a maximum length of {1}.</value>
|
||||
</data>
|
||||
<data name="CreditCardAttribute_Invalid" xml:space="preserve">
|
||||
<value>The {0} field is not a valid credit card number.</value>
|
||||
</data>
|
||||
<data name="EmailAddressAttribute_Invalid" xml:space="preserve">
|
||||
<value>The {0} field is not a valid e-mail address.</value>
|
||||
</data>
|
||||
<data name="FileExtensionsAttribute_Invalid" xml:space="preserve">
|
||||
<value>The {0} field only accepts files with the following extensions: {1}</value>
|
||||
</data>
|
||||
<data name="UrlAttribute_Invalid" xml:space="preserve">
|
||||
<value>The {0} field is not a valid fully-qualified http, https, or ftp URL.</value>
|
||||
</data>
|
||||
<data name="CompareAttribute_MustMatch" xml:space="preserve">
|
||||
<value>'{0}' and '{1}' do not match.</value>
|
||||
</data>
|
||||
<data name="Common_NullOrEmpty" xml:space="preserve">
|
||||
<value>Value cannot be null or empty.</value>
|
||||
</data>
|
||||
<data name="CompareAttribute_UnknownProperty" xml:space="preserve">
|
||||
<value>Could not find a property named {0}.</value>
|
||||
</data>
|
||||
<data name="Common_PropertyNotFound" xml:space="preserve">
|
||||
<value>The property {0}.{1} could not be found.</value>
|
||||
</data>
|
||||
<data name="PhoneAttribute_Invalid" xml:space="preserve">
|
||||
<value>The {0} field is not a valid phone number.</value>
|
||||
</data>
|
||||
<data name="MaxLengthAttribute_InvalidMaxLength" xml:space="preserve">
|
||||
<value>MaxLengthAttribute must have a Length value that is greater than zero. Use MaxLength() without parameters to indicate that the string or array can have the maximum allowable length.</value>
|
||||
</data>
|
||||
<data name="MaxLengthAttribute_ValidationError" xml:space="preserve">
|
||||
<value>The field {0} must be a string or array type with a maximum length of '{1}'.</value>
|
||||
</data>
|
||||
<data name="MinLengthAttribute_InvalidMinLength" xml:space="preserve">
|
||||
<value>MinLengthAttribute must have a Length value that is zero or greater.</value>
|
||||
</data>
|
||||
<data name="MinLengthAttribute_ValidationError" xml:space="preserve">
|
||||
<value>The field {0} must be a string or array type with a minimum length of '{1}'.</value>
|
||||
</data>
|
||||
<data name="ArgumentIsNullOrWhitespace" xml:space="preserve">
|
||||
<value>The argument '{0}' cannot be null, empty or contain only white space.</value>
|
||||
</data>
|
||||
</root>
|
@@ -0,0 +1,16 @@
|
||||
; NOTE: don't use \", use ' instead
|
||||
; NOTE: don't use #, use ; instead for comments
|
||||
; NOTE: leave the [strings] alone
|
||||
|
||||
MaxLengthAttribute_ValidationError=The field {0} must be a string or array type with a maximum length of '{1}'.
|
||||
|
||||
## ExceptionType=InvalidOperationException
|
||||
MaxLengthAttribute_InvalidMaxLength=MaxLengthAttribute must have a Length value that is greater than zero. Use MaxLength() without parameters to indicate that the string or array can have the maximum allowable length.
|
||||
|
||||
MinLengthAttribute_ValidationError=The field {0} must be a string or array type with a minimum length of '{1}'.
|
||||
|
||||
## ExceptionType=InvalidOperationException
|
||||
MinLengthAttribute_InvalidMinLength=MinLengthAttribute must have a Length value that is zero or greater.
|
||||
|
||||
## ExceptionType=ArgumentException
|
||||
ArgumentIsNullOrWhitespace=The argument '{0}' cannot be null, empty or contain only white space.
|
@@ -1 +1 @@
|
||||
c378f1d68b1844752e4d0e3355a78cd210a1c01c
|
||||
4b30c4caffe091787335adcea178360bfdd89f5a
|
@@ -69,7 +69,7 @@ namespace System.Configuration.Internal {
|
||||
[SuppressMessage("Microsoft.Security", "CA2106:SecureAsserts", Justification = "The callers don't leak this information.")]
|
||||
static internal string StaticGetStreamNameForConfigSource(string streamName, string configSource) {
|
||||
//
|
||||
// Note ([....] 7/08/05):
|
||||
// Note (Microsoft 7/08/05):
|
||||
// RemoteWebConfigurationHost also redirects GetStreamNameForConfigSource to this
|
||||
// method, and that means streamName is referring to a path that's on the remote
|
||||
// machine. The problem is that Path.GetFullPath will demand FileIOPermission on
|
||||
|
@@ -1 +1 @@
|
||||
748bf3a8adf0821c975ec36c1ccbff9159155f05
|
||||
f3ec52b9de8334b4d7e7adc40b9aaf60dc3d3b35
|
@@ -263,7 +263,7 @@ namespace Microsoft.Win32.SafeHandles {
|
||||
T duplicate = new T();
|
||||
|
||||
// We need to do this operation in a CER in order to ensure that everybody's state stays consistent
|
||||
// with the current view of the world. If the state of the various handles gets out of [....], then
|
||||
// with the current view of the world. If the state of the various handles gets out of sync, then
|
||||
// we'll end up leaking since reference counts will not be set up properly.
|
||||
RuntimeHelpers.PrepareConstrainedRegions();
|
||||
try { }
|
||||
|
@@ -96,6 +96,7 @@ IO_IO_SharingViolation_File=The process cannot access the file '{0}' because it
|
||||
IO_IO_SharingViolation_NoFileName=The process cannot access the file because it is being used by another process.
|
||||
IO_IO_PipeBroken=Pipe is broken.
|
||||
IO_IO_InvalidPipeHandle=Invalid pipe handle.
|
||||
IO_OperationAborted=IO operation was aborted unexpectedly.
|
||||
;
|
||||
; DirectoryNotFoundException
|
||||
;
|
||||
@@ -382,3 +383,37 @@ NotSupported_MMViewStreamsFixedLength=MemoryMappedViewStreams are fixed length.
|
||||
ObjectDisposed_ViewAccessorClosed=Cannot access a closed accessor.
|
||||
ObjectDisposed_StreamIsClosed=Cannot access a closed Stream.
|
||||
|
||||
;
|
||||
; 4.6.x string (only add at the end)
|
||||
;
|
||||
NotSupported_Method=Method not supported.
|
||||
NotSupported_SubclassOverride=Method not supported. Derived class must override.
|
||||
Cryptography_ArgDSARequiresDSAKey=Keys used with the DSACng algorithm must have an algorithm group of DSA.
|
||||
Cryptography_ArgRSAaRequiresRSAKey=Keys used with the RSACng algorithm must have an algorithm group of RSA.
|
||||
Cryptography_CngKeyWrongAlgorithm=This key is for algorithm '{0}'. Expected '{1}'.
|
||||
Cryptography_DSA_HashTooShort=The supplied hash cannot be shorter in length than the DSA key's Q value.
|
||||
Cryptography_HashAlgorithmNameNullOrEmpty=The hash algorithm name cannot be null or empty.
|
||||
Cryptography_InvalidDsaParameters_MissingFields=The specified DSA parameters are not valid; P, Q, G and Y are all required.
|
||||
Cryptography_InvalidDsaParameters_MismatchedPGY=The specified DSA parameters are not valid; P, G and Y must be the same length (the key size).
|
||||
Cryptography_InvalidDsaParameters_MismatchedQX=The specified DSA parameters are not valid; Q and X (if present) must be the same length.
|
||||
Cryptography_InvalidDsaParameters_MismatchedPJ=The specified DSA parameters are not valid; J (if present) must be shorter than P.
|
||||
Cryptography_InvalidDsaParameters_SeedRestriction_ShortKey=The specified DSA parameters are not valid; Seed, if present, must be 20 bytes long for keys shorter than 1024 bits.
|
||||
Cryptography_InvalidDsaParameters_QRestriction_ShortKey=The specified DSA parameters are not valid; Q must be 20 bytes long for keys shorter than 1024 bits.
|
||||
Cryptography_InvalidDsaParameters_QRestriction_LargeKey=The specified DSA parameters are not valid; Q's length must be one of 20, 32 or 64 bytes.
|
||||
Cryptography_InvalidRsaParameters=The specified RSA parameters are not valid; both Exponent and Modulus are required fields.
|
||||
Cryptography_InvalidSignatureAlgorithm=The hash algorithm is not supported for signatures. Only MD5, SHA1, SHA256,SHA384, and SHA512 are supported at this time.
|
||||
Cryptography_KeyBlobParsingError=Key Blob not in expected format.
|
||||
Cryptography_NotSupportedKeyAlgorithm=Key Algorithm is not supported.
|
||||
Cryptography_NotValidPublicOrPrivateKey=Key is not a valid public or private key.
|
||||
Cryptography_NotValidPrivateKey=Key is not a valid private key.
|
||||
Cryptography_UnexpectedTransformTruncation=CNG provider unexpectedly terminated encryption or decryption prematurely.
|
||||
Cryptography_UnsupportedPaddingMode=The specified PaddingMode is not supported.
|
||||
Cryptography_WeakKey=Specified key is a known weak key for this algorithm and cannot be used.
|
||||
Cryptography_CurveNotSupported=The specified curve '{0}' or its parameters are not valid for this platform.
|
||||
Cryptography_InvalidCurve=The specified curve '{0}' is not valid for this platform.
|
||||
Cryptography_InvalidCurveOid=The specified Oid is not valid. The Oid.FriendlyName or Oid.Value property must be set.
|
||||
Cryptography_InvalidCurveKeyParameters=The specified key parameters are not valid. Q.X and Q.Y are required fields. Q.X, Q.Y must be the same length. If D is specified it must be the same length as Q.X and Q.Y for named curves or the same length as Order for explicit curves.
|
||||
Cryptography_InvalidECCharacteristic2Curve=The specified Characteristic2 curve parameters are not valid. Polynomial, A, B, G.X, G.Y, and Order are required. A, B, G.X, G.Y must be the same length, and the same length as Q.X, Q.Y and D if those are specified. Seed, Cofactor and Hash are optional. Other parameters are not allowed.
|
||||
Cryptography_InvalidECPrimeCurve=The specified prime curve parameters are not valid. Prime, A, B, G.X, G.Y and Order are required and must be the same length, and the same length as Q.X, Q.Y and D if those are specified. Seed, Cofactor and Hash are optional. Other parameters are not allowed.
|
||||
Cryptography_InvalidECNamedCurve=The specified named curve parameters are not valid. Only the Oid parameter must be set.
|
||||
Cryptography_UnknownHashAlgorithm='{0}' is not a known hash algorithm.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user