Enable project restore for test projects (dotnet/corefx#38151)
authorViktor Hofer <viktor.hofer@microsoft.com>
Sat, 15 Jun 2019 19:27:13 +0000 (21:27 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2019 19:27:13 +0000 (21:27 +0200)
commit5f98ba6a2bc13f1ddd7d839139383db3f30cd00d
tree84409baecbd8993558fd9f8fb690ff3d2cf25a20
parentb00417b88b4824233d98c71413c3bae8f38f2ad0
Enable project restore for test projects (dotnet/corefx#38151)

* Factor out repo restore into seperate props/targets

* Use configuration system msbuild sdk

* Remove XUnit.Runtime.depproj

* Remove TargetGroup usages in test projects

* Fix ILLink configuration

The ILLink package contains netcoreapp2.0 assets which are compatible
with netstandard2.0. Removing the old TargetFramework to restore
successfully.

* Remove usages from TargetGroup in Directory.Build.props

* Remove dead net4* configurations

* Change tests.builds to tests.proj sdk proj

* Make externals dir proj an sdk project

* Consume Microsoft.DotNet.CoreFxTesting as an msbuild sdk

* Use runtimeconfig.template.json

* Remove SupplementalTestData

* Map shared framework version to product version

* Stop binplacing tests

* Move some tool depprojs to targets during restore

* Remove dead code

* Use PackageReference instead of RefFromRuntime in test

* Disable using an apphost

* Copy compression testdata manually cause unicode bug

* Remove target batching in optimizationData

* Reference packaging tools from CoreFx.Private.TestUtilities

Commit migrated from https://github.com/dotnet/corefx/commit/c4c1985531cc1f25c805bbc4801b85c98e0dfee0
148 files changed:
docs/libraries/building/advanced-inner-loop-testing.md
docs/libraries/coding-guidelines/project-guidelines.md
docs/libraries/debugging/unix-instructions.md
eng/Analyzers.props [new file with mode: 0644]
eng/Packaging.props
eng/configurations/targetgroups.props
eng/depProj.targets
eng/dir.traversal.targets
eng/restore/docs.targets [moved from src/libraries/external/docs/docs.depproj with 67% similarity]
eng/restore/illink.targets [new file with mode: 0644]
eng/restore/optimizationData.targets [new file with mode: 0644]
eng/restore/repoRestore.props [new file with mode: 0644]
eng/restore/repoRestore.targets [new file with mode: 0644]
eng/restore/uap-tools.targets [new file with mode: 0644]
src/libraries/Common/tests/StaticTestGenerator/Program.cs
src/libraries/Common/tests/StaticTestGenerator/README.md
src/libraries/Common/tests/System/Xml/ModuleCore/ModuleCore.csproj
src/libraries/Common/tests/System/Xml/XmlCoreTest/Configurations.props
src/libraries/Common/tests/System/Xml/XmlCoreTest/XmlCoreTest.csproj
src/libraries/CoreFx.Private.TestUtilities/Directory.Build.props
src/libraries/CoreFx.Private.TestUtilities/ref/CoreFx.Private.TestUtilities.csproj
src/libraries/CoreFx.Private.TestUtilities/src/CoreFx.Private.TestUtilities.csproj
src/libraries/Directory.Build.props
src/libraries/Directory.Build.targets
src/libraries/Microsoft.CSharp/tests/Microsoft.CSharp.Tests.csproj
src/libraries/Microsoft.Diagnostics.Tracing.EventSource.Redist/tests/Microsoft.Diagnostics.Tracing.EventSource.Redist.Tests.csproj
src/libraries/Microsoft.XmlSerializer.Generator/tests/Microsoft.XmlSerializer.Generator.Tests.csproj
src/libraries/System.Collections/tests/System.Collections.Tests.csproj
src/libraries/System.ComponentModel.Annotations/tests/System.ComponentModel.Annotations.Tests.csproj
src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj
src/libraries/System.Console/tests/System.Console.Tests.csproj
src/libraries/System.Data.Odbc/tests/System.Data.Odbc.Tests.csproj
src/libraries/System.Data.SqlClient/tests/FunctionalTests/System.Data.SqlClient.Tests.csproj
src/libraries/System.Data.SqlClient/tests/StressTests/System.Data.StressFramework/Configurations.props
src/libraries/System.Data.SqlClient/tests/StressTests/System.Data.StressFramework/System.Data.StressFramework.csproj
src/libraries/System.Data.SqlClient/tests/StressTests/System.Data.StressRunner/Configurations.props
src/libraries/System.Data.SqlClient/tests/StressTests/System.Data.StressRunner/System.Data.StressRunner.csproj
src/libraries/System.Diagnostics.Debug/tests/System.Diagnostics.Debug.Tests.csproj
src/libraries/System.Diagnostics.DiagnosticSource/tests/System.Diagnostics.DiagnosticSource.Tests.csproj
src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.TestAssembly/Configurations.props
src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.TestAssembly/System.Diagnostics.FileVersionInfo.TestAssembly.csproj
src/libraries/System.Diagnostics.FileVersionInfo/tests/System.Diagnostics.FileVersionInfo.Tests/System.Diagnostics.FileVersionInfo.Tests.csproj
src/libraries/System.Diagnostics.Process/tests/System.Diagnostics.Process.Tests.csproj
src/libraries/System.Diagnostics.TraceSource/tests/System.Diagnostics.TraceSource.Tests.csproj
src/libraries/System.Diagnostics.Tracing/tests/System.Diagnostics.Tracing.Tests.csproj
src/libraries/System.Drawing.Common/tests/System.Drawing.Common.Tests.csproj
src/libraries/System.Drawing.Primitives/tests/System.Drawing.Primitives.Tests.csproj
src/libraries/System.Globalization.Calendars/tests/CalendarTestWithConfigSwitch/Properties/runtimeconfig.json [deleted file]
src/libraries/System.Globalization.Calendars/tests/CalendarTestWithConfigSwitch/System.Globalization.CalendarsWithConfigSwitch.Tests.csproj
src/libraries/System.Globalization.Calendars/tests/CalendarTestWithConfigSwitch/runtimeconfig.template.json [new file with mode: 0644]
src/libraries/System.Globalization.Calendars/tests/System.Globalization.Calendars.Tests.csproj
src/libraries/System.Globalization/tests/Invariant/Invariant.Tests.csproj
src/libraries/System.Globalization/tests/Invariant/Properties/runtimeconfig.json [deleted file]
src/libraries/System.Globalization/tests/Invariant/runtimeconfig.template.json [new file with mode: 0644]
src/libraries/System.IO.Compression.Brotli/tests/System.IO.Compression.Brotli.Tests.csproj
src/libraries/System.IO.Compression.ZipFile/tests/System.IO.Compression.ZipFile.Tests.csproj
src/libraries/System.IO.Compression/tests/System.IO.Compression.Tests.csproj
src/libraries/System.IO.FileSystem/tests/System.IO.FileSystem.Tests.csproj
src/libraries/System.IO.IsolatedStorage/tests/System.IO.IsolatedStorage.Tests.csproj
src/libraries/System.IO.Packaging/tests/System.IO.Packaging.Tests.csproj
src/libraries/System.IO.Pipes/tests/System.IO.Pipes.Tests.csproj
src/libraries/System.IO.UnmanagedMemoryStream/tests/System.IO.UnmanagedMemoryStream.Tests.csproj
src/libraries/System.IO/tests/System.IO.Tests.csproj
src/libraries/System.Linq.Expressions/tests/System.Linq.Expressions.Tests.csproj
src/libraries/System.Linq.Queryable/tests/System.Linq.Queryable.Tests.csproj
src/libraries/System.Memory/tests/System.Memory.Tests.csproj
src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj
src/libraries/System.Net.Requests/tests/System.Net.Requests.Tests.csproj
src/libraries/System.Net.Security/tests/FunctionalTests/System.Net.Security.Tests.csproj
src/libraries/System.Net.ServicePoint/tests/System.Net.ServicePoint.Tests.csproj
src/libraries/System.Net.WebSockets.Client/tests/System.Net.WebSockets.Client.Tests.csproj
src/libraries/System.Net.WebSockets/tests/System.Net.WebSockets.Tests.csproj
src/libraries/System.ObjectModel/tests/System.ObjectModel.Tests.csproj
src/libraries/System.Private.Xml.Linq/tests/Properties/Configurations.props [moved from src/libraries/external/test-runtime/Configurations.props with 68% similarity]
src/libraries/System.Private.Xml.Linq/tests/Properties/System.Xml.Linq.Properties.Tests.csproj
src/libraries/System.Private.Xml.Linq/tests/Streaming/Configurations.props [moved from src/libraries/external/docs/Configurations.props with 55% similarity]
src/libraries/System.Private.Xml.Linq/tests/Streaming/System.Xml.Linq.Streaming.Tests.csproj
src/libraries/System.Private.Xml.Linq/tests/TreeManipulation/Configurations.props [moved from src/libraries/external/optimizationData/Configurations.props with 55% similarity]
src/libraries/System.Private.Xml.Linq/tests/TreeManipulation/System.Xml.Linq.TreeManipulation.Tests.csproj
src/libraries/System.Private.Xml.Linq/tests/XDocument.Common/Configurations.props
src/libraries/System.Private.Xml.Linq/tests/XDocument.Common/XDocument.Common.csproj
src/libraries/System.Private.Xml.Linq/tests/xNodeReader/Configurations.props [moved from src/libraries/external/ILLink/Configurations.props with 55% similarity]
src/libraries/System.Private.Xml.Linq/tests/xNodeReader/System.Xml.Linq.xNodeReader.Tests.csproj
src/libraries/System.Private.Xml/tests/Writers/XmlWriterApi/System.Xml.RW.XmlWriterApi.Tests.csproj
src/libraries/System.Private.Xml/tests/XmlReader/XmlResolver/System.Xml.RW.XmlSystemPathResolver.Tests.csproj
src/libraries/System.Private.Xml/tests/XmlReaderLib/System.Xml.RW.XmlReaderLib.csproj
src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaSet/System.Xml.XmlSchemaSet.Tests.csproj
src/libraries/System.Private.Xml/tests/XmlSchema/XmlSchemaValidatorApi/System.Xml.XmlSchema.XmlSchemaValidatorApi.Tests.csproj
src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/System.Xml.Xsl.XslCompiledTransformApi.Tests.csproj
src/libraries/System.Private.Xml/tests/Xslt/XslTransformApi/System.Xml.Xsl.XslTransformApi.Tests.csproj
src/libraries/System.Private.Xml/tests/Xslt/XsltCompiler/XsltCompiler.Tests.csproj
src/libraries/System.Reflection.TypeExtensions/tests/System.Reflection.TypeExtensions.Tests.csproj
src/libraries/System.Reflection/tests/TestExe/Configurations.props
src/libraries/System.Reflection/tests/TestExe/System.Reflection.TestExe.csproj
src/libraries/System.Resources.Extensions/tests/System.Resources.Extensions.Tests.csproj
src/libraries/System.Resources.ResourceManager/tests/System.Resources.ResourceManager.Tests.csproj
src/libraries/System.Runtime.Extensions/tests/TestApp/Configurations.props
src/libraries/System.Runtime.Extensions/tests/TestApp/TestApp.csproj
src/libraries/System.Runtime.Extensions/tests/TestAppOutsideOfTPA/Configurations.props
src/libraries/System.Runtime.Extensions/tests/TestAppOutsideOfTPA/TestAppOutsideOfTPA.csproj
src/libraries/System.Runtime.Extensions/tests/VoidMainWithExitCodeApp/Configurations.props
src/libraries/System.Runtime.Extensions/tests/VoidMainWithExitCodeApp/VoidMainWithExitCodeApp.csproj
src/libraries/System.Runtime.InteropServices/tests/System.Runtime.InteropServices.Tests.csproj
src/libraries/System.Runtime.Loader/tests/DefaultContext/System.Runtime.Loader.DefaultContext.Tests.csproj
src/libraries/System.Runtime.Numerics/tests/System.Runtime.Numerics.Tests.csproj
src/libraries/System.Runtime.Serialization.Formatters/tests/System.Runtime.Serialization.Formatters.Tests.csproj
src/libraries/System.Runtime/tests/System.Runtime.Tests.csproj
src/libraries/System.Security.Cryptography.Algorithms/tests/System.Security.Cryptography.Algorithms.Tests.csproj
src/libraries/System.Security.Cryptography.Cng/tests/Configurations.props
src/libraries/System.Security.Cryptography.Cng/tests/System.Security.Cryptography.Cng.Tests.csproj
src/libraries/System.Security.Cryptography.Csp/tests/System.Security.Cryptography.Csp.Tests.csproj
src/libraries/System.Security.Cryptography.Pkcs/tests/System.Security.Cryptography.Pkcs.Tests.csproj
src/libraries/System.Security.Cryptography.Primitives/tests/System.Security.Cryptography.Primitives.Tests.csproj
src/libraries/System.Security.Cryptography.X509Certificates/tests/System.Security.Cryptography.X509Certificates.Tests.csproj
src/libraries/System.Security.Cryptography.Xml/tests/System.Security.Cryptography.Xml.Tests.csproj
src/libraries/System.ServiceModel.Syndication/tests/System.ServiceModel.Syndication.Tests.csproj
src/libraries/System.Text.Encoding/tests/System.Text.Encoding.Tests.csproj
src/libraries/System.Text.Json/tests/System.Text.Json.Tests.csproj
src/libraries/System.Threading.Channels/tests/System.Threading.Channels.Tests.csproj
src/libraries/System.Threading.Tasks/tests/System.Threading.Tasks.Tests.csproj
src/libraries/System.Threading.Thread/tests/DefaultApartmentStateMain/Configurations.props
src/libraries/System.Threading.Thread/tests/DefaultApartmentStateMain/DefaultApartmentStateMain.csproj
src/libraries/System.Threading.Thread/tests/MTAMain/Configurations.props
src/libraries/System.Threading.Thread/tests/MTAMain/MTAMain.csproj
src/libraries/System.Threading.Thread/tests/STAMain/Configurations.props
src/libraries/System.Threading.Thread/tests/STAMain/STAMain.csproj
src/libraries/System.Utf8String.Experimental/tests/System.Utf8String.Experimental.Tests.csproj
src/libraries/System.Windows.Extensions/tests/System.Windows.Extensions.Tests.csproj
src/libraries/build.proj
src/libraries/external/Directory.Build.props
src/libraries/external/Directory.Build.targets
src/libraries/external/ILLink/ILLink.depproj [deleted file]
src/libraries/external/ILLink/illink.runtimeconfig.json [deleted file]
src/libraries/external/binplacePackages/binplacePackages.depproj
src/libraries/external/dir.proj
src/libraries/external/netcoreapp/netcoreapp.depproj
src/libraries/external/netfx/netfx.depproj
src/libraries/external/optimizationData/optimizationData.depproj [deleted file]
src/libraries/external/runtime/runtime.depproj
src/libraries/external/test-runtime/XUnit.Runtime.depproj [deleted file]
src/libraries/external/tools/Configurations.props
src/libraries/external/tools/tools.depproj
src/libraries/post.builds [deleted file]
src/libraries/pretest.builds
src/libraries/shims/ApiCompat.proj
src/libraries/shims/netfxreference.props
src/libraries/tests.builds [deleted file]
src/libraries/tests.proj [new file with mode: 0644]