From: Mikayla Hutchinson Date: Fri, 15 Jul 2016 19:11:49 +0000 (-0400) Subject: Merge pull request #3282 from mhutch/netstandard-build X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=8f130a6e17c3729f32c3bf930941ab6587f6fe38;hp=f3c5893d994437b8a0b0dae8fd6ce6ea847b7389;p=mono.git Merge pull request #3282 from mhutch/netstandard-build PCL5/netstandard MSBuild support --- diff --git a/.gitmodules b/.gitmodules index 2025d14474d..7c8d2d14e8b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -29,3 +29,9 @@ [submodule "external/nunit-lite"] path = external/nunit-lite url = git://github.com/mono/NUnitLite.git +[submodule "external/nuget-buildtasks"] + path = external/nuget-buildtasks + url = git://github.com/mono/NuGet.BuildTasks +[submodule "external/buildtools"] + path = external/buildtools + url = git://github.com/mono/buildtools.git diff --git a/external/buildtools b/external/buildtools new file mode 160000 index 00000000000..a446ae466ce --- /dev/null +++ b/external/buildtools @@ -0,0 +1 @@ +Subproject commit a446ae466ce729b6732133f9b359590ae12030e6 diff --git a/external/nuget-buildtasks b/external/nuget-buildtasks new file mode 160000 index 00000000000..04bdab55d8d --- /dev/null +++ b/external/nuget-buildtasks @@ -0,0 +1 @@ +Subproject commit 04bdab55d8de9edcf628694cfd2001561e8f8e60 diff --git a/mcs/build/profiles/xbuild_12.make b/mcs/build/profiles/xbuild_12.make index a0b681071dd..f8a39cb48f0 100644 --- a/mcs/build/profiles/xbuild_12.make +++ b/mcs/build/profiles/xbuild_12.make @@ -6,6 +6,4 @@ PARENT_PROFILE = ../net_4_x/ DEFAULT_REFERENCES = -r:$(topdir)/class/lib/net_4_x/mscorlib.dll PROFILE_MCS_FLAGS := $(PROFILE_MCS_FLAGS) -d:XBUILD_12 -RESGEN_EXE = $(topdir)/class/lib/net_4_x/resgen.exe - XBUILD_VERSION = 12.0 diff --git a/mcs/build/rules.make b/mcs/build/rules.make index eae908e3add..8c05d7e273c 100644 --- a/mcs/build/rules.make +++ b/mcs/build/rules.make @@ -45,9 +45,9 @@ INTERNAL_GMCS = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PR INTERNAL_ILASM = $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/ilasm.exe INTERNAL_CSC = $(RUNTIME) $(RUNTIME_FLAGS) $(CSC_LOCATION) -RESGEN_EXE = $(topdir)/class/lib/$(PROFILE)/resgen.exe +RESGEN_EXE = $(topdir)/class/lib/$(PROFILE)/$(PARENT_PROFILE)resgen.exe INTERNAL_RESGEN = $(RUNTIME) $(RUNTIME_FLAGS) $(RESGEN_EXE) -RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN) +RESGEN = MONO_PATH="$(topdir)/class/lib/$(PROFILE)/$(PARENT_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(INTERNAL_RESGEN) STRING_REPLACER = MONO_PATH="$(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/$(BUILD_TOOLS_PROFILE)/cil-stringreplacer.exe depsdir = $(topdir)/build/deps diff --git a/mcs/class/Makefile b/mcs/class/Makefile index 42f36014e31..4f4528e4ee3 100644 --- a/mcs/class/Makefile +++ b/mcs/class/Makefile @@ -316,7 +316,7 @@ binary_reference_assemblies_SUBDIRS := reference-assemblies net_4_x_SUBDIRS := $(net_4_x_dirs) $(xbuild_4_0_dirs) net_4_x_PARALLEL_SUBDIRS := $(net_4_x_parallel_dirs) aot-compiler xbuild_12_SUBDIRS := $(xbuild_4_0_dirs) -xbuild_14_SUBDIRS := $(xbuild_4_0_dirs) +xbuild_14_SUBDIRS := $(xbuild_4_0_dirs) Microsoft.NuGet.Build.Tasks include ../build/rules.make diff --git a/mcs/class/Microsoft.NuGet.Build.Tasks/Makefile b/mcs/class/Microsoft.NuGet.Build.Tasks/Makefile new file mode 100644 index 00000000000..e3561d4fb47 --- /dev/null +++ b/mcs/class/Microsoft.NuGet.Build.Tasks/Makefile @@ -0,0 +1,35 @@ +thisdir = class/Microsoft.NuGet.Build.Tasks +SUBDIRS = +include ../../build/rules.make + +XBUILD_DIR=$(topdir)/tools/xbuild +include $(XBUILD_DIR)/xbuild.make + +NUGET_BUILDTASKS_REPO_DIR=$(topdir)/../external/nuget-buildtasks +NUGET_BUILDTASKS_TARGETS_DIR = $(mono_libdir)/mono/xbuild/Microsoft/NuGet + +LIBRARY = Microsoft.NuGet.Build.Tasks.dll +LIBRARY_INSTALL_DIR = $(NUGET_BUILDTASKS_TARGETS_DIR) + +KEY_FILE = $(NUGET_BUILDTASKS_REPO_DIR)/build/PublicKey.snk +SIGN_FLAGS = /delaysign /keyfile:$(KEY_FILE) + +RESOURCE_DEFS = Microsoft.NuGet.Build.Tasks.Strings,$(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/Strings.resx + +LIB_REFS = $(PARENT_PROFILE)System \ + $(PARENT_PROFILE)System.Core \ + $(PARENT_PROFILE)System.Data \ + $(PARENT_PROFILE)System.Xml \ + $(PARENT_PROFILE)System.Xml.Linq \ + $(PARENT_PROFILE)System.Runtime.Serialization \ + $(XBUILD_UTILITIES) \ + $(XBUILD_FRAMEWORK) + +LIB_MCS_FLAGS = \ + -nowarn:3021 \ + $(SIGN_FLAGS) + +EXTRA_DISTFILES = \ + $(NUGET_BUILDTASKS_REPO_DIR)/build/PublicKey.snk + +include ../../build/library.make diff --git a/mcs/class/Microsoft.NuGet.Build.Tasks/xbuild_14_Microsoft.NuGet.Build.Tasks.dll.sources b/mcs/class/Microsoft.NuGet.Build.Tasks/xbuild_14_Microsoft.NuGet.Build.Tasks.dll.sources new file mode 100644 index 00000000000..3fa9acd4f78 --- /dev/null +++ b/mcs/class/Microsoft.NuGet.Build.Tasks/xbuild_14_Microsoft.NuGet.Build.Tasks.dll.sources @@ -0,0 +1,164 @@ +../../../external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/Delegates.cs +../../../external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/ExceptionFromResource.cs +../../../external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/InternalsVisibleTo.cs +../../../external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/NativeMethods.cs +../../../external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/NuGetPackageObject.cs +../../../external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/Preprocessor.cs +../../../external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/ResolveNuGetPackageAssets.cs +../../../external/nuget-buildtasks/src/Microsoft.NuGet.Build.Tasks/Strings.Designer.cs + +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonBinaryType.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonBinaryWriter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonReader.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonToken.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonType.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonWriter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Bson/BsonObjectId.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/BinaryConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/DataSetConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/DataTableConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/CustomCreationConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/DateTimeConverterBase.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/EntityKeyMemberConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/ExpandoObjectConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/KeyValuePairConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/BsonObjectIdConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/RegexConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/StringEnumConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/ConstructorHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/VersionConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/DateFormatHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/DateTimeZoneHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Formatting.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConstructorAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonPosition.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JPropertyKeyedCollection.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicProxy.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JPath.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JRaw.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Required.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonDynamicContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonFormatterConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonISerializableContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonLinqContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonPrimitiveContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DynamicValueProvider.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ErrorEventArgs.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JPropertyDescriptor.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DefaultReferenceResolver.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/PreserveReferencesHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/IJsonLineInfo.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonArrayAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonContainerAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/DefaultValueHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConverterAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonObjectAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializerSettings.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonValidatingReader.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/IJEnumerable.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JTokenEqualityComparer.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/MemberSerialization.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/ObjectCreationHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/JavaScriptDateTimeConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Converters/XmlNodeConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonTextReader.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonPropertyAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonIgnoreAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonTextWriter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonWriterException.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonReaderException.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConverter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConverterCollection.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonReader.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConvert.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializationException.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializer.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/Extensions.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JConstructor.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JContainer.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JEnumerable.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JObject.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JArray.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JTokenReader.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JTokenWriter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JToken.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JProperty.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JTokenType.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Linq/JValue.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/Extensions.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaException.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaModel.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaModelBuilder.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaNodeCollection.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaNode.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaResolver.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaWriter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/UndefinedSchemaIdHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/ValidationEventArgs.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/ValidationEventHandler.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/CamelCasePropertyNamesContractResolver.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DefaultContractResolver.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/DefaultSerializationBinder.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ErrorContext.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/IContractResolver.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/IValueProvider.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonArrayContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonDictionaryContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonProperty.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonPropertyCollection.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/MissingMemberHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/NullValueHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/ReferenceLoopHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchema.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaBuilder.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaConstants.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaGenerator.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/IReferenceResolver.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Schema/JsonSchemaType.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonObjectContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalBase.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerInternalWriter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonSerializerProxy.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonStringContract.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/JsonTypeReflector.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/CachedAttributeGetter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/LateBoundMetadataTypeAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ReflectionValueProvider.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/OnErrorAttribute.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/Base64Encoder.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicProxyMetaObject.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicWrapper.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DynamicReflectionDelegateFactory.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Serialization/ObjectConstructor.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ILGeneratorExtensions.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ReflectionDelegateFactory.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/LateBoundReflectionDelegateFactory.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/MethodCall.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/StringReference.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ThreadSafeStore.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/TypeNameHandling.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/BidirectionalDictionary.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/CollectionWrapper.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DateTimeUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/DictionaryWrapper.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/EnumUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/EnumValue.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/EnumValues.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/JavaScriptUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonToken.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/JsonWriter.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/StringBuffer.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/CollectionUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ListWrapper.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/MathUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/MiscellaneousUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ReflectionUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/StringUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/TypeExtensions.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/Utilities/ValidationUtils.cs +../../../external/Newtonsoft.Json/Src/Newtonsoft.Json/WriteState.cs diff --git a/mcs/tools/xbuild/Makefile b/mcs/tools/xbuild/Makefile index 70457756436..ada65c60500 100644 --- a/mcs/tools/xbuild/Makefile +++ b/mcs/tools/xbuild/Makefile @@ -20,18 +20,35 @@ else install-local: install-extras endif +PORTABLE_TARGETS_SRC=../../../external/buildtools/src/Portable/Targets +PCL5_FX_SRC=../../../external/buildtools/src/Portable/Frameworks/v5.0 + NETFRAMEWORK_DIR=$(mono_libdir)/mono/xbuild-frameworks/.NETFramework +PCL5_FX_DIR=$(mono_libdir)/mono/xbuild-frameworks/.NETPortable/v5.0 VS_TARGETS_DIR = $(mono_libdir)/mono/xbuild/Microsoft/VisualStudio PORTABLE_TARGETS_DIR = $(mono_libdir)/mono/xbuild/Microsoft/Portable +NUGET_BUILDTASKS_TARGETS_DIR = $(mono_libdir)/mono/xbuild/Microsoft/NuGet + +ifeq (14.0, $(XBUILD_VERSION)) +install-extras: install-versioned-files install-global-files +else +install-extras: install-versioned-files +endif +#install files into xbuild's versioned locations +install-versioned-files: install-bin-data install-nuget-imports -install-extras: install-bin-data install-frameworks install-pcl-targets install-web-targets +#install files that are only installed once across all xbuild versions +install-global-files: install-frameworks install-web-targets install-pcl-targets install-pcl5-framework install-nuget-targets install-bin-data: $(MKINSTALLDIRS) $(DESTDIR)$(XBUILD_BIN_DIR)/MSBuild $(INSTALL_DATA) data/xbuild.rsp $(DESTDIR)$(XBUILD_BIN_DIR) $(INSTALL_DATA) data/$(XBUILD_VERSION)/Microsoft.Common.tasks $(DESTDIR)$(XBUILD_BIN_DIR) $(INSTALL_DATA) data/$(XBUILD_VERSION)/Microsoft.Common.targets $(DESTDIR)$(XBUILD_BIN_DIR) +ifeq (14.0, $(XBUILD_VERSION)) + $(INSTALL_DATA) data/$(XBUILD_VERSION)/Microsoft.Common.props $(DESTDIR)$(XBUILD_BIN_DIR)/../ +endif $(INSTALL_DATA) data/$(XBUILD_VERSION)/Microsoft.CSharp.targets $(DESTDIR)$(XBUILD_BIN_DIR) $(INSTALL_DATA) data/Microsoft.Build.xsd $(DESTDIR)$(XBUILD_BIN_DIR) $(INSTALL_DATA) data/Microsoft.VisualBasic.targets $(DESTDIR)$(XBUILD_BIN_DIR) @@ -62,20 +79,16 @@ install-frameworks: $(INSTALL_DATA) frameworks/net_4.6.1.xml $(DESTDIR)$(NETFRAMEWORK_DIR)/v4.6.1/RedistList/FrameworkList.xml install-pcl-targets: - $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.0 - $(INSTALL_DATA) targets/Microsoft.Portable.Common.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.0/Microsoft.Portable.Common.targets - $(INSTALL_DATA) targets/Microsoft.Portable.CSharp_4.0.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.0/Microsoft.Portable.CSharp.targets - $(INSTALL_DATA) targets/Microsoft.Portable.VisualBasic_4.0.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.0/Microsoft.Portable.VisualBasic.targets - $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.5 - $(INSTALL_DATA) targets/Microsoft.Portable.Common.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.5/Microsoft.Portable.Common.targets - $(INSTALL_DATA) targets/Microsoft.Portable.CSharp_4.5.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.5/Microsoft.Portable.CSharp.targets - $(INSTALL_DATA) targets/Microsoft.Portable.VisualBasic_4.5.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.5/Microsoft.Portable.VisualBasic.targets - $(INSTALL_DATA) targets/Microsoft.Portable.Core.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/Microsoft.Portable.Core.targets - $(INSTALL_DATA) targets/Microsoft.Portable.Core.props $(DESTDIR)$(PORTABLE_TARGETS_DIR)/Microsoft.Portable.Core.props - $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.6 - $(INSTALL_DATA) targets/Microsoft.Portable.Common.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.6/Microsoft.Portable.Common.targets - $(INSTALL_DATA) targets/Microsoft.Portable.CSharp_4.5.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.6/Microsoft.Portable.CSharp.targets - $(INSTALL_DATA) targets/Microsoft.Portable.VisualBasic_4.5.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/v4.6/Microsoft.Portable.VisualBasic.targets + $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_TARGETS_DIR) + $(INSTALL_DATA) $(PORTABLE_TARGETS_SRC)/Microsoft.Portable.Core.props $(DESTDIR)$(PORTABLE_TARGETS_DIR)/Microsoft.Portable.Core.props + $(INSTALL_DATA) $(PORTABLE_TARGETS_SRC)/Microsoft.Portable.Core.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/Microsoft.Portable.Core.targets + + for VERSION in v4.0 v4.5 v4.6 v5.0; do \ + $(MKINSTALLDIRS) $(DESTDIR)$(PORTABLE_TARGETS_DIR)/$$VERSION; \ + $(INSTALL_DATA) $(PORTABLE_TARGETS_SRC)/$$VERSION/Microsoft.Portable.Common.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/$$VERSION/Microsoft.Portable.Common.targets; \ + $(INSTALL_DATA) $(PORTABLE_TARGETS_SRC)/$$VERSION/Microsoft.Portable.CSharp.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/$$VERSION/Microsoft.Portable.CSharp.targets; \ + $(INSTALL_DATA) $(PORTABLE_TARGETS_SRC)/$$VERSION/Microsoft.Portable.VisualBasic.targets $(DESTDIR)$(PORTABLE_TARGETS_DIR)/$$VERSION/Microsoft.Portable.VisualBasic.targets; \ + done install-web-targets: $(MKINSTALLDIRS) $(DESTDIR)$(VS_TARGETS_DIR)/v9.0/WebApplications @@ -89,6 +102,31 @@ install-web-targets: $(MKINSTALLDIRS) $(DESTDIR)$(VS_TARGETS_DIR)/v14.0/WebApplications $(INSTALL_DATA) targets/Microsoft.WebApplication.targets $(DESTDIR)$(VS_TARGETS_DIR)/v14.0/WebApplications +NUGET_BUILDTASKS_REPO_DIR=$(topdir)/../external/nuget-buildtasks + +install-nuget-targets: + $(MKINSTALLDIRS) $(DESTDIR)$(NUGET_BUILDTASKS_TARGETS_DIR) + $(INSTALL_DATA) $(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets $(DESTDIR)$(NUGET_BUILDTASKS_TARGETS_DIR) + $(INSTALL_DATA) $(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.props $(DESTDIR)$(NUGET_BUILDTASKS_TARGETS_DIR) + +install-nuget-imports: +ifeq (14.0, $(XBUILD_VERSION)) + $(MKINSTALLDIRS) $(DESTDIR)$(XBUILD_BIN_DIR)/../Imports/Microsoft.Common.props/ImportBefore + $(MKINSTALLDIRS) $(DESTDIR)$(XBUILD_BIN_DIR)/../Microsoft.Common.targets/ImportAfter + $(INSTALL_DATA) $(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/ImportBeforeAfter/Microsoft.NuGet.ImportBefore.props $(DESTDIR)$(XBUILD_BIN_DIR)/../Imports/Microsoft.Common.props/ImportBefore + $(INSTALL_DATA) $(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/ImportBeforeAfter/Microsoft.NuGet.ImportAfter.targets $(DESTDIR)$(XBUILD_BIN_DIR)/../Microsoft.Common.targets/ImportAfter +endif + +# The .NETPortable,Version=v5.0 framework contains no assemblies, and essentially just fills the requirement +# for a framework moniker. When using it, assemblies are provided by NuGet packages such as .NETStandard.Library +install-pcl5-framework: + $(MKINSTALLDIRS) $(DESTDIR)$(PCL5_FX_DIR)/RedistList + $(INSTALL_DATA) $(PCL5_FX_SRC)/FrameworkList.xml $(DESTDIR)$(PCL5_FX_DIR)/RedistList/FrameworkList.xml + + $(MKINSTALLDIRS) $(DESTDIR)$(PCL5_FX_DIR)/SupportedFrameworks + $(INSTALL_DATA) "$(PCL5_FX_SRC)/.NET Framework 4.6.xml" "$(DESTDIR)$(PCL5_FX_DIR)/SupportedFrameworks/.NET Framework 4.6.xml" + $(INSTALL_DATA) "$(PCL5_FX_SRC)/ASP.NET Core 1.0.xml" "$(DESTDIR)$(PCL5_FX_DIR)/SupportedFrameworks/ASP.NET Core 1.0.xml" + $(INSTALL_DATA) "$(PCL5_FX_SRC)/Windows Universal 10.0.xml" "$(DESTDIR)$(PCL5_FX_DIR)/SupportedFrameworks/Windows Universal 10.0.xml" EXTRA_DISTFILES = \ data/xbuild.rsp \ @@ -104,6 +142,7 @@ EXTRA_DISTFILES = \ data/4.0/Microsoft.Common.targets \ data/12.0/Microsoft.Common.targets \ data/14.0/Microsoft.Common.targets \ + data/14.0/Microsoft.Common.props \ data/2.0/Microsoft.CSharp.targets \ data/3.5/Microsoft.CSharp.targets \ data/4.0/Microsoft.CSharp.targets \ @@ -122,13 +161,9 @@ EXTRA_DISTFILES = \ frameworks/net_4.5.2.xml \ frameworks/net_4.6.xml \ frameworks/net_4.6.1.xml \ - targets/Microsoft.Portable.CSharp_4.0.targets \ - targets/Microsoft.Portable.CSharp_4.5.targets \ - targets/Microsoft.Portable.VisualBasic_4.0.targets \ - targets/Microsoft.Portable.VisualBasic_4.5.targets \ - targets/Microsoft.Portable.Common.targets \ - targets/Microsoft.Portable.Core.targets \ - targets/Microsoft.Portable.Core.props \ - targets/Microsoft.WebApplication.targets \ + $(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/ImportBeforeAfter/Microsoft.NuGet.ImportBefore.props \ + $(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/ImportBeforeAfter/Microsoft.NuGet.ImportAfter.targets \ + $(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.targets \ + $(NUGET_BUILDTASKS_REPO_DIR)/src/Microsoft.NuGet.Build.Tasks/Microsoft.NuGet.props \ xbuild.make \ xbuild_test.make diff --git a/mcs/tools/xbuild/data/12.0/Microsoft.Common.targets b/mcs/tools/xbuild/data/12.0/Microsoft.Common.targets index fb80dbc9454..ffe1f63b838 100644 --- a/mcs/tools/xbuild/data/12.0/Microsoft.Common.targets +++ b/mcs/tools/xbuild/data/12.0/Microsoft.Common.targets @@ -1,4 +1,4 @@ - + true true @@ -49,7 +49,10 @@ <_OriginalPlatform>$(Platform) AnyCPU $(Platform) + + + true System.Core;$(AdditionalExplicitAssemblyReferences) @@ -90,7 +93,7 @@ true - + diff --git a/mcs/tools/xbuild/data/14.0/Microsoft.Common.props b/mcs/tools/xbuild/data/14.0/Microsoft.Common.props new file mode 100644 index 00000000000..6c4d33cdaa6 --- /dev/null +++ b/mcs/tools/xbuild/data/14.0/Microsoft.Common.props @@ -0,0 +1,16 @@ + + + true + true + + + + + + true + + + + diff --git a/mcs/tools/xbuild/data/14.0/Microsoft.Common.targets b/mcs/tools/xbuild/data/14.0/Microsoft.Common.targets index bea93366ec9..433cffe8e69 100644 --- a/mcs/tools/xbuild/data/14.0/Microsoft.Common.targets +++ b/mcs/tools/xbuild/data/14.0/Microsoft.Common.targets @@ -1,4 +1,6 @@ - + + + true true @@ -49,7 +51,10 @@ <_OriginalPlatform>$(Platform) AnyCPU $(Platform) + + + true System.Core;$(AdditionalExplicitAssemblyReferences) @@ -90,7 +95,7 @@ true - + diff --git a/mcs/tools/xbuild/data/4.0/Microsoft.Common.targets b/mcs/tools/xbuild/data/4.0/Microsoft.Common.targets index e260aa1ac30..152dd2b985e 100644 --- a/mcs/tools/xbuild/data/4.0/Microsoft.Common.targets +++ b/mcs/tools/xbuild/data/4.0/Microsoft.Common.targets @@ -1,4 +1,4 @@ - + true true @@ -49,7 +49,10 @@ <_OriginalPlatform>$(Platform) AnyCPU $(Platform) + + + true System.Core;$(AdditionalExplicitAssemblyReferences) @@ -90,7 +93,7 @@ true - + diff --git a/mcs/tools/xbuild/targets/Microsoft.Portable.CSharp_4.0.targets b/mcs/tools/xbuild/targets/Microsoft.Portable.CSharp_4.0.targets deleted file mode 100644 index 36bc56e631c..00000000000 --- a/mcs/tools/xbuild/targets/Microsoft.Portable.CSharp_4.0.targets +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/mcs/tools/xbuild/targets/Microsoft.Portable.CSharp_4.5.targets b/mcs/tools/xbuild/targets/Microsoft.Portable.CSharp_4.5.targets deleted file mode 100644 index 36bc56e631c..00000000000 --- a/mcs/tools/xbuild/targets/Microsoft.Portable.CSharp_4.5.targets +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/mcs/tools/xbuild/targets/Microsoft.Portable.Common.targets b/mcs/tools/xbuild/targets/Microsoft.Portable.Common.targets deleted file mode 100644 index 82bea1e6d16..00000000000 --- a/mcs/tools/xbuild/targets/Microsoft.Portable.Common.targets +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/mcs/tools/xbuild/targets/Microsoft.Portable.Core.props b/mcs/tools/xbuild/targets/Microsoft.Portable.Core.props deleted file mode 100644 index 4bf2d9ca524..00000000000 --- a/mcs/tools/xbuild/targets/Microsoft.Portable.Core.props +++ /dev/null @@ -1,14 +0,0 @@ - - - Any CPU - - Portable - .NETPortable - .NET Portable Subset - - false - true - - true - - diff --git a/mcs/tools/xbuild/targets/Microsoft.Portable.Core.targets b/mcs/tools/xbuild/targets/Microsoft.Portable.Core.targets deleted file mode 100644 index 5ca44838988..00000000000 --- a/mcs/tools/xbuild/targets/Microsoft.Portable.Core.targets +++ /dev/null @@ -1,28 +0,0 @@ - - - - $(ResolveReferencesDependsOn); - ImplicitlyExpandTargetFramework; - - - - $(ImplicitlyExpandTargetFrameworkDependsOn); - GetReferenceAssemblyPaths - - - - - - - - - false - ImplicitlyExpandTargetFramework - True - - - - - diff --git a/mcs/tools/xbuild/targets/Microsoft.Portable.VisualBasic_4.0.targets b/mcs/tools/xbuild/targets/Microsoft.Portable.VisualBasic_4.0.targets deleted file mode 100644 index bf58fee49bc..00000000000 --- a/mcs/tools/xbuild/targets/Microsoft.Portable.VisualBasic_4.0.targets +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/mcs/tools/xbuild/targets/Microsoft.Portable.VisualBasic_4.5.targets b/mcs/tools/xbuild/targets/Microsoft.Portable.VisualBasic_4.5.targets deleted file mode 100644 index bf58fee49bc..00000000000 --- a/mcs/tools/xbuild/targets/Microsoft.Portable.VisualBasic_4.5.targets +++ /dev/null @@ -1,5 +0,0 @@ - - - - -