-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Re-enable packages for BuildAllConfigurations #16191
Changes from all commits
361a626
0ede35e
715263f
e9febb5
c0f0fdd
ed5b685
e275580
f89a538
f643be3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 1.0.27-prerelease-01310-03 | ||
| 1.0.27-prerelease-01316-07 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,9 +72,6 @@ | |
| <BlockReflectionAttribute>true</BlockReflectionAttribute> | ||
| </PropertyGroup> | ||
|
|
||
| <!-- Import packaging props --> | ||
| <Import Project="$(MSBuildThisFileDirectory)Packaging.props"/> | ||
|
|
||
| <!-- list of nuget package sources passed to dnu --> | ||
| <ItemGroup Condition="'$(ExcludeInternetFeeds)' != 'true'"> | ||
| <!-- Example to consume local CoreCLR package: | ||
|
|
@@ -152,12 +149,18 @@ | |
| <BuildConfiguration Condition="'$(BuildConfiguration)' == ''">$(TargetGroup)-$(OSGroup)-$(ConfigurationGroup)-$(ArchGroup)</BuildConfiguration> | ||
| <BuildConfigurationImportFile>$(ToolsDir)/configuration/configuration.props</BuildConfigurationImportFile> | ||
|
|
||
| <!-- if PKGPROJ doesn't set BuildConfigurations, make sure it only builds for TargetGroup=package or BuildAllConfigurations --> | ||
| <BuildConfigurations Condition="'$(MSBuildProjectExtension)' == '.pkgproj' AND '$(BuildConfigurations)' == ''">package</BuildConfigurations> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I needed to have a TargetGroup and a BuildConfigurations value so that packages wouldn't just get the running BuildConfiguration, which contains an OSGroup, which would set PackageTargetRuntime: even for identity packages. |
||
|
|
||
| <!-- Need to try and keep the same logic as the native builds as we need this for packaging --> | ||
| <NativeBinDir>$(BinDir)$(OSGroup).$(ArchGroup).$(ConfigurationGroup)/native</NativeBinDir> | ||
| </PropertyGroup> | ||
|
|
||
| <Import Project="$(BuildConfigurationImportFile)" Condition="Exists('$(BuildConfigurationImportFile)')" /> | ||
|
|
||
| <!-- Import packaging props --> | ||
| <Import Project="$(MSBuildThisFileDirectory)Packaging.props"/> | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This reordering can be removed once I put PackageTargetRuntimeSuffix in buildtools |
||
|
|
||
| <!-- set properties for each vertical --> | ||
| <PropertyGroup> | ||
| <BuildingNETCoreAppVertical Condition="'$(BuildingNETCoreAppVertical)' == '' AND ('$(_bc_TargetGroup)'=='netcoreapp' OR '$(BuildAllConfigurations)' == 'true')">true</BuildingNETCoreAppVertical> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,8 @@ | |
| <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| <PropertyGroup> | ||
| <BuildConfigurations> | ||
| uap-Windows_NT; | ||
| uapaot-Windows_NT; | ||
| uap; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Per above, I use the OSGroup agnostic configurations because OSGroup implies a PackageTargetRuntime.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But if we do this, won't we try to build this package in non-Windows builds as well? I believe that would fail since most uap configurations are Windows only.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Only if someone tried to Build UAP targetgroup there... |
||
| uapaot; | ||
| </BuildConfigurations> | ||
| </PropertyGroup> | ||
| </Project> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enables an optionally independent property for the configurations that go in the package. I'm open to other knobs here. Perhaps a better semantic would be ExcludePackageConfigurations, where PackageConfigurations = BuildConfigurations - ExcludePackageConfigurations.