Skip to content

Commit d01e87f

Browse files
committed
Fixed project generation in PowerShell 5.1
1 parent c8e3291 commit d01e87f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MultiTarget/GenerateAllProjectReferences.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ foreach ($projectPath in Get-ChildItem -Directory -Depth 0 -Path "$PSScriptRoot/
1818
# Folder layout is expected to match the Community Toolkit.
1919
# Uses the <MultiTarget> values from the source library project as the fallback for the sample project.
2020
# This behavior also implemented in MultiTarget.props for TargetFramework evaluation.
21-
$srcPath = Resolve-Path "$projectPath\src";
21+
$srcPath = Resolve-Path "$($projectPath.FullName)\src";
2222
$srcProjectPath = Get-ChildItem -File "$srcPath\*.csproj";
2323

24-
$samplePath = Resolve-Path "$projectPath\samples\$projectName.Samples";
24+
$samplePath = Resolve-Path "$($projectPath.FullName)\samples\$projectName.Samples";
2525
$sampleProjectPath = Get-ChildItem -File "$samplePath\*.csproj";
2626

2727
if ($srcProjectPath.Length -eq 0) {

0 commit comments

Comments
 (0)