Skip to content

Commit

Permalink
Use the source-built version of ref packs and don't use app host when…
Browse files Browse the repository at this point in the history
… building in source-build (#64055) (#64650)

* Use the source-built version of ref packs and don't use app host when building in source-build.

* Fix typo.
  • Loading branch information
crummel committed Oct 12, 2022
1 parent cd4ba7b commit a9c49e8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
<Project>
<!-- use the source-built version of the reference packs if building in source-build -->
<ItemGroup Condition="'$(DotNetBuildFromSource)' == 'true'">
<KnownFrameworkReference Update="Microsoft.NETCore.App">
<TargetingPackVersion Condition="'%(TargetFramework)' == 'net6.0'">6.0.0</TargetingPackVersion>
</KnownFrameworkReference>
<KnownFrameworkReference Update="Microsoft.AspNetCore.App">
<TargetingPackVersion Condition="'%(TargetFramework)' == 'net6.0'">6.0.0</TargetingPackVersion>
</KnownFrameworkReference>
</ItemGroup>

<!-- do not restore or use the 6.0 app host in source-build -->
<PropertyGroup Condition="'$(DotNetBuildFromSource)' == 'true'">
<UseAppHost>false</UseAppHost>
</PropertyGroup>

<Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" />
<Import Project="eng\targets\Imports.targets" />
</Project>

0 comments on commit a9c49e8

Please sign in to comment.