File tree Expand file tree Collapse file tree 6 files changed +18
-18
lines changed
Microsoft.Extensions.HostFactoryResolver/src
Microsoft.NETCore.Platforms/src
Microsoft.Windows.Compatibility/src
pkg/runtime.native.System.IO.Ports Expand file tree Collapse file tree 6 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 3
3
package infra globs for .cs files. -->
4
4
<PropertyGroup >
5
5
<TargetFramework >netstandard2.0</TargetFramework >
6
- <!-- The project doesn't compile anything therefore create the package during build. -->
7
- <GeneratePackageOnBuild Condition =" '$(BuildingAnOfficialBuildLeg)' != 'true'" >true</GeneratePackageOnBuild >
8
6
<IsShipping >false</IsShipping >
9
7
<SuppressDependenciesWhenPacking >true</SuppressDependenciesWhenPacking >
10
8
<!-- This is a source package which includes all .cs files by default. -->
Original file line number Diff line number Diff line change 6
6
<PackageId >$(MSBuildProjectName)</PackageId >
7
7
<AvoidRestoreCycleOnSelfReference >true</AvoidRestoreCycleOnSelfReference >
8
8
<AssemblyName >Microsoft.NETCore.Platforms.BuildTasks</AssemblyName >
9
- <!-- The only output of this project is the package as the tasks aren't packaged. -->
10
- <GeneratePackageOnBuild Condition =" '$(BuildingAnOfficialBuildLeg)' != 'true'" >true</GeneratePackageOnBuild >
11
9
12
10
<IsSourceProject >false</IsSourceProject >
13
11
<IsPackable >true</IsPackable >
Original file line number Diff line number Diff line change 10
10
<PackageDescription >This Windows Compatibility Pack provides access to APIs that were previously available only for .NET Framework. It can be used from both .NET Core as well as .NET Standard.</PackageDescription >
11
11
</PropertyGroup >
12
12
13
- <!-- By default, don't build the project references to avoid unnecessary incremental builds. -->
14
- <ItemDefinitionGroup Condition =" '$(BuildProjectReferences)' != 'true'" >
15
- <ProjectReference >
16
- <BuildReference >false</BuildReference >
17
- </ProjectReference >
18
- </ItemDefinitionGroup >
19
-
20
13
<ItemGroup >
21
14
<ProjectReference Include =" $(LibrariesProjectRoot)Microsoft.Win32.Registry.AccessControl\src\Microsoft.Win32.Registry.AccessControl.csproj" />
22
15
<ProjectReference Include =" $(LibrariesProjectRoot)Microsoft.Win32.SystemEvents\src\Microsoft.Win32.SystemEvents.csproj" />
23
16
<ProjectReference Include =" $(LibrariesProjectRoot)System.CodeDom\src\System.CodeDom.csproj" />
24
17
<ProjectReference Include =" $(LibrariesProjectRoot)System.ComponentModel.Composition\src\System.ComponentModel.Composition.csproj" />
25
- <ProjectReference Include =" $(LibrariesProjectRoot)System.ComponentModel.Composition.Registration\src\System.ComponentModel.Composition.Registration.csproj"
26
- Condition =" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netstandard2.1'))" />
27
18
<ProjectReference Include =" $(LibrariesProjectRoot)System.Configuration.ConfigurationManager\src\System.Configuration.ConfigurationManager.csproj" />
28
19
<ProjectReference Include =" $(LibrariesProjectRoot)System.Data.Odbc\src\System.Data.Odbc.csproj" />
29
20
<ProjectReference Include =" $(LibrariesProjectRoot)System.Data.OleDb\src\System.Data.OleDb.csproj" />
49
40
<ProjectReference Include =" $(LibrariesProjectRoot)System.Threading.AccessControl\src\System.Threading.AccessControl.csproj" />
50
41
</ItemGroup >
51
42
43
+ <ItemGroup Condition =" $([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'netstandard2.1'))" >
44
+ <ProjectReference Include =" $(LibrariesProjectRoot)System.ComponentModel.Composition.Registration\src\System.ComponentModel.Composition.Registration.csproj" />
45
+ </ItemGroup >
46
+
52
47
<ItemGroup >
53
48
<PackageReference Include =" System.Data.SqlClient" Version =" $(SystemDataSqlClientVersion)" />
54
49
<PackageReference Include =" System.ServiceModel.Primitives;
Original file line number Diff line number Diff line change 2
2
3
3
<ItemGroup >
4
4
<PackageReference Include =" Microsoft.DotNet.Build.Tasks.Packaging" Version =" $(MicrosoftDotNetBuildTasksPackagingVersion)" />
5
+ </ItemGroup >
5
6
6
- < ProjectReference Include = " $(MSBuildThisFileDirectory)System.Runtime.Experimental\ref\System.Runtime.Experimental.csproj "
7
- Condition = " '$(BuildAllConfigurations)' == 'true' " />
7
+ < ItemGroup Condition = " '$(BuildAllConfigurations)' == 'true' " >
8
+ < ProjectReference Include = " $(MSBuildThisFileDirectory)System.Runtime.Experimental\ref\System.Runtime.Experimental.csproj " />
8
9
<ProjectReference Include =" $(PkgDir)*\*.proj" Exclude =" $(PkgDir)test\*" />
9
10
<ProjectReference Include =" $(MSBuildThisFileDirectory)*\src\*.*proj"
10
- Condition =" '$(BuildAllConfigurations)' == 'true'"
11
- Exclude =" $(MSBuildThisFileDirectory)*\src\**\*.shproj" />
11
+ Exclude =" $(MSBuildThisFileDirectory)*\src\**\*.shproj" />
12
+ <!-- Don't build *projs again during the Pack task that have already been built. -->
13
+ <ProjectReference Update =" @(ProjectReference)"
14
+ AdditionalProperties =" NoBuild=true" />
12
15
</ItemGroup >
13
16
14
17
<!-- Need the PackageIndexFile file property from baseline.props -->
Original file line number Diff line number Diff line change 1
1
<Project DefaultTargets =" Build" >
2
2
<Import Project =" $([MSBuild]::GetPathOfFileAbove(Directory.Build.props))" />
3
3
4
- <ItemGroup Condition = " '$(BuildAllConfigurations)' == 'true' " >
4
+ <ItemGroup >
5
5
<!-- identity project built in AllConfigurations leg, runtime specific projects are included through netcoreapp.rids.props -->
6
6
<Project Include =" $(MSBuildProjectName).pkgproj" />
7
7
</ItemGroup >
Original file line number Diff line number Diff line change 7
7
<ItemGroup >
8
8
<_allSrc Include =" $(MSBuildThisFileDirectory)*\src\*.csproj"
9
9
Exclude =" @(ProjectExclusions)" />
10
+ <!-- Don't build ProjectReferences of the compat pack in a traversal build to avoid unnecessary incremental builds. -->
11
+ <_allSrc Update =" $(MSBuildThisFileDirectory)Microsoft.Windows.Compatibility\src\Microsoft.Windows.Compatibility.csproj"
12
+ AdditionalProperties =" BuildProjectReferences=false" />
13
+ <!-- Only build the compat pack in the allconfigurations leg. -->
14
+ <_allSrc Remove =" $(MSBuildThisFileDirectory)Microsoft.Windows.Compatibility\src\Microsoft.Windows.Compatibility.csproj"
15
+ Condition =" '$(BuildAllConfigurations)' != 'true'" />
10
16
<NonNetCoreAppProject Include =" @(_allSrc)"
11
17
Exclude =" @(NetCoreAppLibrary->'%(Identity)\src\%(Identity).csproj')" />
12
18
<NetCoreAppProject Include =" $(CoreLibProject);
You can’t perform that action at this time.
0 commit comments