Skip to content

Commit

Permalink
Merge pull request dotnet/corefx#15335 from ericstj/useConfigurationI…
Browse files Browse the repository at this point in the history
…nExternal

Use BuildConfigurations for external

Commit migrated from dotnet/corefx@8252e11
  • Loading branch information
ericstj authored Jan 19, 2017
2 parents 279d64f + 1d4ee4a commit 807198e
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/libraries/Tools/GenerateProps/targetgroups.props
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<TargetingPackNugetPackageId>Microsoft.TargetingPack.NETFramework.v4.6.3</TargetingPackNugetPackageId>
<NuGetTargetMoniker>.NETFramework,Version=v4.6.3</NuGetTargetMoniker>
<Imports>net463</Imports>
<CompatibleWith>netstandard2.0</CompatibleWith>
<CompatibleWith>netstandard</CompatibleWith>
</TargetGroups>
<TargetGroups Include="win8">
<NuGetTargetMoniker>Windows,Version=v8.0</NuGetTargetMoniker>
Expand Down
3 changes: 1 addition & 2 deletions src/libraries/buildvertical.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

<!-- Runs during traversal to select which projects and configurations of those projects to build -->
<Target Name="AnnotateAndFilterProjects"
BeforeTargets="BuildAllProjects;TestAllProjects"
Condition="!$(MSBuildProjectFullPath.EndsWith('.proj'))">
BeforeTargets="BuildAllProjects;TestAllProjects">

<!-- find the best configuration for each project, projects that shouldn't build for this configuration
return an empty item. -->
Expand Down
8 changes: 8 additions & 0 deletions src/libraries/external/coreclr/Configurations.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
netcoreapp;
</BuildConfigurations>
</PropertyGroup>
</Project>
5 changes: 0 additions & 5 deletions src/libraries/external/coreclr/coreclr.depproj
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<BuildConfigurations>
netcoreapp;
</BuildConfigurations>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<OutputPath>$(RuntimePath)</OutputPath>
Expand Down
4 changes: 2 additions & 2 deletions src/libraries/external/dir.proj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<!-- Build for all configurations -->
<ItemGroup>
<Project Include="coreclr/coreclr.depproj" />
<Project Include="netstandard20/netstandard20.depproj" />
<Project Include="net461/net461.depproj" />
<Project Include="netstandard/netstandard.depproj" />
<Project Include="netfx/netfx.depproj" />
<Project Include="test-runtime/XUnit.Runtime.depproj" />
</ItemGroup>

Expand Down
10 changes: 10 additions & 0 deletions src/libraries/external/netfx/Configurations.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Include netcoreapp since we need to generate facades between desktop and netcoreapp -->
<BuildConfigurations>
net461;
netcoreapp;
</BuildConfigurations>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<BuildConfigurations>
netcoreapp;
netfx;
</BuildConfigurations>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<NuGetDeploySourceItem>Reference</NuGetDeploySourceItem>
<NuGetTargetMoniker>.NETFramework,Version=v4.6.1</NuGetTargetMoniker>
<NuGetTargetMoniker Condition="'$(TargetGroup)' == 'netcoreapp'">.NETFramework,Version=v4.6.1</NuGetTargetMoniker>
<NugetRuntimeIdentifier>None</NugetRuntimeIdentifier>
<OutputPath>$(NetFxRefPath)</OutputPath>
</PropertyGroup>
Expand Down
File renamed without changes.
8 changes: 8 additions & 0 deletions src/libraries/external/netstandard/Configurations.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<BuildConfigurations>
netstandard;
</BuildConfigurations>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
<PropertyGroup>
<BuildConfigurations>
netstandard;
</BuildConfigurations>
</PropertyGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.props))\dir.props" />
<PropertyGroup>
<NuGetDeploySourceItem>Reference</NuGetDeploySourceItem>
<NuGetTargetMoniker>.NETStandard,Version=v2.0</NuGetTargetMoniker>
<NugetRuntimeIdentifier>None</NugetRuntimeIdentifier>
<OutputPath>$(NetStandardRefPath)</OutputPath>
</PropertyGroup>
Expand Down

0 comments on commit 807198e

Please sign in to comment.