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
17
17
foreach ($projectPath in Get-ChildItem - Directory - Path " $PSScriptRoot /../../components/*" ) {
18
18
$srcPath = Resolve-Path " $ ( $projectPath.FullName ) \src" ;
19
19
$srcProjectPath = Get-ChildItem - File " $srcPath \*.csproj" ;
20
- $sampleProjectPath = " $ ( $projectPath.FullName ) \samples\*.csproj" ;
20
+ $sampleProjectPath = Get-ChildItem - File " $ ( $projectPath.FullName ) \samples\*.csproj" - ErrorAction SilentlyContinue ;
21
21
22
22
# Generate <ProjectReference>s for sample project
23
23
# Use source project MultiTarget as first fallback.
24
- if (Test-Path $sampleProjectPath ) {
24
+ if ($null -ne $sampleProjectPath -and ( Test-Path $sampleProjectPath ) ) {
25
25
& $PSScriptRoot \GenerateMultiTargetAwareProjectReferenceProps.ps1 - projectPath $sampleProjectPath - outputPath " $projectPropsOutputDir /$ ( $sampleProjectPath.BaseName ) .props" - MultiTarget $MultiTarget
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments