Skip to content

Commit

Permalink
Merge pull request #244 from CommunityToolkit/fix/multitarget/netstan…
Browse files Browse the repository at this point in the history
…dard

Improve semicolon delimiter consistency, fix `IsNetstandard` property
  • Loading branch information
Arlodotexe authored Jan 2, 2025
2 parents 3e178bc + 29f3e77 commit 725c1b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion MultiTarget/EnabledMultiTargets.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<!--Indicates which MultiTargets are enabled via UseTargetFrameworks script. -->
<!-- Do not commit changes made to default values by tooling. -->
<PropertyGroup>
<EnabledMultiTargets>wasm;uwp;netstandard</EnabledMultiTargets>
<EnabledMultiTargets>wasm;uwp;netstandard;</EnabledMultiTargets>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion MultiTarget/UseTargetFrameworks.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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\>", "<EnabledMultiTargets>$enabledMultiTargets</EnabledMultiTargets>";
$newFileContents = $fileContents -replace "\<EnabledMultiTargets\>(.+?)\<\/EnabledMultiTargets\>", "<EnabledMultiTargets>$enabledMultiTargets;</EnabledMultiTargets>";
}

Set-Content -Force -Path $PSScriptRoot/EnabledMultiTargets.props -Value $newFileContents;
Expand Down

0 comments on commit 725c1b5

Please sign in to comment.