Browse Source

Workaround for WebSPA publish issue

Due to aspnet/websdk #114, dotnet publish only copies to the output directory files which existed before the command was run.
pull/190/head
Charles Lowell 8 years ago
parent
commit
e5cc7cd944
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      src/Web/WebSPA/WebSPA.csproj

+ 7
- 0
src/Web/WebSPA/WebSPA.csproj View File

@ -78,6 +78,13 @@
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0-msbuild3-final" />
</ItemGroup>
<!-- workaround for https://github.com/aspnet/websdk/issues/114 -->
<Target Name="AddGeneratedContentItems" BeforeTargets="AssignTargetPaths" DependsOnTargets="PrepareForPublish">
<ItemGroup>
<Content Include="wwwroot/**" CopyToPublishDirectory="PreserveNewest" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder);@(Content)" />
</ItemGroup>
</Target>
<ItemGroup>
<None Update="Dockerfile">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>


Loading…
Cancel
Save