Skip to content

Conversation

@dougbu
Copy link
Contributor

@dougbu dougbu commented Aug 30, 2020

  • always use $([MSBuild]::VersionXYZ(...)) for version checks
  • use $(NETCoreAppFrameworkIdentifier) where it's available
  • move $(KnownAppHostPackOrFrameworkReferenceTfm) setting to Directory.Build.props

nits:

  • do not assume $(TargetFrameworkVersion) starts with a 'v'; valid w/o it
  • add $(_IsMicrosoftNETCoreApp20OrOlder) property in OpenAPI targets file
    • evaluate the Condition once instead of three times

…nsistently

- always use `$([MSBuild]::VersionXYZ(...))` for version checks
- use `$(NETCoreAppFrameworkIdentifier)` where it's available
- move `$(KnownAppHostPackOrFrameworkReferenceTfm)` setting to Directory.Build.props
  - use it to correct `@(KnownFrameworkReference)` updates
  - metadata of those items still uses `netcoreapp5.0`
  - see also dotnet/efcore#22279 (comment)

nits:
- do not assume `$(TargetFrameworkVersion)` starts with a 'v'; valid w/o it
- add `$(_IsMicrosoftNETCoreApp20OrOlder)` property in OpenAPI targets file
  - evaluate the `Condition` once instead of three times
@dougbu dougbu requested review from a team and pranavkm August 30, 2020 21:00
@Pilchie Pilchie added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Aug 31, 2020
@dougbu dougbu merged commit 1f84e28 into release/5.0 Aug 31, 2020
@dougbu dougbu deleted the dougbu/knownreferences branch August 31, 2020 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants