Skip to content

Commit bf6e696

Browse files
Fix: Manual update to .CSPROJ file XML as VS 2017 was throwing an error when trying to go to the pics folder properties to include it in the output directoy. Added:
<None Update="Pics"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </None> See possible related bug in VS 2017: dotnet/project-system#1579
1 parent fafaf42 commit bf6e696

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

build-bits.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Write-Host "basketPathToPub is $basketPathToPub" -ForegroundColor Yellow
5252
########################################################################################
5353
# Delete old eShop dotnet publish bits
5454
########################################################################################
55-
Write-Host "Deleting previous dotnet publish bits from all projects" -ForegroundColor Blue
55+
# Write-Host "Deleting previous dotnet publish bits from all projects" -ForegroundColor Blue
5656

5757
remove-item -path $WebMVCPathToPub -Force -Recurse -ErrorAction SilentlyContinue
5858
remove-item -path $webSPAPathToPub -Force -Recurse -ErrorAction SilentlyContinue

src/Services/Catalog/Catalog.API/Catalog.API.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
<None Update="Dockerfile">
4949
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
5050
</None>
51+
<None Update="Pics">
52+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
53+
</None>
5154
<None Update="Pics\1.png">
5255
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
5356
</None>

0 commit comments

Comments
 (0)