Skip to content

Commit cdbbb7a

Browse files
iSazonovdaxian-dbw
authored andcommitted
Minor formatting commits for Build.psm1 and csproj files (PowerShell#4630)
1 parent 297bba3 commit cdbbb7a

16 files changed

Lines changed: 25 additions & 25 deletions

File tree

build.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ cmd.exe /C cd /d "$location" "&" "$($vcPath)\vcvarsall.bat" "$Arch" "&" cmake "$
251251
$FilesToCopy = @('pwrshplugin.dll', 'pwrshplugin.pdb')
252252
$dstPath = "$PSScriptRoot\src\powershell-win-core"
253253
$FilesToCopy | ForEach-Object {
254-
$srcPath = [IO.Path]::Combine((Get-Location), "bin", $Configuration, "CoreClr/$_")
254+
$srcPath = [IO.Path]::Combine((Get-Location), "bin", $Configuration, "CoreClr/$_")
255255

256256
log " Copying $srcPath to $dstPath"
257257
Copy-Item $srcPath $dstPath
@@ -364,7 +364,7 @@ function Start-PSBuild {
364364
}
365365

366366
# Verify if the dotnet in-use is the required version
367-
$dotnetCLIInstalledVersion = (dotnet --version)
367+
$dotnetCLIInstalledVersion = (dotnet --version)
368368
If ($dotnetCLIInstalledVersion -ne $dotnetCLIRequiredVersion) {
369369
Write-Warning @"
370370
The currently installed .NET Command Line Tools is not the required version.
@@ -674,13 +674,13 @@ function New-PSOptions {
674674

675675
# the valid root is the root of the filesystem and the folder PowerShell
676676
$RootInfo['ValidPath'] = Join-Path -Path ([system.io.path]::GetPathRoot($RootInfo.RepoPath)) -ChildPath 'PowerShell'
677-
677+
678678
if($RootInfo.RepoPath -ne $RootInfo.ValidPath)
679679
{
680680
$RootInfo['Warning'] = "Please ensure you repo is at the root of the file system and named 'PowerShell' (example: '$($RootInfo.ValidPath)'), when building and packaging for release!"
681681
$RootInfo['IsValid'] = $false
682682
}
683-
else
683+
else
684684
{
685685
$RootInfo['IsValid'] = $true
686686
}
@@ -910,7 +910,7 @@ function Start-PSPester {
910910
$count = ($lines | measure-object).Count
911911
if ($count -eq 0)
912912
{
913-
sleep 1
913+
Start-Sleep -Seconds 1
914914
}
915915
else
916916
{

src/Microsoft.Management.Infrastructure.CimCmdlets/Microsoft.Management.Infrastructure.CimCmdlets.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell Core's Microsoft.Management.Infrastructure.CimCmdlets project</Description>

src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell Core's Microsoft.PowerShell.Commands.Diagnostics project</Description>

src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell Core's Microsoft.PowerShell.Commands.Management project</Description>
@@ -45,7 +45,7 @@
4545
<Compile Remove="gen\ManagementMshSnapInResources.cs" />
4646
<Compile Remove="gen\ClearRecycleBinResources.cs" />
4747
<Compile Remove="gen\ClipboardResources.cs" />
48-
48+
4949
<EmbeddedResource Remove="resources\EventlogResources.resx" />
5050
<EmbeddedResource Remove="resources\TransactionResources.resx" />
5151
<EmbeddedResource Remove="resources\WebServiceResources.resx" />

src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell Core's Microsoft.PowerShell.Commands.Utility project</Description>

src/Microsoft.PowerShell.ConsoleHost/Microsoft.PowerShell.ConsoleHost.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell Host</Description>
@@ -21,7 +21,7 @@
2121
<Compile Remove="singleshell\installer\EngineInstaller.cs" />
2222
<Compile Remove="singleshell\installer\MshHostMshSnapin.cs" />
2323
<Compile Remove="gen\HostMshSnapinResources.cs" />
24-
24+
2525
<EmbeddedResource Remove="resources\HostMshSnapinResources.resx" />
2626
</ItemGroup>
2727

src/Microsoft.PowerShell.CoreCLR.AssemblyLoadContext/Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell Core's Microsoft.PowerShell.CoreCLR.AssemblyLoadContext project</Description>

src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell Core's Microsoft.PowerShell.CoreCLR.Eventing project</Description>

src/Microsoft.PowerShell.LocalAccounts/Microsoft.PowerShell.LocalAccounts.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell Core's Microsoft.PowerShell.LocalAccounts project</Description>

src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<Import Project="..\..\PowerShell.Common.props"/>
3+
<Import Project="..\..\PowerShell.Common.props"/>
44

55
<PropertyGroup>
66
<Description>PowerShell SDK metapackage</Description>

0 commit comments

Comments
 (0)