File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ New-Item -ItemType Directory -Force -Path $projectPropsOutputDir -ErrorAction Si
1717foreach ($projectPath in Get-ChildItem - Directory - Path " $PSScriptRoot /../../components/*" ) {
1818 $srcPath = Resolve-Path " $ ( $projectPath.FullName ) \src" ;
1919 $srcProjectPath = Get-ChildItem - File " $srcPath \*.csproj" ;
20- $sampleProjectPath = " $ ( $projectPath.FullName ) \samples\*.csproj" ;
20+ $sampleProjectPath = Get-ChildItem - File " $ ( $projectPath.FullName ) \samples\*.csproj" - ErrorAction SilentlyContinue ;
2121
2222 # Generate <ProjectReference>s for sample project
2323 # Use source project MultiTarget as first fallback.
24- if (Test-Path $sampleProjectPath ) {
24+ if ($null -ne $sampleProjectPath -and ( Test-Path $sampleProjectPath ) ) {
2525 & $PSScriptRoot \GenerateMultiTargetAwareProjectReferenceProps.ps1 - projectPath $sampleProjectPath - outputPath " $projectPropsOutputDir /$ ( $sampleProjectPath.BaseName ) .props" - MultiTarget $MultiTarget
2626 }
2727
You can’t perform that action at this time.
0 commit comments