From 29f3e77bc4f5c0f13fb5cb5de7cc598a79ad3405 Mon Sep 17 00:00:00 2001 From: Arlo Date: Thu, 2 Jan 2025 11:29:59 -0600 Subject: [PATCH] Improve semicolon delimiter consistency, fixes `IsNetstandard` property --- MultiTarget/AvailableTargetFrameworks.props | 2 +- MultiTarget/EnabledMultiTargets.props | 2 +- MultiTarget/UseTargetFrameworks.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MultiTarget/AvailableTargetFrameworks.props b/MultiTarget/AvailableTargetFrameworks.props index 7d5afb3..02f9d9a 100644 --- a/MultiTarget/AvailableTargetFrameworks.props +++ b/MultiTarget/AvailableTargetFrameworks.props @@ -26,7 +26,7 @@ net9.0; - netstandard2.0 + netstandard2.0; net9.0; \ No newline at end of file diff --git a/MultiTarget/EnabledMultiTargets.props b/MultiTarget/EnabledMultiTargets.props index 47de023..ea21f05 100644 --- a/MultiTarget/EnabledMultiTargets.props +++ b/MultiTarget/EnabledMultiTargets.props @@ -2,6 +2,6 @@ - wasm;uwp;netstandard + wasm;uwp;netstandard; diff --git a/MultiTarget/UseTargetFrameworks.ps1 b/MultiTarget/UseTargetFrameworks.ps1 index a75c5ee..1fa00ae 100644 --- a/MultiTarget/UseTargetFrameworks.ps1 +++ b/MultiTarget/UseTargetFrameworks.ps1 @@ -55,7 +55,7 @@ else { # When enabledMultiTargetsRegexPartial is empty, the regex will match everything. # To work around this, check if there's anything to remove before doing it. if ($enabledMultiTargets.Length -gt 0) { - $newFileContents = $fileContents -replace "\(.+?)\<\/EnabledMultiTargets\>", "$enabledMultiTargets"; + $newFileContents = $fileContents -replace "\(.+?)\<\/EnabledMultiTargets\>", "$enabledMultiTargets;"; } Set-Content -Force -Path $PSScriptRoot/EnabledMultiTargets.props -Value $newFileContents;