Skip to content

Commit bba2f80

Browse files
committed
Respond to PR feedback.
Moving DebugType, AssemblySearchPaths, and DesignTimeAssemblySearchPaths to be defaulted for all projects. Moving NoStdLib default to DisableStandardFrameworkResolution.
1 parent db936ed commit bba2f80

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

src/Tasks/Microsoft.NET.Build.Tasks/build/netstandard1.0/Microsoft.NET.DisableStandardFrameworkResolution.targets

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Copyright (c) .NET Foundation. All rights reserved.
1818
<_TargetFrameworkDirectories />
1919
<FrameworkPathOverride />
2020
<TargetFrameworkDirectory />
21+
22+
<!-- all references (even the StdLib) come from packages -->
23+
<NoStdLib Condition="'$(NoStdLib)' == ''">true</NoStdLib>
2124
</PropertyGroup>
2225

2326
</Project>

src/Tasks/Microsoft.NET.Build.Tasks/build/netstandard1.0/Microsoft.NET.Sdk.BeforeCommon.targets

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,16 @@ Copyright (c) .NET Foundation. All rights reserved.
4141

4242
<!-- Default settings for .NET Core and .NET Standard build logic -->
4343
<PropertyGroup Condition="'$(_IsNETCoreOrNETStandard)' == 'true'">
44-
<DebugType Condition="'$(DebugType)' == ''">portable</DebugType>
4544
<AutoUnifyAssemblyReferences Condition="'$(AutoUnifyAssemblyReferences)' == ''">true</AutoUnifyAssemblyReferences>
4645
<DesignTimeAutoUnify Condition="'$(DesignTimeAutoUnify)' == ''">true</DesignTimeAutoUnify>
4746

4847
<GenerateDependencyFile Condition=" '$(GenerateDependencyFile)' == '' ">true</GenerateDependencyFile>
4948

50-
<!-- all references (even the StdLib) come from packages -->
51-
<NoStdLib Condition="'$(NoStdLib)' == ''">true</NoStdLib>
52-
5349
<!-- Force .dll extension for .NETCoreApp and .NETStandard projects even if output type is exe. -->
5450
<TargetExt Condition="'$(TargetExt)' == ''">.dll</TargetExt>
5551

5652
<!-- dependencies coming from the package manager lock file should not be copied locally for .NET Core and .NETStandard projects -->
5753
<CopyLocalLockFileAssemblies Condition="'$(CopyLocalLockFileAssemblies)' == ''">false</CopyLocalLockFileAssemblies>
58-
59-
<!-- Exclude GAC, registry, output directory from search paths. -->
60-
<AssemblySearchPaths Condition="'$(AssemblySearchPaths)' == ''">{CandidateAssemblyFiles};{HintPathFromItem};{TargetFrameworkDirectory};{RawFileName}</AssemblySearchPaths>
61-
<DesignTimeAssemblySearchPaths Condition="'$(DesignTimeAssemblySearchPaths)' == ''">$(AssemblySearchPaths)</DesignTimeAssemblySearchPaths>
6254
</PropertyGroup>
6355

6456
<!-- Set PublishDir here, before Microsoft.Common.targets, to avoid a competing default there. -->

src/Tasks/Microsoft.NET.Build.Tasks/build/netstandard1.0/Microsoft.NET.Sdk.props

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ Copyright (c) .NET Foundation. All rights reserved.
4141

4242
<!-- Default settings for all projects built with this Sdk package -->
4343
<PropertyGroup>
44+
<DebugType>portable</DebugType>
45+
4446
<!-- This will turn off the base UWP-specific 'ResolveNuGetPackages' target -->
4547
<ResolveNuGetPackages>false</ResolveNuGetPackages>
48+
49+
<!-- Exclude GAC, registry, output directory from search paths. -->
50+
<AssemblySearchPaths>{CandidateAssemblyFiles};{HintPathFromItem};{TargetFrameworkDirectory};{RawFileName}</AssemblySearchPaths>
51+
<DesignTimeAssemblySearchPaths>$(AssemblySearchPaths)</DesignTimeAssemblySearchPaths>
4652
</PropertyGroup>
4753

4854
<!-- Temporary hacks to work around bugs -->

src/Tasks/Microsoft.NET.Build.Tasks/build/netstandard1.0/Microsoft.NET.Sdk.targets

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ Copyright (c) .NET Foundation. All rights reserved.
3030
<UsingTask TaskName="GetAssemblyVersion" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
3131
<UsingTask TaskName="GenerateSatelliteAssemblies" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" />
3232

33-
<PropertyGroup Condition="'$(DisableStandardFrameworkResolution)' == ''">
34-
<DisableStandardFrameworkResolution Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">true</DisableStandardFrameworkResolution>
35-
<DisableStandardFrameworkResolution Condition="'$(TargetFrameworkIdentifier)' == '.NETStandard'">true</DisableStandardFrameworkResolution>
33+
<PropertyGroup>
34+
<DisableStandardFrameworkResolution Condition="'$(DisableStandardFrameworkResolution)' == ''">$(_IsNETCoreOrNETStandard)</DisableStandardFrameworkResolution>
3635
</PropertyGroup>
3736

3837
<PropertyGroup>

0 commit comments

Comments
 (0)