Spelling comments (#2066)

* spelling: comments in src/Microsoft.Management.Infrastructure.CimCmdlets

* spelling: comments in src/Microsoft.PackageManagement.ArchiverProviders

* spelling: comments in src/Microsoft.PackageManagement.CoreProviders

* spelling: comments in src/Microsoft.PackageManagement.MetaProvider.PowerShell

* spelling: comments in src/Microsoft.PackageManagement.MsiProvider

* spelling: comments in src/Microsoft.PackageManagement.MsuProvider

* spelling: comments in src/Microsoft.PackageManagement.NuGetProvider

* spelling: comments in src/Microsoft.PackageManagement.PackageSourceListProvider

* spelling: comments in src/Microsoft.PackageManagement

* spelling: comments in src/Microsoft.PowerShell.Activities

* spelling: comments in src/Microsoft.PowerShell.Commands.Diagnostics

* spelling: comments in src/Microsoft.PowerShell.Commands.Management

* spelling: comments in src/Microsoft.PowerShell.Commands.Utility

* spelling: comments in src/Microsoft.PowerShell.ConsoleHost

* spelling: comments in src/Microsoft.PowerShell.Core.Activities

* spelling: comments in src/Microsoft.PowerShell.CoreCLR.AssemblyLoadContext

* spelling: comments in src/Microsoft.PowerShell.CoreCLR.Eventing

* spelling: comments in src/Microsoft.PowerShell.Diagnostics.Activities

* spelling: comments in src/Microsoft.PowerShell.GraphicalHost

* spelling: comments in src/Microsoft.PowerShell.LocalAccounts

* spelling: comments in src/Microsoft.PowerShell.Management.Activities

* spelling: comments in src/Microsoft.PowerShell.PSReadLine

* spelling: comments in src/Microsoft.PowerShell.PackageManagement

* spelling: comments in src/Microsoft.PowerShell.ScheduledJob

* spelling: comments in src/Microsoft.PowerShell.Security.Activities

* spelling: comments in src/Microsoft.PowerShell.Security

* spelling: comments in src/Microsoft.PowerShell.Utility.Activities

* spelling: comments in src/Microsoft.PowerShell.Workflow.ServiceCore

* spelling: comments in src/Microsoft.WSMan.Management.Activities

* spelling: comments in src/Modules

* spelling: comments in src/Schemas

* spelling: comments in src/libpsl-native

* spelling: comments in src/powershell-native

* spelling: comments in build.psm1

* spelling: comments in src/System.Management.Automation/CoreCLR

* spelling: comments in src/System.Management.Automation/DscSupport

* spelling: comments in src/System.Management.Automation/cimSupport

* spelling: comments in src/System.Management.Automation/commands

* spelling: comments in src/System.Management.Automation/engine/Modules
This commit is contained in:
Josh Soref 2016-08-26 16:46:03 -04:00 committed by Jason Shirk
parent e4f3f8fd69
commit eb3fd7ae6c
532 changed files with 1091 additions and 1091 deletions

View file

@ -43,7 +43,7 @@ function Start-PSBuild {
[switch]$TypeGen,
[switch]$Clean,
# this switch will re-build only System.Mangement.Automation.dll
# this switch will re-build only System.Management.Automation.dll
# it's useful for development, to do a quick changes in the engine
[switch]$SMAOnly,
@ -1254,7 +1254,7 @@ function Copy-MappedFiles {
throw "$pslMonadRoot is not a valid folder"
}
# Do some intelligens to prevent shouting us in the foot with CL management
# Do some intelligence to prevent shooting us in the foot with CL management
# finding base-line CL
$cl = git --git-dir="$PSScriptRoot/.git" tag | % {if ($_ -match 'SD.(\d+)$') {[int]$Matches[1]} } | Sort-Object -Descending | Select-Object -First 1
@ -1360,7 +1360,7 @@ function Get-Mappings
<#
.EXAMPLE Send-GitDiffToSd -diffArg1 32b90c048aa0c5bc8e67f96a98ea01c728c4a5be~1 -diffArg2 32b90c048aa0c5bc8e67f96a98ea01c728c4a5be -AdminRoot d:\e\ps_dev\admin
Apply a signle commit to admin folder
Apply a single commit to admin folder
#>
function Send-GitDiffToSd {
param(
@ -1633,7 +1633,7 @@ function script:Use-MSBuild {
function script:log([string]$message) {
Write-Host -Foreground Green $message
#reset colors for older package to at return to default after error message on a compiliation error
#reset colors for older package to at return to default after error message on a compilation error
[console]::ResetColor()
}
@ -1706,7 +1706,7 @@ function script:Start-NativeExecution([scriptblock]$sb)
$script:ErrorActionPreference = "Continue"
try {
& $sb
# note, if $sb doens't have a native invocation, $LASTEXITCODE will
# note, if $sb doesn't have a native invocation, $LASTEXITCODE will
# point to the obsolete value
if ($LASTEXITCODE -ne 0) {
throw "Execution of {$sb} failed with exit code $LASTEXITCODE"

View file

@ -454,7 +454,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
Dispose(true);
// This object will be cleaned up by the Dispose method.
// Therefore, you should call GC.SupressFinalize to
// Therefore, you should call GC.SuppressFinalize to
// take this object off the finalization queue
// and prevent finalization code for this object
// from executing a second time.
@ -553,7 +553,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// The following is the definition of action queue.
/// The queue holding all actions to be exected in the context of either
/// The queue holding all actions to be executed in the context of either
/// ProcessRecord or EndProcessing.
/// </summary>
private ConcurrentQueue<CimBaseAction> actionQueue;

View file

@ -27,7 +27,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Execute the write opration to given cmdlet object
/// Execute the write operation to given cmdlet object
/// </para>
/// </summary>
/// <param name="cmdlet">
@ -42,7 +42,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <para>
/// <see cref="XOperationContextBase"/> object that related to current action.
/// It may used by action, such as <see cref="CimWriteResultObject"/>,
/// since later on action may require namspace, and proxy object to reuse
/// since later on action may require namespace, and proxy object to reuse
/// <see cref="CimSession"/>, <see cref="CimOperationOptions"/> object.
/// </para>
/// </summary>
@ -152,7 +152,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
Dispose(true);
// This object will be cleaned up by the Dispose method.
// Therefore, you should call GC.SupressFinalize to
// Therefore, you should call GC.SuppressFinalize to
// take this object off the finalization queue
// and prevent finalization code for this object
// from executing a second time.

View file

@ -82,13 +82,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private string _name;
/// <summary>
/// The string defining realy cmdlet name
/// The string defining real cmdlet name
/// </summary>
internal string Value { get { return this._value; } }
private string _value = String.Empty;
/// <summary>
/// The string defining realy cmdlet name
/// The string defining real cmdlet name
/// </summary>
internal ScopedItemOptions Options { get { return this._options; } }
private ScopedItemOptions _options = ScopedItemOptions.AllScope | ScopedItemOptions.ReadOnly;

View file

@ -218,7 +218,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.CloneParameterEntries(parameters, sets);
}
#region Two dictionaryies used to determine the bound parameter set
#region Two dictionaries used to determine the bound parameter set
/// <summary>
/// Define the parameter definition entries,
@ -242,7 +242,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Used to remember the set of parameterset were set
/// if any conflition occurred with current parameter,
/// if any conflict occurred with current parameter,
/// throw exception
/// </para>
/// </summary>
@ -256,14 +256,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Used to remember the set of parameterset were set before begin process
/// if any conflition occurred with current parameter,
/// if any conflict occurred with current parameter,
/// throw exception
/// </para>
/// </summary>
private List<string> parametersetNamesListAtBeginProcess = new List<string>();
/// <summary>
/// Parameter names list befre begin process
/// Parameter names list before begin process
/// </summary>
private List<string> parameterNamesListAtBeginProcess = new List<string>();
@ -594,7 +594,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
Dispose(true);
// This object will be cleaned up by the Dispose method.
// Therefore, you should call GC.SupressFinalize to
// Therefore, you should call GC.SuppressFinalize to
// take this object off the finalization queue
// and prevent finalization code for this object
// from executing a second time.

View file

@ -75,7 +75,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Refactory to be reused by Get-CimInstance;Remove-CimInstance;Set-CimInstance
/// Refactor to be reused by Get-CimInstance;Remove-CimInstance;Set-CimInstance
/// </para>
/// </summary>
/// <param name="cmdlet"></param>

View file

@ -161,7 +161,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <param name="computerName"></param>
/// <param name="nameSpace"></param>
/// <param name="queryExpression"></param>
/// <param name="opreationTimeout"></param>
/// <param name="operationTimeout"></param>
public CimIndicationWatcher(
string computerName,
string theNamespace,
@ -183,7 +183,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <param name="cimSession"></param>
/// <param name="nameSpace"></param>
/// <param name="queryExpression"></param>
/// <param name="opreationTimeout"></param>
/// <param name="operationTimeout"></param>
public CimIndicationWatcher(
CimSession cimSession,
string theNamespace,
@ -226,7 +226,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Hanlder of new subscription result
/// Handler of new subscription result
/// </para>
/// </summary>
/// <param name="src"></param>

View file

@ -49,7 +49,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// <para>namespce</para>
/// <para>namespace</para>
/// </summary>
internal string MethodName
{

View file

@ -112,7 +112,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
/// <summary>
/// <para>
/// New subscritpion result event
/// New subscription result event
/// </para>
/// </summary>
public event EventHandler<CimSubscriptionEventArgs> OnNewSubscriptionResult;
@ -129,7 +129,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Start an indication subsctiption target to the given computer.
/// Start an indication subscription target to the given computer.
/// </summary>
/// <param name="computerName">null stands for localhost</param>
/// <param name="nameSpace"></param>
@ -151,7 +151,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Start an indication subsctiption through a given <see cref="CimSession"/>.
/// Start an indication subscription through a given <see cref="CimSession"/>.
/// </summary>
/// <param name="cimSession">Cannot be null</param>
/// <param name="nameSpace"></param>

View file

@ -59,7 +59,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region AsyncResultEventArgsBase
/// <summary>
/// <para>
/// Base class of asyn result event argument
/// Base class of async result event argument
/// </para>
/// </summary>
internal abstract class AsyncResultEventArgsBase : EventArgs

View file

@ -315,7 +315,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
Dispose(true);
// This object will be cleaned up by the Dispose method.
// Therefore, you should call GC.SupressFinalize to
// Therefore, you should call GC.SuppressFinalize to
// take this object off the finalization queue
// and prevent finalization code for this object
// from executing a second time.
@ -747,7 +747,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <para>
/// Base class of all session operation classes.
/// All sessions created will be held in a ConcurrentDictionary:cimSessions.
/// It manages the lifecyclye of the sessions being created for each
/// It manages the lifecycle of the sessions being created for each
/// runspace according to the state of the runspace.
/// </para>
/// </summary>
@ -893,7 +893,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// <para>namespce</para>
/// <para>namespace</para>
/// </summary>
internal CimSessionWrapper CimSessionWrapper
{
@ -951,7 +951,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
else
{
//CimSession will be retunred as part of TestConnection
//CimSession will be returned as part of TestConnection
this.cimTestSession.TestCimSession(computerName, proxy);
}
}
@ -1049,7 +1049,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
Dispose(true);
// This object will be cleaned up by the Dispose method.
// Therefore, you should call GC.SupressFinalize to
// Therefore, you should call GC.SuppressFinalize to
// take this object off the finalization queue
// and prevent finalization code for this object
// from executing a second time.

View file

@ -27,12 +27,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// context base class for cross operations
/// for example, some cmdlets need to query instance first and then
/// remove instance, those scenarios need context object transferred
/// from one operation to antoher.
/// from one operation to another.
/// </summary>
internal abstract class XOperationContextBase
{
/// <summary>
/// <para>namespce</para>
/// <para>namespace</para>
/// </summary>
internal string Namespace
{
@ -117,7 +117,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
#endregion
#region Preprossessing of result object interface
#region Preprocessing of result object interface
/// <summary>
/// Defines a method to preprocessing an result object before sending to
/// output pipeline.
@ -572,7 +572,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Enable/Disable the methos result streming,
/// Enable/Disable the method result streaming,
/// it is enabled by default.
/// </summary>
public bool EnableMethodResultStreaming
@ -589,7 +589,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Enable/Disable prompt user streming,
/// Enable/Disable prompt user streaming,
/// it is enabled by default.
/// </summary>
public bool EnablePromptUser
@ -691,7 +691,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Add a new opertion to cache.
/// Add a new operation to cache.
/// </summary>
/// <param name="operation"></param>
/// <param name="cancelObject"></param>
@ -835,7 +835,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Write opertion start verbose message
/// Write operation start verbose message
/// </para>
/// </summary>
/// <param name="operation"></param>
@ -1534,7 +1534,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private IObservable<object> operation;
/// <summary>
/// the current opration name
/// the current operation name
/// </summary>
private string operationName;
@ -1544,7 +1544,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private Hashtable operationParameters = new Hashtable();
/// <summary>
/// hanlder used to cancel operation
/// handler used to cancel operation
/// </summary>
private IDisposable _cancelOperation;
@ -1554,7 +1554,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private int _cancelOperationDisposed = 0;
/// <summary>
/// Dispose the cancel opreation
/// Dispose the cancel operation
/// </summary>
private void DisposeCancelOperation()
{
@ -1571,7 +1571,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
/// <summary>
/// Set the cancel opreation
/// Set the cancel operation
/// </summary>
private IDisposable CancelOperation
{
@ -1661,7 +1661,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
Dispose(true);
// This object will be cleaned up by the Dispose method.
// Therefore, you should call GC.SupressFinalize to
// Therefore, you should call GC.SuppressFinalize to
// take this object off the finalization queue
// and prevent finalization code for this object
// from executing a second time.
@ -2143,7 +2143,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
return match;
}
}
DebugHelper.WriteLog("CimClass '{0}' is qulified.", 1, cimClass.CimSystemProperties.ClassName);
DebugHelper.WriteLog("CimClass '{0}' is qualified.", 1, cimClass.CimSystemProperties.ClassName);
return true;
}
#endregion

View file

@ -56,7 +56,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private IDictionary property;
/// <summary>
/// <para>prameter set name</para>
/// <para>parameter set name</para>
/// </summary>
internal string ParameterSetName
{
@ -193,7 +193,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Set the properties value to be modified to the given
/// <see cref="CimInstanace"/>
/// <see cref="CimInstance"/>
/// </para>
/// </summary>
/// <param name="properties"></param>

View file

@ -21,7 +21,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// is called the source instance, via a given association. In an
/// association each instance has a named role, and the same instance can
/// participate in an association in different roles. Hence, the Cmdlet
/// takes SourceRole and AssciatorRole parameters in addition to the
/// takes SourceRole and AssociatorRole parameters in addition to the
/// Association parameter.
/// </para>
/// </summary>

View file

@ -18,7 +18,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <para>
/// Enables the user to enumerate the list of CIM Classes under a specific
/// Namespace. If no list of classes is given, the Cmdlet returns all
/// classes in the given namespce.
/// classes in the given namespace.
/// </para>
/// <para>
/// NOTES: The class instance contains the Namespace properties

View file

@ -392,7 +392,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Get <see cref="CimInvokeCimMethod"/> object, which is
/// used to delegate all Inovke-CimMethod operations.
/// used to delegate all Invoke-CimMethod operations.
/// </para>
/// </summary>
CimInvokeCimMethod GetOperationAgent()

View file

@ -58,7 +58,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region cmdlet parameters
/// <summary>
/// The following is the definition of the input parameter "NoEncruption".
/// The following is the definition of the input parameter "NoEncryption".
/// Switch indicating if WSMan can use no encryption in the given CimSession (there are also global client and server WSMan settings - AllowUnencrypted).
/// </summary>
[Parameter(ParameterSetName = WSManParameterSet)]
@ -154,7 +154,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// The following is the definition of the input parameter "Encoding".
/// Defined the message encoding.
/// The allowed encodings are { Defauolt | Utf8 | Utf16 }. The default value
/// The allowed encodings are { Default | Utf8 | Utf16 }. The default value
/// should be Utf8.
/// </summary>
[Parameter(ValueFromPipelineByPropertyName = true,

View file

@ -245,7 +245,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// <summary>
/// <para>
/// Hanlder to handle unsubcribe event
/// Handler to handle unsubscribe event
/// </para>
/// </summary>
/// <param name="sender"></param>

View file

@ -396,7 +396,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression
/// <param name="newFileInfo">Fresh instance for the same file just
/// read from the archive.</param>
/// <remarks>
/// Subclasses may override this method to refresh sublcass fields.
/// Subclasses may override this method to refresh subclass fields.
/// However they should always call the base implementation first.
/// </remarks>
protected virtual void Refresh(ArchiveFileInfo newFileInfo)

View file

@ -352,7 +352,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression
/// Extracts multiple files from the archive.
/// </summary>
/// <param name="fileNames">A mapping from internal file paths to
/// external file paths. Case-senstivity when matching internal paths
/// external file paths. Case-sensitivity when matching internal paths
/// depends on the IDictionary implementation.</param>
/// <param name="destDirectory">This parameter may be null, but if
/// specified it is the root directory for any relative external paths
@ -372,7 +372,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression
/// Extracts multiple files from the archive.
/// </summary>
/// <param name="fileNames">A mapping from internal file paths to
/// external file paths. Case-senstivity when matching internal
/// external file paths. Case-sensitivity when matching internal
/// paths depends on the IDictionary implementation.</param>
/// <param name="destDirectory">This parameter may be null, but if
/// specified it is the root directory for any relative external

View file

@ -63,7 +63,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression
/// <summary>Status message before beginning the packing or unpacking an archive.</summary>
StartArchive,
/// <summary>Status message (possibly reported multiple times) during the process of packing or unpacking an archiv.</summary>
/// <summary>Status message (possibly reported multiple times) during the process of packing or unpacking an archive.</summary>
PartialArchive,
/// <summary>Status message after completion of the packing or unpacking of an archive.</summary>

View file

@ -157,7 +157,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression.Cab
internal class Handle : SafeHandle
{
/// <summary>
/// Creates a new unintialized handle. The handle will be initialized
/// Creates a new uninitialized handle. The handle will be initialized
/// when it is marshalled back from native code.
/// </summary>
internal Handle()
@ -317,7 +317,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression.Cab
internal class Handle : SafeHandle
{
/// <summary>
/// Creates a new unintialized handle. The handle will be initialized
/// Creates a new uninitialized handle. The handle will be initialized
/// when it is marshalled back from native code.
/// </summary>
internal Handle()

View file

@ -318,7 +318,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression
Predicate<string> fileFilter);
/// <summary>
/// Called by sublcasses to distribute a packing or unpacking progress
/// Called by subclasses to distribute a packing or unpacking progress
/// event to listeners.
/// </summary>
/// <param name="e">Event details.</param>
@ -343,7 +343,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression
}
/// <summary>
/// Compresion utility function for converting old-style
/// Compression utility function for converting old-style
/// date and time values to a DateTime structure.
/// </summary>
public static void DosDateAndTimeToDateTime(
@ -363,7 +363,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression
}
/// <summary>
/// Compresion utility function for converting a DateTime structure
/// Compression utility function for converting a DateTime structure
/// to old-style date and time values.
/// </summary>
public static void DateTimeToDosDateAndTime(

View file

@ -10,7 +10,7 @@
namespace Microsoft.PackageManagement.Archivers.Internal.Compression
{
/// <summary>
/// Specifies the compression level ranging from minimum compresion to
/// Specifies the compression level ranging from minimum compression to
/// maximum compression, or no compression at all.
/// </summary>
/// <remarks>
@ -25,7 +25,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression
/// <summary>Minimum compression; fastest.</summary>
Min = 1,
/// <summary>A compromize between speed and compression efficiency.</summary>
/// <summary>A compromise between speed and compression efficiency.</summary>
Normal = 6,
/// <summary>Maximum compression; slowest.</summary>

View file

@ -14,7 +14,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression.Zip
/// <summary>
/// Used to trick a DeflateStream into reading from or writing to
/// a series of (chunked) streams instead of a single steream.
/// a series of (chunked) streams instead of a single stream.
/// </summary>
internal class ConcatStream : Stream
{
@ -155,7 +155,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression.Zip
#if !CORECLR
/// <summary>
/// Closes underying stream
/// Closes underlying stream
/// </summary>
public override void Close()
{

View file

@ -13,7 +13,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression.Zip
using System.IO;
/// <summary>
/// Wraps a source stream and calcaluates a CRC over all bytes that are read or written.
/// Wraps a source stream and calculates a CRC over all bytes that are read or written.
/// </summary>
/// <remarks>
/// The CRC algorithm matches that used in the standard ZIP file format.
@ -251,7 +251,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression.Zip
}
/// <summary>
/// Reflects the ordering of certain number of bits. For exmample when reflecting
/// Reflects the ordering of certain number of bits. For example when reflecting
/// one byte, bit one is swapped with bit eight, bit two with bit seven, etc.
/// </summary>
private static uint Reflect(uint value, int bits)

View file

@ -66,7 +66,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal.Compression.Zip
}
/// <summary>
/// Registers a delegate that can create a warpper stream for
/// Registers a delegate that can create a wrapper stream for
/// compressing or uncompressing the data of a source stream.
/// </summary>
/// <param name="compressionMethod">Compression method being registered.</param>

View file

@ -71,7 +71,7 @@ namespace Microsoft.PackageManagement.Archivers.Internal {
/// <summary>
/// This is just here as to give us some possibility of knowing when an unexception happens...
/// This is just here as to give us some possibility of knowing when an exception happens...
/// At the very least, we'll write it to the system debug channel, so a developer can find it if they are looking for it.
/// </summary>
public void OnUnhandledException(string methodName, Exception exception) {

View file

@ -173,7 +173,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
var wildcardPattern = new WildcardPattern(name, WildcardOptions);
if (request.GetOptionValue("AllVersions").IsTrue()) {
// Feed.Query() can return an empty provider, so here we need to execlude it by checking p.Name !=null or empty.
// Feed.Query() can return an empty provider, so here we need to exclude it by checking p.Name !=null or empty.
foreach (var p in request.Providers.Distinct(PackageEqualityComparer).Where(p => !string.IsNullOrWhiteSpace(p.Name) && (string.IsNullOrWhiteSpace(name) || wildcardPattern.IsMatch(p.Name)))) {
FindPackage(p.Name, null, "0.0", null, 0, request);
}
@ -245,7 +245,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
request.Debug("Calling '{0}::GetInstalledPackages' '{1}','{2}','{3}','{4}'", PackageProviderName, name, requiredVersion, minimumVersion, maximumVersion);
//search under the providerAssembies folder for the installed providers
//search under the providerAssemblies folder for the installed providers
var providers = PackageManagementService.AllProvidersFromProviderAssembliesLocation(request).Select(providerFileAssembly => {
//get the provider's name\version

View file

@ -130,7 +130,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
if (AdminPrivilege.IsElevated) {
return pms.SystemAssemblyLocation;
} else {
//a user specifies 'AllUsers' that requires Admin provilege. However his console gets launched by non-elevated.
//a user specifies 'AllUsers' that requires Admin privilege. However his console gets launched by non-elevated.
Error(ErrorCategory.InvalidOperation, ErrorCategory.InvalidOperation.ToString(),
PackageManagement.Resources.Messages.InstallRequiresCurrentUserScopeParameterForNonAdminUser, pms.SystemAssemblyLocation, pms.UserAssemblyLocation);
return null;
@ -373,7 +373,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
hashAlgorithm = MD5.Create();
packageHash = fileTag.GetAttribute(Iso19770_2.Hash.Md5);
} else {
//hash alroghtme not supported, we support 512, 256, md5 only
//hash algorithm not supported, we support 512, 256, md5 only
Error(ErrorCategory.InvalidData, "Payload", Constants.Messages.UnsupportedHashAlgorithm, hashtag,
new[] {Iso19770_2.HashAlgorithm.Sha512, Iso19770_2.HashAlgorithm.Sha256, Iso19770_2.HashAlgorithm.Md5}.JoinWithComma());
return false;
@ -484,7 +484,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
return !IsCanceled;
}
//installing a package from bootstrap site needs to prompt a user. Only auto-boostrap is not prompted.
//installing a package from bootstrap site needs to prompt a user. Only auto-bootstrap is not prompted.
var pm = PackageManagementService as PackageManagementService;
string isTrustedSource = pm.InternalPackageManagementInstallOnly ? "false" : "true";
if (AddMetadata(fastPackageReference, "FromTrustedSource", isTrustedSource) == null) {
@ -516,7 +516,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
return null;
}
// support providers with .dll file extention only
// support providers with .dll file extension only
if (!Path.GetExtension(filePath).EqualsIgnoreCase(".dll")) {
if (!suppressErrorsAndWarnings)
{

View file

@ -34,7 +34,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
}
/// <summary>
/// Follows the feed to find all the *declared latest* versions of packgaes
/// Follows the feed to find all the *declared latest* versions of packages
/// </summary>
/// <returns>A set of packages</returns>
internal IEnumerable<Package> Query() {
@ -192,7 +192,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
// and the version is either in the specified range of the link, or there is no specified version.
var packagesByName = Feeds.Where(feedGroup => feedGroup.Any(link => {
if (name.EqualsIgnoreCase(link.Attributes[Iso19770_2.Discovery.Name])) {
// first, ensure that the requested miniumum version is lower than the maximum version found in the feed.
// first, ensure that the requested minimum version is lower than the maximum version found in the feed.
var maxVer = link.Attributes[Iso19770_2.Discovery.MaximumVersion];
if (!string.IsNullOrEmpty(maxVer)) {
// since we don't know the version scheme at this point, so we just have to guess.
@ -202,7 +202,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
}
}
// and then ensure that the requested maximum version is greater than the miniumum version found in the feed.
// and then ensure that the requested maximum version is greater than the minimum version found in the feed.
var minVer = link.Attributes[Iso19770_2.Discovery.MinimumVersion];
if (!string.IsNullOrEmpty(minVer)) {
// since we don't know the version scheme at this point, so we just have to guess.

View file

@ -38,7 +38,7 @@ namespace Microsoft.PackageManagement.Providers.Internal {
/// <summary>
/// Returns the name of the Provider.
/// </summary>
/// <returns>The name of this proivder (uses the constant declared at the top of the class)</returns>
/// <returns>The name of this provider (uses the constant declared at the top of the class)</returns>
public string GetPackageProviderName() {
return ProviderName;
}

View file

@ -112,7 +112,7 @@ namespace Microsoft.PackageManagement.MetaProvider.PowerShell.Internal {
private static string _powershellProviderFunctionsPath;
//The reason of using 'object' instead of' PowerShellPackageProvider' is that PowerShellPackageProvider is a provider
//that is not visiable to the PackageManagment.
//that is not visible to the PackageManagement.
private readonly IDictionary<string, object> _availableProviders = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
private readonly IDictionary<string, List<ProviderItem>> _psProviderCacheTable = new Dictionary<string, List<ProviderItem>>(StringComparer.OrdinalIgnoreCase);
internal const string PowerShellGet = "PowerShellGet";
@ -282,9 +282,9 @@ namespace Microsoft.PackageManagement.MetaProvider.PowerShell.Internal {
private void AddToPowerShellProviderCacheTable(KeyValuePair<string, PSModuleInfo> moduleInfo) {
//some times when PrivateData in a provider's .psd1 meta file contains multiple providers (not recommanded way),
//some times when PrivateData in a provider's .psd1 meta file contains multiple providers (not recommended way),
//they all reside under the same module path. So we extract each file name and add to the table as dictionary key
//to indicate they are actaully different providers.
//to indicate they are actually different providers.
if (moduleInfo.Key != null) {
var name = Path.GetFileNameWithoutExtension(moduleInfo.Key);
if (string.IsNullOrWhiteSpace(name)) {
@ -531,7 +531,7 @@ namespace Microsoft.PackageManagement.MetaProvider.PowerShell.Internal {
var tasks = modules.AsyncForEach(modulePath => AnalyzeModule(request, modulePath.Key, modulePath.Value.Version ?? new Version(0, 0), false, logWarning, modulePath.Value));
tasks.WaitAll();
} else {
//find all providers but only load the lastest if no name nor version exists, e.g. get-pp -list
//find all providers but only load the latest if no name nor version exists, e.g. get-pp -list
//Scan for the all available providers
var results = ScanForModules(request, null, null, null, ProviderOption.AllProvider).ToArray();
@ -692,7 +692,7 @@ namespace Microsoft.PackageManagement.MetaProvider.PowerShell.Internal {
var providerName = provider.GetPackageProviderName();
if (!string.IsNullOrWhiteSpace(providerName)) {
request.Debug(string.Format(CultureInfo.CurrentCulture, Resources.Messages.SuccessfullyLoadedModule, modulePath));
// looks good to me, let's add this to the list of moduels this meta provider can create.
// looks good to me, let's add this to the list of modules this meta provider can create.
var packageProvider = new PackageProvider(provider.As<IPackageProvider>()) {
IsLoaded = true,

View file

@ -141,7 +141,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.L
public TextWriter Log { get; set; }
/// <summary>
/// Gets a queryable table from the datbaase.
/// Gets a queryable table from the database.
/// </summary>
/// <param name="table">name of the table</param>
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]

View file

@ -350,7 +350,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.L
/// <remarks>
/// The record (primary keys) may not already exist in the table.
/// <para>Use <see cref="QTable&lt;TRecord&gt;.NewRecord()"/> to get a new
/// record. Prmary keys and all required fields
/// record. Primary keys and all required fields
/// must be filled in before insertion.</para>
/// </remarks>
public void Insert()
@ -366,7 +366,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.L
/// <remarks>
/// The record (primary keys) may not already exist in the table.
/// <para>Use <see cref="QTable&lt;TRecord&gt;.NewRecord()"/> to get a new
/// record. Prmary keys and all required fields
/// record. Primary keys and all required fields
/// must be filled in before insertion.</para>
/// </remarks>
public void Insert(bool temporary)

View file

@ -48,7 +48,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.P
if(parse.Length == 3)
{
// Syntax was targetshort:sourceshort|targetlong:sourcelong.
// Chnage it to targetshort|targetlong:sourceshort|sourcelong.
// Change it to targetshort|targetlong:sourceshort|sourcelong.
parse = name.Split(new char[] { ':', '|' }, 4);
if(parse.Length == 4)
parse = new string[] { parse[0] + '|' + parse[2], parse[1] + '|' + parse[3] };
@ -634,7 +634,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.P
}
/// <summary>
/// Gets or sets an install path for a direcotry, component, or file key.
/// Gets or sets an install path for a directory, component, or file key.
/// </summary>
/// <param name="key">Depending on the type of InstallPathMap, this is the primary key from the
/// either the Directory, Component, or File table.</param>
@ -679,7 +679,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.P
}
/// <summary>
/// Sets an install path for a direcotry, component, or file key.
/// Sets an install path for a directory, component, or file key.
/// </summary>
/// <param name="key">Depending on the type of InstallPathMap, this is the primary key from the
/// either the Directory, Component, or File table.</param>
@ -707,7 +707,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller.P
}
/// <summary>
/// Tests whether a direcotry, component, or file key exists in the map.
/// Tests whether a directory, component, or file key exists in the map.
/// </summary>
/// <param name="key">Depending on the type of InstallPathMap, this is the primary key from the
/// either the Directory, Component, or File table.</param>

View file

@ -687,7 +687,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
/// <summary>Detects the range of versions including the value in VersionMin.</summary>
VersionMinInclusive = 0x0100,
/// <summary>Dectects the range of versions including the value in VersionMax.</summary>
/// <summary>Detects the range of versions including the value in VersionMax.</summary>
VersionMaxInclusive = 0x0200,
/// <summary>Detects all languages, excluding the languages listed in the Language column.</summary>

View file

@ -89,7 +89,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
private static string GetProductCode(string component, string szUserSid, UserContexts dwContext)
{
// TODO: We really need what would be MsiGetProductCodeEx, or at least a reasonable facimile thereof (something that restricts the search to the context defined by szUserSid & dwContext)
// TODO: We really need what would be MsiGetProductCodeEx, or at least a reasonable facsimile thereof (something that restricts the search to the context defined by szUserSid & dwContext)
return GetProductCode(component);
}
@ -298,7 +298,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
/// <summary>
/// Gets the set of registered qualifiers for the component.
/// </summary>
/// <returns>Enumeration of the qulifiers for the component.</returns>
/// <returns>Enumeration of the qualifiers for the component.</returns>
/// <exception cref="InstallerException">The installer configuration data is corrupt</exception>
/// <remarks><p>
/// Because qualifiers are not ordered, any new qualifier has an arbitrary index,

View file

@ -297,7 +297,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
}
/// <summary>
/// Checks if a method has the right return and paramater types
/// Checks if a method has the right return and parameter types
/// for a custom action, and that it is marked by a CustomActionAttribute.
/// </summary>
/// <param name="method">Method to be checked.</param>

View file

@ -546,7 +546,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
}
/// <summary>
/// Gets a message that describes the merge conflits.
/// Gets a message that describes the merge conflicts.
/// </summary>
public override String Message
{

View file

@ -294,7 +294,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
/// <a href="http://msdn.microsoft.com/library/en-us/msi/setup/msigetfeatureinfo.asp">MsiGetFeatureInfo</a>,
/// <a href="http://msdn.microsoft.com/library/en-us/msi/setup/msisetfeatureattributes.asp">MsiSetFeatureAttributes</a>
/// </p><p>
/// Since the lpAttributes paramter of
/// Since the lpAttributes parameter of
/// <a href="http://msdn.microsoft.com/library/en-us/msi/setup/msigetfeatureinfo.asp">MsiGetFeatureInfo</a>
/// does not contain an equivalent flag for <see cref="FeatureAttributes.UIDisallowAbsent"/>, this flag will
/// not be retrieved.

View file

@ -132,7 +132,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
}
/// <summary>
/// Gets an object that can be used internally for safe syncronization.
/// Gets an object that can be used internally for safe synchronization.
/// </summary>
internal object Sync
{

View file

@ -106,7 +106,7 @@ internal static partial class Installer
/// </summary>
/// <param name="logModes">One or more mode flags specifying the type of messages to log</param>
/// <param name="logFile">Full path to the log file. A null path disables logging,
/// in which case the logModes paraneter is ignored.</param>
/// in which case the logModes parameter is ignored.</param>
/// <exception cref="ArgumentException">an invalid log mode was specified</exception>
/// <remarks>This method takes effect on any new installation processes. Calling this
/// method from within a custom action will not start logging for that installation.</remarks>
@ -121,7 +121,7 @@ internal static partial class Installer
/// </summary>
/// <param name="logModes">One or more mode flags specifying the type of messages to log</param>
/// <param name="logFile">Full path to the log file. A null path disables logging,
/// in which case the logModes paraneter is ignored.</param>
/// in which case the logModes parameter is ignored.</param>
/// <param name="append">If true, the log lines will be appended to any existing file content.
/// If false, the log file will be truncated if it exists. The default is false.</param>
/// <param name="flushEveryLine">If true, the log will be flushed after every line.

View file

@ -27,7 +27,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
{
get
{
// TODO: Use the extended form of version info to get the 4th component of the verison.
// TODO: Use the extended form of version info to get the 4th component of the version.
uint[] dllVersionInfo = new uint[5];
dllVersionInfo[0] = 20;
int hr = NativeMethods.DllGetVersion(dllVersionInfo);

View file

@ -205,7 +205,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
}
/// <summary>
/// Gets a value indicating whether this patch is marked as obsolte.
/// Gets a value indicating whether this patch is marked as obsolete.
/// </summary>
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Obsoleted")]
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]

View file

@ -932,7 +932,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
}
/// <summary>
/// Throws an exception if the custom action is not able to access immedate session details.
/// Throws an exception if the custom action is not able to access immediate session details.
/// </summary>
private void ValidateSessionAccess()
{

View file

@ -139,7 +139,7 @@ namespace Microsoft.PackageManagement.Msi.Internal.Deployment.WindowsInstaller
/// <summary>Gets or sets the Template summary information property.</summary>
/// <remarks><p>
/// The Template summary information propery indicates the platform and language versions supported by the database.
/// The Template summary information property indicates the platform and language versions supported by the database.
/// </p><p>
/// The syntax of the Template Summary property information is:
/// [platform property][,platform property][,...];[language id][,language id][,...]

View file

@ -42,7 +42,7 @@ namespace Microsoft.PackageManagement.Msi.Internal {
/// <summary>
/// Returns the name of the Provider.
/// </summary>
/// <returns>The name of this proivder (uses the constant declared at the top of the class)</returns>
/// <returns>The name of this provider (uses the constant declared at the top of the class)</returns>
public string GetPackageProviderName() {
return ProviderName;
}

View file

@ -43,7 +43,7 @@ namespace Microsoft.PackageManagement.Msu.Internal {
/// <summary>
/// Returns the name of the Provider.
/// </summary>
/// <returns>The name of this proivder (uses the constant declared at the top of the class)</returns>
/// <returns>The name of this provider (uses the constant declared at the top of the class)</returns>
public string GetPackageProviderName() {
return ProviderName;
}

View file

@ -45,10 +45,10 @@
private string _destinationPath = null;
internal Lazy<bool> SkipValidate; //??? Seems to be a design choice. Why let a user to decide?
// we cannot enable skipdepedencies because this will break downlevel psget which sets skipdependencies to true
// we cannot enable skipdependencies because this will break downlevel psget which sets skipdependencies to true
//internal Lazy<bool> SkipDependencies;
//internal ImplictLazy<bool> ContinueOnFailure;
//internal ImplictLazy<bool> FindByCanonicalId;
//internal ImplicitLazy<bool> ContinueOnFailure;
//internal ImplicitLazy<bool> FindByCanonicalId;
private HttpClient _httpClient;
private HttpClient _httpClientWithoutAcceptHeader;
@ -73,8 +73,8 @@
Scope = new Lazy<string>(() => GetOptionValue("Scope"));
//SkipDependencies = new Lazy<bool>(() => GetOptionValue("SkipDependencies").IsTrue());
//ContinueOnFailure = new ImplictLazy<bool>(() => GetOptionValue("ContinueOnFailure").IsTrue());
//FindByCanonicalId = new ImplictLazy<bool>(() => GetOptionValue("FindByCanonicalId").IsTrue());
//ContinueOnFailure = new ImplicitLazy<bool>(() => GetOptionValue("ContinueOnFailure").IsTrue());
//FindByCanonicalId = new ImplicitLazy<bool>(() => GetOptionValue("FindByCanonicalId").IsTrue());
Headers = new Lazy<string[]>(() => (GetOptionValues("Headers") ?? new string[0]).ToArray());
InstalledPackages = new Lazy<PackageBase[]>(() => (GetInstalledPackagesOptionValue()).ToArray());
@ -984,7 +984,7 @@
if (pkgItem != null && pkgItem.IsInstalled)
{
//A user does not provide any package name in the commandeline, return them all
//A user does not provide any package name in the commandline, return them all
if (string.IsNullOrWhiteSpace(name))
{
isDup = true;
@ -1409,7 +1409,7 @@
}
if (AllVersions.Value){
//Display versions from lastest to oldest
//Display versions from latest to oldest
pkgs = (from p in pkgs select p).OrderByDescending(x => x.Version);
}
@ -1605,7 +1605,7 @@
return pkgs;
}
//Tags should be performed as *AND* intead of *OR"
//Tags should be performed as *AND* instead of *OR"
//For example -FilterOnTag:{ "A", "B"}, the returned package should have both A and B.
return pkgs.Where(pkg => FilterOnTag.Value.All(
tagFromUser =>
@ -1681,7 +1681,7 @@
//A sample case will be something like find-package sql*Compact*.
//When the AllVersions property exists, the query like the following containing the wildcards does not work. We need to remove the wild cards and
//replace it with the longest string searhc.
//replace it with the longest string search.
//http://www.powershellgallery.com/api/v2/Search()?$orderby=DownloadCount%20desc,Id&searchTerm='tsdprovi*'&targetFramework=''&includePrerelease=false
if ((!String.IsNullOrWhiteSpace(name) && source.Location.IndexOf("powershellgallery.com", StringComparison.OrdinalIgnoreCase) == -1)
@ -1714,7 +1714,7 @@
if (!String.IsNullOrWhiteSpace(name))
{
//Filter on the results. This is needed because we replace [...] regex in the searchterm at the begining of this method.
//Filter on the results. This is needed because we replace [...] regex in the searchterm at the beginning of this method.
pkgs = FilterOnName(pkgs, name, isNameContainsWildCard);
}

View file

@ -130,7 +130,7 @@
}
}
//Comparer for packges using version and id
//Comparer for packages using version and id
internal class PackageItemComparer : IEqualityComparer<PackageItem>
{
public bool Equals(PackageItem packageOne, PackageItem packageTwo)

View file

@ -100,7 +100,7 @@
//Usually versions has a limited number, ToArray should be ok.
var versions = version.GetComparableVersionStrings().ToArray();
//Will only enumerate oackages once
//Will only enumerate packages once
return packages.FirstOrDefault(package => packageId.Equals(package.Id, StringComparison.OrdinalIgnoreCase) && versions.Contains(package.Version,StringComparer.OrdinalIgnoreCase));
}

View file

@ -345,7 +345,7 @@
return packages;
}
//return the lastest version
//return the latest version
return packages.GroupBy(p => p.Id).Select(each => each.OrderByDescending(pp => pp.Version).FirstOrDefault());
}

View file

@ -13,7 +13,7 @@ namespace Microsoft.PackageManagement.NuGetProvider
//private Dictionary<string, string[]> _options;
private string[] _packageSources;
#region PackageMangaement Interfaces
#region PackageManagement Interfaces
[SuppressMessage("Microsoft.Design", "CA1034:NestedTypesShouldNotBeVisible", Justification = "It's a generated code")]
public interface IProviderServices {
@ -278,7 +278,7 @@ namespace Microsoft.PackageManagement.NuGetProvider
private static string FixMeFormat(string formatString, object[] args) {
if (args == null || args.Length == 0) {
// not really any args, and not really expectng any
// not really any args, and not really expecting any
return formatString.Replace('{', '\u00ab').Replace('}', '\u00bb');
}
return args.Aggregate(formatString.Replace('{', '\u00ab').Replace('}', '\u00bb'), (current, arg) => current + string.Format(CultureInfo.CurrentCulture, " \u00ab{0}\u00bb", arg));

View file

@ -30,7 +30,7 @@
internal static string GetPackageNameWithoutVersionInfo(string packageName)
{
//Input: JQuery.2.1.3
//output: Jqery
//output: JQuery
// An unsupported scenario is if the package has name MyModule2.2 and version 2.0 then we will return version as 2.2.2.0 and packagename as mymodule
string version = String.Empty;
@ -276,7 +276,7 @@
}
// Dependencies are of the form "dep1|dep2"
// Split them up and process each depedency with ParseDependency function
// Split them up and process each dependency with ParseDependency function
var dependencies = value.Split('|').Select(ParseDependency);
// group the dependencies by target framework
@ -338,7 +338,7 @@
/// <summary>
/// Extract the package id.
/// From the feed, the package id is eqaul to something like this "http://www.nuget.org/api/v2/Packages(Id='jQuery',Version='2.1.3')".
/// From the feed, the package id is equal to something like this "http://www.nuget.org/api/v2/Packages(Id='jQuery',Version='2.1.3')".
/// But we need id='jQuery'.
/// </summary>
/// <param name="longId"></param>
@ -416,7 +416,7 @@
}
/// <summary>
/// A help for processing the metatadata tag
/// A help for processing the metadata tag
/// </summary>
/// <param name="package"></param>
/// <param name="xElement"></param>
@ -542,7 +542,7 @@
if (!groups.Any())
{
// since there is no group, we are encoutering
// since there is no group, we are encountering
// old format, <dependency> is direct child of <dependencies>
var dependencySet = new PackageDependencySet
{
@ -586,7 +586,7 @@
}
/// <summary>
/// Make sure the Nuget required xml tags exist witin the metadata tag in the nuspec file.
/// Make sure the Nuget required xml tags exist within the metadata tag in the nuspec file.
/// </summary>
/// <param name="package"></param>
private static void EnsureRequiredXmlTags(PackageBase package)

View file

@ -18,7 +18,7 @@ namespace Microsoft.PackageManagement.NuGetProvider
///
/// Important notes:
/// - Required Methods: Not all methods are required; some package providers do not support some features. If the methods isn't used or implemented it should be removed (or commented out)
/// - Error Handling: Avoid throwing exceptions from these methods. To properly return errors to the user, use the request.Error(...) method to notify the user of an error conditionm and then return.
/// - Error Handling: Avoid throwing exceptions from these methods. To properly return errors to the user, use the request.Error(...) method to notify the user of an error condition and then return.
/// - Communicating with the HOST and CORE: each method takes a Request (in reality, an alias for System.Object), which can be used in one of two ways:
/// - use the c# 'dynamic' keyword, and call functions on the object directly.
/// - use the <code><![CDATA[ .As<Request>() ]]></code> extension method to strongly-type it to the Request type (which calls upon the duck-typer to generate a strongly-typed wrapper).
@ -65,7 +65,7 @@ namespace Microsoft.PackageManagement.NuGetProvider
}
/// <summary>
/// This is just here as to give us some possibility of knowing when an unexception happens...
/// This is just here as to give us some possibility of knowing when an exception happens...
/// At the very least, we'll write it to the system debug channel, so a developer can find it if they are looking for it.
/// </summary>
public void OnUnhandledException(string methodName, Exception exception) {
@ -275,7 +275,7 @@ namespace Microsoft.PackageManagement.NuGetProvider
request.Verbose(Resources.Messages.SuccessfullyValidated, name);
}
// it's good to check just before you actaully write something to see if the user has cancelled the operation
// it's good to check just before you actually write something to see if the user has cancelled the operation
if (request.IsCanceled)
{
return;
@ -397,7 +397,7 @@ namespace Microsoft.PackageManagement.NuGetProvider
return;
}
// A user does not provide the package full Name at all Or used wildcard in the name. Let's try searching the entire reposiotry for matches.
// A user does not provide the package full Name at all Or used wildcard in the name. Let's try searching the entire repository for matches.
request.YieldPackages(request.SearchForPackages(name), name);
}
catch (Exception ex)

View file

@ -76,7 +76,7 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
{
if (args == null || args.Length == 0)
{
// not really any args, and not really expectng any
// not really any args, and not really expecting any
return formatString.Replace('{', '\u00ab').Replace('}', '\u00bb');
}
return args.Aggregate(formatString.Replace('{', '\u00ab').Replace('}', '\u00bb'), (current, arg) => current + string.Format(CultureInfo.CurrentCulture, " \u00ab{0}\u00bb", arg));

View file

@ -214,7 +214,7 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
private static bool YieldPackages(string hive, RegistryKey regkey, string name, string displayname, string requiredVersion, string minimumVersion, string maximumVersion, PackageJson package, Request request)
{
//TODO make it wildcard match, follow the fastfrence format, get-package git no reults, get-package git*
//TODO make it wildcard match, follow the fastfrence format, get-package git no results, get-package git*
if (regkey != null)
{

View file

@ -276,7 +276,7 @@ namespace Microsoft.PackageManagement.PackageSourceListProvider
}
}
// it's good to check just before you actaully write something to see if the user has cancelled the operation
// it's good to check just before you actually write something to see if the user has cancelled the operation
if (request.IsCanceled) {
return;
}

View file

@ -18,7 +18,7 @@ namespace Microsoft.PackageManagement.Internal.Api {
using System.Net;
/// <summary>
/// Functions implemented by the HOST to provide contexual information and control to for the current request.
/// Functions implemented by the HOST to provide contextual information and control to for the current request.
/// </summary>
public interface IHostApi {
@ -198,7 +198,7 @@ namespace Microsoft.PackageManagement.Internal.Api {
/// </summary>
/// <param name="requestor">the name of the provider or component requesting the provider.</param>
/// <param name="providerName">the name of the requested provider</param>
/// <param name="providerVersion">the miniumum version of the provider required</param>
/// <param name="providerVersion">the minimum version of the provider required</param>
/// <param name="providerType"></param>
/// <param name="location">the remote location that the provider is being bootstrapped from</param>
/// <param name="destination">the target folder where the provider is to be installed.</param>
@ -214,7 +214,7 @@ namespace Microsoft.PackageManagement.Internal.Api {
bool ShouldContinueWithUntrustedPackageSource(string package, string packageSource);
/// <summary>
/// Allow a package provider to comfirm a user whether the process should continue
/// Allow a package provider to confirm a user whether the process should continue
/// </summary>
/// <param name="query">Query that inquires whether the cmdlet should continue.</param>
/// <param name="caption">Caption of the window that might be displayed when the user is prompted whether or not to perform the action.</param>
@ -224,7 +224,7 @@ namespace Microsoft.PackageManagement.Internal.Api {
bool ShouldContinue(string query, string caption, ref bool yesToAll, ref bool noToAll);
/// <summary>
/// Allow a package provider to comfirm a user whether the process should continue
/// Allow a package provider to confirm a user whether the process should continue
/// </summary>
/// <param name="query">Query that inquires whether the cmdlet should continue.</param>
/// <param name="caption">Caption of the window that might be displayed when the user is prompted whether or not to perform the action.</param>

View file

@ -775,7 +775,7 @@ namespace Microsoft.PackageManagement.Internal.Implementation {
AddToProviderCacheTable(provider.ProviderName, provider);
//initialize the warpper package provider
//initialize the wrapper package provider
provider.Initialize(request);
// addOrSet locks the collection anyway.

View file

@ -236,7 +236,7 @@ namespace Microsoft.PackageManagement.Internal.Implementation {
private static string FixMeFormat(string formatString, object[] args) {
if (args == null || args.Length == 0) {
// not really any args, and not really expectng any
// not really any args, and not really expecting any
return formatString.Replace('{', '\u00ab').Replace('}', '\u00bb');
}
return args.Aggregate(formatString.Replace('{', '\u00ab').Replace('}', '\u00bb'), (current, arg) => current + string.Format(CultureInfo.CurrentCulture, " \u00ab{0}\u00bb", arg));

View file

@ -16,7 +16,7 @@ namespace Microsoft.PackageManagement.Internal {
using Implementation;
/// <summary>
/// The public interface to accessing the fetaures of the Package Management Service
/// The public interface to accessing the features of the Package Management Service
/// This offers two possible methods to get the instance of the PackageManagementService.
/// If the Host is consuming the PackageManagementService by linking to this assembly, then
/// the simplest access is just to use the <code>Instance</code> method.

View file

@ -21,7 +21,7 @@ namespace Microsoft.PackageManagement.Internal.Packaging {
/// <summary>
/// The base element that is common to all elements in a Swidtag.
/// Swidtag classes are intended to be constructed, but are not mutatable
/// Swidtag classes are intended to be constructed, but are not mutable
/// (ie, can't be created and have values modified or removed)
/// </summary>
public class BaseElement {
@ -46,7 +46,7 @@ namespace Microsoft.PackageManagement.Internal.Packaging {
}
/// <summary>
/// All Swidtag elements can explicity support the xml:lang attribute.
/// All Swidtag elements can explicitly support the xml:lang attribute.
/// </summary>
public string Culture {
get {

View file

@ -264,7 +264,7 @@ namespace Microsoft.PackageManagement.Internal.Packaging {
/// <returns>The ResourceCollection added. If the Payload already exists, returns the current Payload.</returns>
internal Payload AddPayload() {
// should we just detect and add the evidence element when a provider is adding items to the evidence
// instead of requiring someone to explicity add the element?
// instead of requiring someone to explicitly add the element?
if (Element.Elements(Iso19770_2.Elements.Payload).Any()) {
return Payload;
}
@ -294,7 +294,7 @@ namespace Microsoft.PackageManagement.Internal.Packaging {
/// <returns>The added Evidence element. If the Evidence element already exists, returns the current element.</returns>
internal Evidence AddEvidence() {
// should we just detect and add the evidence element when a provider is adding items to the evidence
// instead of requiring someone to explicity add the element?
// instead of requiring someone to explicitly add the element?
if (Element.Elements(Iso19770_2.Elements.Evidence).Any()) {
return Evidence;
}

View file

@ -29,7 +29,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Normally, we wouldn't actaully permit access to the internals of the API
// Normally, we wouldn't actually permit access to the internals of the API
// but we're sharing code with the other tightly-coupled providers
// Third-party providers shouldn't use (or want) to be tightly-coupled

View file

@ -64,7 +64,7 @@ namespace Microsoft.PackageManagement.Internal.Utility.Collections {
}
catch (Exception) {
//GetFullPath() can throw for the bad path or unsupported path format, e.g. PS:MydriveFolder.
//we should not throw in this case. Intead return string.Empty to indicate not matching
//we should not throw in this case. Instead return string.Empty to indicate not matching
}
return string.Empty;
}

View file

@ -95,7 +95,7 @@ namespace Microsoft.PackageManagement.Internal.Utility.Extensions {
}
if (File.Exists(location)) {
// err("Unable to forcably remove file '{0}'. This can't be good.", location);
// err("Unable to forcibly remove file '{0}'. This can't be good.", location);
}
}
return;
@ -146,7 +146,7 @@ namespace Microsoft.PackageManagement.Internal.Utility.Extensions {
catch { }
}
// delete all filese that is older than 2 days
// delete all files that is older than 2 days
foreach (var filePath in Directory.EnumerateFiles(TempPath))
{
try
@ -202,7 +202,7 @@ namespace Microsoft.PackageManagement.Internal.Utility.Extensions {
}
#endif
}
// not a remote (or resovably-remote) path or
// not a remote (or resolvable-remote) path or
// it is already a path that is in it's correct form (via localpath)
return pathUri.LocalPath;
} catch (UriFormatException) {

View file

@ -138,7 +138,7 @@ namespace Microsoft.PackageManagement.Internal.Utility.Plugin
// this method isn't returning anything.
if (instanceMethod.ReturnType != typeof(void))
{
// pop the return value beacuse the generated method is void and the
// pop the return value because the generated method is void and the
// method we called actually gave us a result.
il.Emit(OpCodes.Pop);
}

View file

@ -72,7 +72,7 @@ namespace Microsoft.PackageManagement.Internal.Providers {
/// Expected behavior:
/// If request.Sources is null or empty, the provider should return the list of registered sources.
/// Otherwise, the provider should return package sources that match the strings in the request.Sources
/// collction. If the string doesn't match a registered source (either by name or by location) and the
/// collection. If the string doesn't match a registered source (either by name or by location) and the
/// string can be construed as a package source (ie, passing in a valid URL to a provider that uses URLs
/// for their package sources), then the provider should return a package source for that URL, but marked
/// as 'unregistered' (and 'untrusted')
@ -84,7 +84,7 @@ namespace Microsoft.PackageManagement.Internal.Providers {
/// <remarks>
/// PowerShellMetaProvider notes:
/// - may use Resolve-PackageSource as the function name
/// - $request object is not passed as a parameter, but inserted as a variable before the ca New-PackageSourcell.
/// - $request object is not passed as a parameter, but inserted as a variable before the ca New-PackageSource.
/// - Values can be returned using Write-Object for objects returned from the function
/// </remarks>
void ResolvePackageSources(IRequest requestObject);
@ -115,7 +115,7 @@ namespace Microsoft.PackageManagement.Internal.Providers {
/// that match sources (either by name or location) in the list of specified strings.
/// </summary>
/// <param name="name">matches against the name of a package. If this is null or empty, should return all matching packages.</param>
/// <param name="requiredVersion">an exact version of the package to match. If this is specified, miniumum and maximum should be ignored.</param>
/// <param name="requiredVersion">an exact version of the package to match. If this is specified, minimum and maximum should be ignored.</param>
/// <param name="minimumVersion">the minimum version of the package to match. If requiredVersion is specified, this should be ignored.</param>
/// <param name="maximumVersion">the maximum version of the package to match. If requiredVersion is specified, this should be ignored.</param>
/// <param name="id">the batch id. If the provider supports batch searches, and this is non-zero,
@ -226,7 +226,7 @@ namespace Microsoft.PackageManagement.Internal.Providers {
/// Returns Software Identities for installed packages
/// </summary>
/// <param name="name">matches against the name of a package. If this is null or empty, should return all matching packages.</param>
/// <param name="requiredVersion">an exact version of the package to match. If this is specified, miniumum and maximum should be ignored.</param>
/// <param name="requiredVersion">an exact version of the package to match. If this is specified, minimum and maximum should be ignored.</param>
/// <param name="minimumVersion">the minimum version of the package to match. If requiredVersion is specified, this should be ignored.</param>
/// <param name="maximumVersion">the maximum version of the package to match. If requiredVersion is specified, this should be ignored.</param>
/// <param name="requestObject">The request context passed to the provider.</param>

View file

@ -108,7 +108,7 @@ namespace Microsoft.PackageManagement.Provider.Utility {
if (File.Exists(location))
{
// err("Unable to forcably remove file '{0}'. This can't be good.", location);
// err("Unable to forcibly remove file '{0}'. This can't be good.", location);
}
}
return;
@ -213,7 +213,7 @@ namespace Microsoft.PackageManagement.Provider.Utility {
// }
// }
}
// not a remote (or resovably-remote) path or
// not a remote (or resolvable-remote) path or
// it is already a path that is in it's correct form (via localpath)
return pathUri.LocalPath;
} catch (UriFormatException) {

View file

@ -14,7 +14,7 @@ namespace Microsoft.PackageManagement.Provider.Utility
/// Example: EntityFramework 6.1.3-beta1
/// Version: 6.1.3
/// SpecialVersion: -beta1
/// OrginalString: 6.1.3-beta1
/// OriginalString: 6.1.3-beta1
///
/// </summary>
[TypeConverter(typeof(SemanticVersionTypeConverter))]

View file

@ -109,7 +109,7 @@ namespace {0}
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name=""context"">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{{
@ -448,7 +448,7 @@ namespace {0}
/// Generates a complete activity source file from a module.
/// </summary>
/// <param name="moduleToProcess"></param>
/// <param name="activityNamespace">The namesspace to use for the target classes</param>
/// <param name="activityNamespace">The namespace to use for the target classes</param>
/// <returns>An array of code elements to compile into an assembly</returns>
static public string[] GenerateFromModuleInfo(PSModuleInfo moduleToProcess, string activityNamespace)
{

View file

@ -84,7 +84,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -84,7 +84,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -107,7 +107,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -301,7 +301,7 @@ namespace Microsoft.PowerShell.Activities
foreach(string varKey in dictionaryParam.Keys)
{
// We need to get the values of required runtime variables only, not evrything from DataContext parameters
// We need to get the values of required runtime variables only, not everything from DataContext parameters
//
if (workflowRuntimeVariables.ContainsKey(varKey))
{

View file

@ -159,7 +159,7 @@ namespace Microsoft.PowerShell.Activities
/// <summary>
/// Validates the contents of the script block for this command.
/// </summary>
/// <param name="metadata">Metatdata for this activity</param>
/// <param name="metadata">Metadata for this activity</param>
protected override void CacheMetadata(NativeActivityMetadata metadata)
{
base.CacheMetadata(metadata);
@ -195,7 +195,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the script to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
[System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Reliability",
@ -780,7 +780,7 @@ namespace Microsoft.PowerShell.Activities
public class Suspend : NativeActivity
{
/// <summary>
/// Optional field used for resuming the worklfow for a specific label.
/// Optional field used for resuming the workflow for a specific label.
/// </summary>
public string Label { get; set; }

View file

@ -105,7 +105,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -91,7 +91,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -175,7 +175,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -16,7 +16,7 @@ namespace Microsoft.PowerShell.Activities
/// <summary>
/// The implementation of pipeline activity.
/// This similar concept which we have in PowerShell today like Get-Process | Stop-Process.
/// Pipline activity will make sure the piped execution of its child acitities.
/// Pipeline activity will make sure the piped execution of its child activities.
/// </summary>
#if _NOTARMBUILD_
[Designer (typeof (PipelineDesigner))]
@ -65,7 +65,7 @@ namespace Microsoft.PowerShell.Activities
/// <summary>
/// Validate the required number of activities of pipeline activity.
/// Setup the cachemetata with variables and activities.
/// Setup the cachemetadata with variables and activities.
/// </summary>
/// <param name="metadata"></param>
protected override void CacheMetadata(NativeActivityMetadata metadata)
@ -101,7 +101,7 @@ namespace Microsoft.PowerShell.Activities
return;
}
#endif
// Adding variables into the CacheMetatdata of pipeline activity.
// Adding variables into the CacheMetadata of pipeline activity.
metadata.AddImplementationVariable(this.lastIndexHint);
// We use a GUID here to make this name hard to guess. It's not a security issue,
@ -118,7 +118,7 @@ namespace Microsoft.PowerShell.Activities
appendOutput = true;
}
// Adding activities into the CacheMetatdata of pipeline activity.
// Adding activities into the CacheMetadata of pipeline activity.
if (count == 1)
{
@ -285,7 +285,7 @@ namespace Microsoft.PowerShell.Activities
/// </summary>
/// <param name="context">The activity context.</param>
/// <param name="variable">The variable which needs to set.</param>
/// <param name="value">The value for the vriable.</param>
/// <param name="value">The value for the variable.</param>
private void SetData(ActivityContext context, Variable<PSDataCollection<PSObject>> variable, PSDataCollection<PSObject> value)
{
PropertyDescriptor prop = context.DataContext.GetProperties()[variable.Name];

View file

@ -40,7 +40,7 @@ namespace Microsoft.PowerShell.Activities
/// <summary>
/// Validates the syntax of the script text for this activity.
/// </summary>
/// <param name="metadata">Activity metatdata for this activity</param>
/// <param name="metadata">Activity metadata for this activity</param>
protected override void CacheMetadata(NativeActivityMetadata metadata)
{
base.CacheMetadata(metadata);

View file

@ -75,7 +75,7 @@ namespace Microsoft.PowerShell.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -93,7 +93,7 @@ namespace cimcmdlets.Activities
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{

View file

@ -102,7 +102,7 @@ namespace Microsoft.PowerShell.Workflow
/// the AST before compilation. This stage should be light-weight and as efficient
/// as possible.
/// </summary>
/// <param name="ast">The PowerShell AST correpsponding to the job's definition.</param>
/// <param name="ast">The PowerShell AST corresponding to the job's definition.</param>
/// <returns>A collection of PSParseErrors corresponding to any semantic issues in the AST.</returns>
public List<ParseError> ValidateAst(FunctionDefinitionAst ast)
{
@ -113,7 +113,7 @@ namespace Microsoft.PowerShell.Workflow
/// Converts a PowerShell AST into a script block that represents
/// the workflow to run.
/// </summary>
/// <param name="ast">The PowerShell AST correpsponding to the job's definition.</param>
/// <param name="ast">The PowerShell AST corresponding to the job's definition.</param>
/// <param name="definingModule">The module that is defining this command (if any)</param>
/// <returns>
/// A PowerShell script block that invokes an underlying job,
@ -138,7 +138,7 @@ namespace Microsoft.PowerShell.Workflow
/// Converts a PowerShell AST into a script block that represents
/// the workflow to run.
/// </summary>
/// <param name="ast">The PowerShell AST correpsponding to the job's definition.</param>
/// <param name="ast">The PowerShell AST corresponding to the job's definition.</param>
/// <param name="definingModule">The module that is defining this command (if any)</param>
/// <param name="rootWorkflowName">Only root Workflow will be compiled</param>
/// <returns>
@ -163,7 +163,7 @@ namespace Microsoft.PowerShell.Workflow
/// Converts a PowerShell AST into a script block that represents
/// the workflow to run.
/// </summary>
/// <param name="ast">The PowerShell AST correpsponding to the job's definition.</param>
/// <param name="ast">The PowerShell AST corresponding to the job's definition.</param>
/// <param name="definingModule">The module that is defining this command (if any)</param>
/// <param name="initialSessionState">The initial session state of a runspace.</param>
/// <param name="parsingErrors">parsing errors</param>
@ -188,7 +188,7 @@ namespace Microsoft.PowerShell.Workflow
/// Converts a PowerShell AST into a script block that represents
/// the workflow to run.
/// </summary>
/// <param name="ast">The PowerShell AST correpsponding to the job's definition.</param>
/// <param name="ast">The PowerShell AST corresponding to the job's definition.</param>
/// <param name="definingModule">The module that is defining this command (if any)</param>
/// <param name="initialSessionState">The initial session state of a runspace.</param>
/// <param name="parsingErrors">parsing errors</param>
@ -206,7 +206,7 @@ namespace Microsoft.PowerShell.Workflow
/// Converts a PowerShell AST into a script block that represents
/// the workflow to run.
/// </summary>
/// <param name="ast">The PowerShell AST correpsponding to the job's definition.</param>
/// <param name="ast">The PowerShell AST corresponding to the job's definition.</param>
/// <param name="definingModule">The module that is defining this command (if any).</param>
/// <param name="initialSessionState">The initial session state of a runspace.</param>
/// <param name="sourceLanguageMode">Language mode of source that is creating the workflow.</param>
@ -224,7 +224,7 @@ namespace Microsoft.PowerShell.Workflow
/// Converts a PowerShell AST into a script block that represents
/// the workflow to run.
/// </summary>
/// <param name="ast">The PowerShell AST correpsponding to the job's definition.</param>
/// <param name="ast">The PowerShell AST corresponding to the job's definition.</param>
/// <param name="definingModule">The module that is defining this command (if any)</param>
/// <param name="initialSessionState">The initial session state of a runspace.</param>
/// <param name="sourceLanguageMode">Language mode of source that is creating the workflow.</param>
@ -323,7 +323,7 @@ namespace Microsoft.PowerShell.Workflow
invoker = System.Management.Automation.PowerShell.Create(initialSessionState);
var scopeFromIss = GetScopeFromIss(initialSessionState, invoker, out processedActivityLibraries, out activityMap);
// Add functionDefinitions, if any, from scopeFromIss to parent scope, so that they will be available for all FunctionDefintionAsts
// Add functionDefinitions, if any, from scopeFromIss to parent scope, so that they will be available for all FunctionDefinitionAsts
foreach(var entry in scopeFromIss.functionDefinitions)
{
scope.functionDefinitions.Add(entry.Key, entry.Value);
@ -908,7 +908,7 @@ namespace Microsoft.PowerShell.Workflow
/// <param name="referencedAssemblies">The list of additional assemblies to search for workflow activities.</param>
/// <param name="parameterValidation">Any parameter validation applied to the parameters in the provided AST.</param>
/// <param name="nestedWorkflows">Any nested workflows required by this PowerShell AST.</param>
/// <param name="requiredAssemblies">All assemblies, including provided at API or proiveded in workfow definition, required by this PowerShell Workflow.</param>
/// <param name="requiredAssemblies">All assemblies, including provided at API or provided in workflow definition, required by this PowerShell Workflow.</param>
/// <param name="workflowAttributes">The attribute string for the workflow if these is one.</param>
public static string Convert(FunctionDefinitionAst ast,
PSModuleInfo definingModule,
@ -1901,7 +1901,7 @@ namespace Microsoft.PowerShell.Workflow
/// Block variable scope prefix like "$GLOBAL:" and "$SCRIPT:". In script workflow,
/// the only valid scope prefix is "$WORKFLOW:". When generating expression for the
/// PowerShellValue activity, we need to remove the $WORKFLOW part. Otherwise it will
/// generate error during execution, becuase the prefix "WORKFLOW" is not actually
/// generate error during execution, because the prefix "WORKFLOW" is not actually
/// supported in the PowerShell.
/// </summary>
/// <param name="expression"></param>
@ -2058,7 +2058,7 @@ namespace Microsoft.PowerShell.Workflow
/// <summary>
/// Used to hold the CmdletBinding attribute string specified in the script workflow text.
/// This needs to be propigated to the synthesized driver function .
/// This needs to be propagated to the synthesized driver function .
/// </summary>
internal string CmdletAttributeText { get; set; }
@ -2398,7 +2398,7 @@ namespace Microsoft.PowerShell.Workflow
// Generate debug symbol information for variable assignments.
GenerateSymbolicInformation(value.Extent);
// Visit the right-hand side of the expression for activitities
// Visit the right-hand side of the expression for activities
PipelineAst rightPipeline = value as PipelineAst;
if (rightPipeline != null)
{
@ -2944,7 +2944,7 @@ namespace Microsoft.PowerShell.Workflow
return null;
}
// This is now an interative pipeline, remember the nonIterativePipelineVariable as one that needs to be set.
// This is now an interactive pipeline, remember the nonIterativePipelineVariable as one that needs to be set.
if (!String.IsNullOrEmpty(nonIterativePipelineVariable) &&
!iterativePipelineVariables.Contains(nonIterativePipelineVariable, StringComparer.OrdinalIgnoreCase))
{
@ -2952,7 +2952,7 @@ namespace Microsoft.PowerShell.Workflow
}
}
// Verify that once they've started an interative pipeline, all commands are
// Verify that once they've started an interactive pipeline, all commands are
// Foreach-Object -Sequence or Where-Object -Sequence.
if (isIterativePipeline && (! isIterativeCommand))
{
@ -7426,7 +7426,7 @@ namespace Microsoft.PowerShell.Workflow
if (tryStatementAst.Finally != null)
{
// Close the original try / catch. Since we're bringing the original
// finally into a new catch statement, we need to sythesize a dummy one here.
// finally into a new catch statement, we need to synthesize a dummy one here.
if (tryStatementAst.CatchClauses.Count == 0)
{
WriteLine("<TryCatch.Finally><Sequence /></TryCatch.Finally>");

View file

@ -180,7 +180,7 @@ namespace Microsoft.PowerShell.Commands
// The localized Pdh resource strings might use Unicode characters that are different from
// what the user can type with the keyboard to represent a special character.
//
// e.g. the apostrophe in Frence UI culture: it's [char]39 from keyboard, but it's [char]8217
// e.g. the apostrophe in French UI culture: it's [char]39 from keyboard, but it's [char]8217
// in the resource strings.
//
// With this dictionary, we can add special mapping if we find other special cases in the future.

View file

@ -816,7 +816,7 @@ namespace Microsoft.PowerShell.Commands
//
// CreateSession creates an EventLogSession connected to a target machine or localhost.
// If _credential argment is PSCredential.Empty, the session will be created for the current context.
// If _credential argument is PSCredential.Empty, the session will be created for the current context.
//
private EventLogSession CreateSession()
{
@ -1139,7 +1139,7 @@ namespace Microsoft.PowerShell.Commands
//
// If none of the logs/paths/providers were valid, queriedLogsQueryMap is empty.
// Simply conitnue to the next hashtable since all the errors have been written already.
// Simply continue to the next hashtable since all the errors have been written already.
//
if (queriedLogsQueryMap.Count == 0)
{
@ -1672,7 +1672,7 @@ namespace Microsoft.PowerShell.Commands
// ValidateAndResolveFilePath helper.
// Returns a string collection of resolved file paths.
// Writes non-terminating errors for invalid paths
// and returns an empty colleciton.
// and returns an empty collection.
//
private StringCollection ValidateAndResolveFilePath(string path)
{
@ -1899,7 +1899,7 @@ namespace Microsoft.PowerShell.Commands
// AddLogsForProviderToInternalMap helper.
// Retrieves log names to which _providerName writes.
// NOTE: there are many misconfigured providers in the system.
// We therefore catch EventLogException excpetions and write them out as non-terminating errors.
// We therefore catch EventLogException exceptions and write them out as non-terminating errors.
// The results are added to _providersByLogMap dictionary.
//
private void AddLogsForProviderToInternalMap(EventLogSession eventLogSession, string providerName)

View file

@ -555,7 +555,7 @@ namespace Microsoft.PowerShell.Commands
// ResolveFilePath helper.
// Returns a string collection of resolved file paths.
// Writes non-terminating errors for invalid paths
// and returns an empty colleciton.
// and returns an empty collection.
//
private bool ResolveFilePaths()
{

View file

@ -1516,7 +1516,7 @@ namespace Microsoft.Powershell.Commands.GetCounter.PdhNative
//
// Prior to Vista, PdhCollectQueryDataWithTime() was not available,
// so we could not collect a timestamp for the entire sample set.
// We will use the last sample's timstamp instead.
// We will use the last sample's timestamp instead.
//
nextSet = new PerformanceCounterSampleSet(sampleTimeStamp, samplesArr, _firstReading);
_firstReading = false;

View file

@ -109,7 +109,7 @@ namespace Microsoft.PowerShell.Cmdletization
#endregion Common CIM-related parameters
#region Abstract methods to be overriden in derived classes
#region Abstract methods to be overridden in derived classes
/// <summary>
/// Creates a <see cref="System.Management.Automation.Job"/> object that performs a query against the wrapped object model.
@ -123,7 +123,7 @@ namespace Microsoft.PowerShell.Cmdletization
/// </para>
/// <para>
/// <see cref="Job.WriteObject" /> (and other methods returning job results) will block to support throttling and flow-control.
/// Implementations of Job instance returned from this method should make sure that implementation-specific flow-control mechanism pauses further procesing,
/// Implementations of Job instance returned from this method should make sure that implementation-specific flow-control mechanism pauses further processing,
/// until calls from <see cref="Job.WriteObject" /> (and other methods returning job results) return.
/// </para>
/// </remarks>
@ -174,7 +174,7 @@ namespace Microsoft.PowerShell.Cmdletization
/// </para>
/// <para>
/// <see cref="Job.WriteObject" /> (and other methods returning job results) will block to support throttling and flow-control.
/// Implementations of Job instance returned from this method should make sure that implementation-specific flow-control mechanism pauses further procesing,
/// Implementations of Job instance returned from this method should make sure that implementation-specific flow-control mechanism pauses further processing,
/// until calls from <see cref="Job.WriteObject" /> (and other methods returning job results) return.
/// </para>
/// </remarks>
@ -209,7 +209,7 @@ namespace Microsoft.PowerShell.Cmdletization
/// </para>
/// <para>
/// <see cref="Job.WriteObject" /> (and other methods returning job results) will block to support throttling and flow-control.
/// Implementations of Job instance returned from this method should make sure that implementation-specific flow-control mechanism pauses further procesing,
/// Implementations of Job instance returned from this method should make sure that implementation-specific flow-control mechanism pauses further processing,
/// until calls from <see cref="Job.WriteObject" /> (and other methods returning job results) return.
/// </para>
/// </remarks>
@ -550,7 +550,7 @@ namespace Microsoft.PowerShell.Cmdletization
private TSession GetImpliedSession()
{
TSession sessionFromImportModule;
// When being called from a CIM actiivty, this will be invoked as
// When being called from a CIM activity, this will be invoked as
// a function so there will be no module info
if (this.PSModuleInfo != null)
{

View file

@ -103,7 +103,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
if (this.DidUserSuppressTheOperation)
{
// If user suppressed CreateInstance operation, then no instance should be returned by the cmdlet
// If the provider's CreateInstance implemenration doesn't post an instance and returns a success, then WMI infra will error out to flag an incorrect implementation of CreateInstance (by design)
// If the provider's CreateInstance implementation doesn't post an instance and returns a success, then WMI infra will error out to flag an incorrect implementation of CreateInstance (by design)
// Therefore cmdletization layer has to suppress the error and treat this as normal/successful completion
this.OnCompleted();
}

View file

@ -25,7 +25,7 @@ using Microsoft.PowerShell.CoreClr.Stubs;
using System.Net.Mail;
#endif
// TODO/FIXME: Move this class to src/cimSupport/other directory (to map to the namespace it lives in and functionality it implements [cmdletization idependent])
// TODO/FIXME: Move this class to src/cimSupport/other directory (to map to the namespace it lives in and functionality it implements [cmdletization independent])
namespace Microsoft.PowerShell.Cim
{

View file

@ -38,7 +38,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
this.ClientSideQuery = new ClientSideQuery();
}
#region WQL proceessing
#region WQL processing
private void AddWqlCondition(string condition)
{

View file

@ -228,7 +228,7 @@ namespace Microsoft.PowerShell.Commands
/// A string that may contain backslash characters.
/// </param>
/// <returns>
/// A new string in which any backshlash characters have been "escaped"
/// A new string in which any backslash characters have been "escaped"
/// by prefacing then with an additional backslash
/// </returns>
internal static string EscapePath(string path)
@ -261,9 +261,9 @@ namespace Extensions
}
/// <summary>
/// Execute a CIM query and return only the first intance in the result.
/// Execute a CIM query and return only the first instance in the result.
/// </summary>
/// <param name="session">The CimSesson to be queried</param>
/// <param name="session">The CimSession to be queried</param>
/// <param name="nameSpace">A string containing the namespace to run the query against</param>
/// <param name="query">A string containing the query to be run</param>
/// <returns>
@ -290,9 +290,9 @@ namespace Extensions
}
/// <summary>
/// Execute a CIM query and return only the first intance in the result.
/// Execute a CIM query and return only the first instance in the result.
/// </summary>
/// <param name="session">The CimSesson to be queried</param>
/// <param name="session">The CimSession to be queried</param>
/// <param name="query">A string containing the query to be run</param>
/// <returns>
/// A <see cref="Microsoft.Management.Infrastructure.CimInstance"/> object

View file

@ -11,7 +11,7 @@ namespace Microsoft.PowerShell.Commands
{
/// <summary>
/// Defines the implementation of the 'Clear-RecycleBin' cmdlet.
/// This cmldet clear all files in the RecycleBin for the given DriveLetter.
/// This cmdlet clear all files in the RecycleBin for the given DriveLetter.
/// If not DriveLetter is specified, then the RecycleBin for all drives are cleared.
/// </summary>
[Cmdlet(VerbsCommon.Clear, "RecycleBin", SupportsShouldProcess = true, HelpUri = "http://go.microsoft.com/fwlink/?LinkId=524082", ConfirmImpact = ConfirmImpact.High)]
@ -197,7 +197,7 @@ namespace Microsoft.PowerShell.Commands
if (_force || (ShouldProcess(clearRecycleBinShouldProcessTarget, "Clear-RecycleBin")))
{
// If driveName is null, then clear the recyclebin for all drives; otherwise, just for the specified drivename.
// If driveName is null, then clear the recyclebin for all drives; otherwise, just for the specified driveName.
string activity = String.Format(CultureInfo.InvariantCulture, ClearRecycleBinResources.ClearRecycleBinProgressActivity);
string statusDescription;

View file

@ -692,7 +692,7 @@ namespace Microsoft.PowerShell.Commands
public void Dispose()
{
this.Dispose(true);
// Use SupressFinalize in case a subclass
// Use SuppressFinalize in case a subclass
// of this type implements a finalizer.
GC.SuppressFinalize(this);
}
@ -766,7 +766,7 @@ namespace Microsoft.PowerShell.Commands
continue;
}
//parameter for Enable method
//if the input drive is not sytem drive
//if the input drive is not system drive
if (!driveNew.Equals(sysdrive, StringComparison.OrdinalIgnoreCase))
{
object[] inputDrive = { driveNew };
@ -779,7 +779,7 @@ namespace Microsoft.PowerShell.Commands
}
}
//if not success and if it is not already enabled (error code is 1056 in XP)
// Error 1717 - The interface is unknown. Eventhough this comes sometimes . The Drive is getting enabled.
// Error 1717 - The interface is unknown. Even though this comes sometimes . The Drive is getting enabled.
if (!(retValue.Equals(0)) && !(retValue.Equals(ComputerWMIHelper.ErrorCode_Service)) && !(retValue.Equals(ComputerWMIHelper.ErrorCode_Interface)))
{
Exception Ex = new ArgumentException(StringUtil.Format(ComputerResources.NotEnabled, drive));
@ -873,7 +873,7 @@ namespace Microsoft.PowerShell.Commands
public void Dispose()
{
this.Dispose(true);
// Use SupressFinalize in case a subclass
// Use SuppressFinalize in case a subclass
// of this type implements a finalizer.
GC.SuppressFinalize(this);
}
@ -940,7 +940,7 @@ namespace Microsoft.PowerShell.Commands
{
object[] input = { driveNew };
int retValue = Convert.ToInt32(WMIClass.InvokeMethod("Disable", input), System.Globalization.CultureInfo.CurrentCulture);
// Error 1717 - The interface is unknown. Eventhough this comes sometimes . The Drive is getting disabled.
// Error 1717 - The interface is unknown. Even though this comes sometimes . The Drive is getting disabled.
if (!(retValue.Equals(0)) && !(retValue.Equals(ComputerWMIHelper.ErrorCode_Interface)))
{
ErrorRecord er = new ErrorRecord(new ArgumentException(StringUtil.Format(ComputerResources.NotDisabled, drive)), null, ErrorCategory.InvalidOperation, null);
@ -1431,7 +1431,7 @@ namespace Microsoft.PowerShell.Commands
public void Dispose()
{
this.Dispose(true);
// Use SupressFinalize in case a subclass
// Use SuppressFinalize in case a subclass
// of this type implements a finalizer.
GC.SuppressFinalize(this);
}
@ -2037,7 +2037,7 @@ $result
public void Dispose()
{
this.Dispose(true);
// Use SupressFinalize in case a subclass
// Use SuppressFinalize in case a subclass
// of this type implements a finalizer.
GC.SuppressFinalize(this);
}
@ -2600,7 +2600,7 @@ $result
}
catch (PipelineStoppedException)
{
// powershell.Stop() is invoked becaue timeout expires, or Ctrl+C is pressed
// powershell.Stop() is invoked because timeout expires, or Ctrl+C is pressed
}
catch (ObjectDisposedException)
{
@ -3638,7 +3638,7 @@ $result
public void Dispose()
{
this.Dispose(true);
// Use SupressFinalize in case a subclass
// Use SuppressFinalize in case a subclass
// of this type implements a finalizer.
GC.SuppressFinalize(this);
}
@ -3696,7 +3696,7 @@ $result
return;
}
}
//confrm with the user before restoring
//confirm with the user before restoring
string computerName = Environment.MachineName;
if (!ShouldProcess(computerName))
{
@ -3817,7 +3817,7 @@ $result
JoinReadOnly = 0x800,
/// <summary>
/// Invoke during insatll
/// Invoke during install
/// </summary>
InstallInvoke = 0x40000
}
@ -3868,7 +3868,7 @@ $result
/// <summary>
/// The domain credential.
/// In DomainParameterSet, it is for the domain to join to.
/// In WorkgroupParameterSet, it is for the doamin to disjoin from.
/// In WorkgroupParameterSet, it is for the domain to disjoin from.
/// </summary>
[Parameter(ParameterSetName = DomainParameterSet, Mandatory = true)]
[Parameter(ParameterSetName = WorkgroupParameterSet)]
@ -3971,7 +3971,7 @@ $result
/// In the DomainParameterSet, the UnjoinDomainCredential is our first choice to unjoin a domain.
/// But if the UnjoinDomainCredential is not specified, the DomainCredential will be our second
/// choice. This is to keep the backward compatibility. In Win7, we can do:
/// Add-Computer -DomianName domain1 -Credential $credForDomain1AndDomain2
/// Add-Computer -DomainName domain1 -Credential $credForDomain1AndDomain2
/// to switch the local machine that is currently in domain2 to domain1.
///
/// Since DomainCredential has an alias "Credential", the same command should still work for the
@ -5893,7 +5893,7 @@ $result
ThrowOutLsaError(ret, cmdlet);
}
// Initialize sercret key, new secret
// Initialize secret key, new secret
SAMAPI.InitLsaString(SecretKey, ref key);
SAMAPI.InitLsaString(newPassword, ref newData);
bool secretCreated = false;
@ -6250,7 +6250,7 @@ $result
}
/// <summary>
/// To Reset a passowrd for a computer in domain.
/// To Reset a password for a computer in domain.
/// </summary>
[DllImport("netapi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
internal static extern int I_NetLogonControl2(
@ -6580,7 +6580,7 @@ $result
}
/// <summary>
/// Chacks whether string[] contains System Drive.
/// Checks whether string[] contains System Drive.
/// </summary>
/// <param name="drives"></param>
/// <param name="sysdrive"></param>

View file

@ -730,7 +730,7 @@ namespace Microsoft.PowerShell.Commands
}
/// <summary>
/// Dispose method in IDisposeable
/// Dispose method in IDisposable
/// </summary>
public void Dispose()
{

View file

@ -83,7 +83,7 @@ namespace Microsoft.PowerShell.Commands
private static string s_verbActionOpenName = null;
/// <summary>
/// Canonical name of the control panel item used as a refernece to fetch the verb
/// Canonical name of the control panel item used as a reference to fetch the verb
/// action Open string. This control panel item exists on all SKU's.
/// </summary>
private const string RegionCanonicalName = "Microsoft.RegionAndLanguage";
@ -205,9 +205,9 @@ $result
/// <summary>
/// CompareVerbActionOpen is a helper function used to perform locale specific
/// comparision of the verb action Open exposed by various control panel items.
/// comparison of the verb action Open exposed by various control panel items.
/// </summary>
/// <param name="verbActionName">Locale spcific verb action exposed by the control panel item.</param>
/// <param name="verbActionName">Locale specific verb action exposed by the control panel item.</param>
/// <returns>True if the control panel item supports verb action open or else returns false.</returns>
private static bool CompareVerbActionOpen(string verbActionName)
{
@ -644,7 +644,7 @@ $result
results.Add(controlPanelItem);
}
// Sort the reuslts by Canonical Name
// Sort the results by Canonical Name
results.Sort(CompareControlPanelItems);
foreach (ControlPanelItem controlPanelItem in results)
{

Some files were not shown because too many files have changed in this diff Show more