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:
https://github.com/dotnet/roslyn-project-system/issues/1579
This commit is contained in:
Cesar De la Torre 2017-02-16 13:22:42 -08:00
parent fafaf42c63
commit bf6e696ccb
2 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,7 @@ Write-Host "basketPathToPub is $basketPathToPub" -ForegroundColor Yellow
######################################################################################## ########################################################################################
# Delete old eShop dotnet publish bits # Delete old eShop dotnet publish bits
######################################################################################## ########################################################################################
Write-Host "Deleting previous dotnet publish bits from all projects" -ForegroundColor Blue # Write-Host "Deleting previous dotnet publish bits from all projects" -ForegroundColor Blue
remove-item -path $WebMVCPathToPub -Force -Recurse -ErrorAction SilentlyContinue remove-item -path $WebMVCPathToPub -Force -Recurse -ErrorAction SilentlyContinue
remove-item -path $webSPAPathToPub -Force -Recurse -ErrorAction SilentlyContinue remove-item -path $webSPAPathToPub -Force -Recurse -ErrorAction SilentlyContinue

View File

@ -48,6 +48,9 @@
<None Update="Dockerfile"> <None Update="Dockerfile">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None> </None>
<None Update="Pics">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Pics\1.png"> <None Update="Pics\1.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None> </None>