Workaround file locked issue during build

This commit is contained in:
Steve Sanderson 2018-02-15 15:59:00 +00:00
parent 2ebfddc237
commit dcbd7a27eb
1 changed files with 4 additions and 7 deletions

View File

@ -10,14 +10,11 @@
<Import Project="$(MSBuildThisFileDirectory)targets\All.targets" />
<ItemGroup>
<Target Name="BuildBlazorBuildBinary"
BeforeTargets="BlazorCompileRazorComponents">
<!-- Ensures this project is built before the consuming project, but without
adding a runtime dependency on the .dll (to be equivalent to a <PackageDependency>
given that the packed version of this project wouldn't add a .dll reference) -->
<ProjectReference Include="$(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj">
<SetTargetFramework>TargetFramework=netcoreapp2.0</SetTargetFramework>
<PrivateAssets>all</PrivateAssets>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<MSBuild Projects="$(MSBuildThisFileDirectory)Microsoft.AspNetCore.Blazor.Build.csproj" />
</Target>
</Project>