Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <Project Sdk="Microsoft.NET.Sdk.Web">
  2.  
  3. <!-- Your unchanged .csproj contents -->
  4.  
  5.  
  6. <Target Name="DeleteClientSideConfig" BeforeTargets="Build">
  7. <Delete Files="wwwroot/config.json" />
  8. </Target>
  9.  
  10. <Target Name="UpdateConfigDev" Condition=" '$(Configuration)'=='Debug' " AfterTargets="DeleteClientSideConfig">
  11. <Copy SourceFiles="appsettings.Development.json;" DestinationFiles="wwwroot/config.json;" />
  12. </Target>
  13.  
  14. <Target Name="UpdateConfigProd" Condition=" '$(Configuration)'!='Debug' " AfterTargets="DeleteClientSideConfig">
  15. <Copy SourceFiles="appsettings.Production.json;" DestinationFiles="wwwroot/config.json;" />
  16. </Target>
  17.  
  18. </Project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement