Skip to content

Instantly share code, notes, and snippets.

@TheEskhaton
Created November 29, 2020 19:09
Show Gist options
  • Save TheEskhaton/4f20fd050c4da545e569c4f77dbec728 to your computer and use it in GitHub Desktop.
Save TheEskhaton/4f20fd050c4da545e569c4f77dbec728 to your computer and use it in GitHub Desktop.
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<Target Name="BuildCssDev" Condition="'$(Configuration)' == 'Debug'" BeforeTargets="Build">
<Exec Command="npm run build-css-dev" />
</Target>
<Target Name="BuildCssDev" Condition="'$(Configuration)' == 'Release'" BeforeTargets="Build">
<Exec Command="npm run build-css-prod" />
</Target>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.0" PrivateAssets="all" />
<PackageReference Include="System.Net.Http.Json" Version="5.0.0" />
</ItemGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment