mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix the DSC overview URL in a markdown file and some small cleanup changes (#16629)
This commit is contained in:
+2
-2
@@ -2238,7 +2238,7 @@ function Start-ResGen
|
||||
}
|
||||
|
||||
function Find-Dotnet() {
|
||||
Write-Verbose -Verbose "In Find-DotNet"
|
||||
Write-Verbose "In Find-DotNet"
|
||||
|
||||
$originalPath = $env:PATH
|
||||
$dotnetPath = if ($environment.IsWindows) { "$env:LocalAppData\Microsoft\dotnet" } else { "$env:HOME/.dotnet" }
|
||||
@@ -2258,7 +2258,7 @@ function Find-Dotnet() {
|
||||
$dotnetCLIInstalledVersion = Get-LatestInstalledSDK
|
||||
Pop-Location
|
||||
|
||||
Write-Verbose -Verbose "dotnetCLIInstalledVersion = $dotnetCLIInstalledVersion`nchosenDotNetVersion = $chosenDotNetVersion"
|
||||
Write-Verbose "dotnetCLIInstalledVersion = $dotnetCLIInstalledVersion; chosenDotNetVersion = $chosenDotNetVersion"
|
||||
|
||||
if ($dotnetCLIInstalledVersion -ne $chosenDotNetVersion) {
|
||||
Write-Warning "The 'dotnet' in the current path can't find SDK version ${dotnetCLIRequiredVersion}, prepending $dotnetPath to PATH."
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# DSC MOF Compilation Demo
|
||||
|
||||
[PowerShell Desired State Configuration](https://docs.microsoft.com/powershell/scripting/dsc/overview/overview) is a declarative configuration platform for Windows and Linux.
|
||||
[PowerShell Desired State Configuration](https://docs.microsoft.com/powershell/scripting/dsc/overview) is a declarative configuration platform for Windows and Linux.
|
||||
DSC configurations can be authored in PowerShell and compiled into the resultant MOF document.
|
||||
|
||||
This demo shows use of PowerShell to author a DSC configuration to set the configuration of an Apache web server. PowerShell scripting is used to assess distribution and version-specific properties,
|
||||
|
||||
@@ -108,7 +108,7 @@ namespace Microsoft.PowerShell
|
||||
// We calculate how much whitespace we need to make it look nice
|
||||
if (hostUI.SupportsVirtualTerminal)
|
||||
{
|
||||
// Use Warning Color
|
||||
// Swaps foreground and background colors.
|
||||
notificationColor = "\x1B[7m";
|
||||
resetColor = "\x1B[0m";
|
||||
|
||||
|
||||
@@ -6735,7 +6735,7 @@ namespace System.Management.Automation.Language
|
||||
SkipToken();
|
||||
SkipNewlines();
|
||||
|
||||
// We have seen the ternary operator '?' and now expecting the 'IfFalse' expression.
|
||||
// We have seen the ternary operator '?' and now expecting the 'IfTrue' expression.
|
||||
ExpressionAst ifTrue = ExpressionRule(endNumberOnTernaryOpChars: true);
|
||||
if (ifTrue == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user