-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use RuntimeFrameworkVersion in builds (#534)
* Use RuntimeFrameworkVersion instead of depending on the shared framework. * Setting RuntimeFrameworkVersion conditionally for netcoreapp3.x projects * Add additional logic to minimize conflicts and accomodate needs of building dotnet-wpf-int; Update dependencies;
- Loading branch information
1 parent
ae0597e
commit 5fbd455
Showing
6 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<RuntimeFrameworkVersion Condition="'$(MicrosoftNETCoreAppVersion)'!='' And '$(NoTargets)'!='true'">$(MicrosoftNETCoreAppVersion)</RuntimeFrameworkVersion> | ||
</PropertyGroup> | ||
|
||
<!-- | ||
Explicitly import Microsoft.NETCore.Platforms to prevent using the one from the SDK, which | ||
usually lags behind the version that WPF gets from CoreFx packages | ||
--> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETCore.Platforms" Version="$(MicrosoftNETCorePlatformsVersion)" Condition="'$(MSBuildProjectExtension)'!='.vcxproj'"/> | ||
</ItemGroup> | ||
|
||
<!-- workaround for package downgrade in Microsoft.NetCore.Platforms --> | ||
<PropertyGroup> | ||
<DisableImplicitNETCorePlatformsReference>true</DisableImplicitNETCorePlatformsReference> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<Project> | ||
<!-- | ||
Explicitly import Microsoft.NETCore.Platforms to prevent using the one from the SDK, which | ||
usually lags behind the version that WPF gets from CoreFx packages | ||
--> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETCore.Platforms" Version="$(MicrosoftNETCorePlatformsVersion)" Condition="'$(MSBuildProjectExtension)'!='.vcxproj'"/> | ||
<AdditionalPackageReference Include="Microsoft.NETCore.Platforms" Version="$(MicrosoftNETCorePlatformsVersion)" Condition="'$(ManagedCxx)'=='true'"/> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<!-- If TargetFramework is not netcoreapp3.x, then reset RuntimeFrameworkVersion --> | ||
<RuntimeFrameworkVersion Condition="!$(TargetFramework.StartsWith('netcoreapp3.'))" /> | ||
</PropertyGroup> | ||
</Project> |