Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Project Sdk="Microsoft.NET.Sdk.Web">
- <!-- Your unchanged .csproj contents -->
- <Target Name="DeleteClientSideConfig" BeforeTargets="Build">
- <Delete Files="wwwroot/config.json" />
- </Target>
- <Target Name="UpdateConfigDev" Condition=" '$(Configuration)'=='Debug' " AfterTargets="DeleteClientSideConfig">
- <Copy SourceFiles="appsettings.Development.json;" DestinationFiles="wwwroot/config.json;" />
- </Target>
- <Target Name="UpdateConfigProd" Condition=" '$(Configuration)'!='Debug' " AfterTargets="DeleteClientSideConfig">
- <Copy SourceFiles="appsettings.Production.json;" DestinationFiles="wwwroot/config.json;" />
- </Target>
- </Project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement