Skip to content

Commit 139129b

Browse files
committed
Use TargetFramework singular to avoid outer builds
Use TargetFramework instead of TargetFrameworks property whenever a projects only targets a single target framework. This avoid unnecessary outer builds and evaluations and makes the build faster.
1 parent 3d8cf52 commit 139129b

230 files changed

Lines changed: 229 additions & 230 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libraries/Microsoft.CSharp/ref/Microsoft.CSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
3+
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
44
<Nullable>enable</Nullable>
55
</PropertyGroup>
66
<ItemGroup>

src/libraries/Microsoft.Extensions.Logging.Abstractions/gen/Microsoft.Extensions.Logging.Generators.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0</TargetFrameworks>
4+
<TargetFramework>netstandard2.0</TargetFramework>
55
<AssemblyName>$(MSBuildThisFileName)</AssemblyName>
66
<RootNamespace>$(MSBuildThisFileName)</RootNamespace>
77
<StringResourcesClassName>SR</StringResourcesClassName>

src/libraries/Microsoft.VisualBasic.Core/ref/Microsoft.VisualBasic.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
3+
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
44
<Nullable>enable</Nullable>
55
</PropertyGroup>
66
<ItemGroup>

src/libraries/Microsoft.Win32.Primitives/ref/Microsoft.Win32.Primitives.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
3+
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
44
<Nullable>enable</Nullable>
55
</PropertyGroup>
66
<ItemGroup>

src/libraries/Microsoft.Win32.Primitives/src/Microsoft.Win32.Primitives.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
4-
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
4+
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77
<ItemGroup>

src/libraries/Microsoft.Win32.Registry/ref/Microsoft.Win32.Registry.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
3+
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
44
<Nullable>enable</Nullable>
55
</PropertyGroup>
66
<ItemGroup>

src/libraries/Microsoft.XmlSerializer.Generator/src/Microsoft.XmlSerializer.Generator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<StringResourcesPath>..\..\System.Private.Xml\src\Resources\Strings.resx</StringResourcesPath>
66
<StringResourcesName>FxResources.$(AssemblyName.Replace('-', '_')).SR</StringResourcesName>
77
<OutputType>Exe</OutputType>
8-
<TargetFrameworks>netstandard2.0</TargetFrameworks>
8+
<TargetFramework>netstandard2.0</TargetFramework>
99
<EnableSingleFileAnalyzer>false</EnableSingleFileAnalyzer>
1010
<IsPackable>true</IsPackable>
1111
<PackageId>$(MSBuildProjectName)</PackageId>

src/libraries/System.AppContext/ref/System.AppContext.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
3+
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
44
<Nullable>enable</Nullable>
55
</PropertyGroup>
66
<ItemGroup>

src/libraries/System.AppContext/src/System.AppContext.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<IsPartialFacadeAssembly>true</IsPartialFacadeAssembly>
4-
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
4+
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77
<ItemGroup>

src/libraries/System.Buffers/ref/System.Buffers.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
3+
<TargetFramework>$(NetCoreAppCurrent)</TargetFramework>
44
<Nullable>enable</Nullable>
55
</PropertyGroup>
66
<ItemGroup>

0 commit comments

Comments
 (0)