diff options
author | Eric StJohn <ericstj@microsoft.com> | 2019-01-29 01:18:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 01:18:49 +0300 |
commit | a9106dbe9e147adfe99170825e09acbe67ab7acc (patch) | |
tree | 941f324a9b47fddf6e37c6d717c31cd1ef2e40f3 /eng/references.targets | |
parent | 65acfff45c5603968660aeed4fa7a5d2234f488d (diff) |
Remove buildtools imports from Directory.Build.* (dotnet/corefx#34001)
* Remove buildtools imports from Directory.Build.*
Remove buildtools imports and implement remaining functionality in CoreFx.
I was able to do most of what BuildTools was doing with 3 exceptions, which will be split into separate issues.
1. Test shared framework deps file: GenerateDepsJson. We need to port this task to arcade or change how we test to not need it.
2. codeOptimization.targets -> should be moved to arcade, work is pending.
3. optionalTooling.targets -> move to a CSProj that is restored by the official build workflow.
* Address feedack, fix unix and UAP build issues
* Fix UWP, Tizen, and AllConfigurations build
* Remove buildtools dependency from package testing
* Remove a few more buildtools dependencies
* Eliminate RunningOnUnix property
* Remove NuGetTargetMoniker from shims.proj
* Remove ResourcesFolderPath
* Fix Microsoft.XmlSerializer.Generator.Tests
* Specify NuGetTargetMoniker for shims
* Remove a couple remaining ToolsDir uses
Commit migrated from https://github.com/dotnet/corefx/commit/49d249fa023e8575dba7e35febb4446e4fa13f98
Diffstat (limited to 'eng/references.targets')
-rw-r--r-- | eng/references.targets | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/eng/references.targets b/eng/references.targets new file mode 100644 index 00000000000..7c9f43fca1a --- /dev/null +++ b/eng/references.targets @@ -0,0 +1,38 @@ +<Project> + <PropertyGroup> + <ContractOutputPath>$(RefPath)</ContractOutputPath> + <FrameworkPathOverride>$(ContractOutputPath)</FrameworkPathOverride> + <AssemblySearchPaths>$(AssemblySearchPaths);$(ContractOutputPath);{RawFileName}</AssemblySearchPaths> + <!-- Disable RAR from transitively discovering dependencies for References --> + <_FindDependencies>false</_FindDependencies> + <!-- + We don't use any of MSBuild's resolution logic for resolving the framework, so just set these two properties to any folder + that exists to skip the GenerateReferenceAssemblyPaths task (not target) and to prevent it from outputting a warning (MSB3644). + Need to set these after the common targets import. + --> + <_TargetFrameworkDirectories>$(MSBuildThisFileDirectory)</_TargetFrameworkDirectories> + <_FullFrameworkReferenceAssemblyPaths>$(MSBuildThisFileDirectory)</_FullFrameworkReferenceAssemblyPaths> + </PropertyGroup> + <PropertyGroup Condition="'$(IncludeDefaultReferences)' == ''"> + <IncludeDefaultReferences Condition="'$(MSBuildProjectExtension)' == '.csproj'">true</IncludeDefaultReferences> + <IncludeDefaultReferences Condition="'$(MSBuildProjectExtension)' == '.vbproj'">true</IncludeDefaultReferences> + </PropertyGroup> + <Target Name="SetupDefaultReferences"> + <ItemGroup Condition="'$(IncludeDefaultReferences)' =='true'"> + <!-- netstandard is a default reference whenever building for NETStandard or building an implementation assembly --> + <DefaultReference Condition="($(NuGetTargetMoniker.StartsWith('.NETStandard')) OR '$(IsReferenceAssembly)' != 'true') AND Exists('$(RefPath)netstandard.dll')" Include="netstandard" /> + </ItemGroup> + </Target> + <Target Name="UpdateReferenceItems" DependsOnTargets="SetupDefaultReferences" BeforeTargets="AddReferencesDynamically"> + <ItemGroup> + <Reference Include="@(DefaultReference)" /> + </ItemGroup> + <ItemGroup> + <!-- Simple name references will be resolved from the targeting pack folders and should never be copied to output --> + <Reference Condition="'%(Reference.Extension)' != '.dll'"> + <Private>false</Private> + </Reference> + </ItemGroup> + </Target> + <Target Name="AddReferencesDynamically" BeforeTargets="BeforeResolveReferences;ResolveAssemblyReferences" /> +</Project>
\ No newline at end of file |