You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,8 @@ NO_TESTS = yes
|
||||
|
||||
include xbuild.make
|
||||
|
||||
LOCAL_MCS_FLAGS = -r:$(XBUILD_FRAMEWORK) -r:$(XBUILD_UTILITIES) -r:$(XBUILD_ENGINE) -r:$(XBUILD_MSTASKS)
|
||||
LOCAL_MCS_FLAGS =
|
||||
LIB_REFS = $(XBUILD_FRAMEWORK) $(XBUILD_UTILITIES) $(XBUILD_ENGINE) $(XBUILD_MSTASKS) $(PARENT_PROFILE)System $(PARENT_PROFILE)System.Core
|
||||
PROGRAM = xbuild.exe
|
||||
|
||||
include ../../build/executable.make
|
||||
@@ -19,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-extras: install-bin-data install-frameworks install-pcl-targets install-web-targets
|
||||
#install files into xbuild's versioned locations
|
||||
install-versioned-files: install-bin-data install-nuget-imports
|
||||
|
||||
#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)
|
||||
@@ -61,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
|
||||
@@ -88,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 \
|
||||
@@ -103,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 \
|
||||
@@ -121,13 +161,10 @@ 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 \
|
||||
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
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<Target
|
||||
Name="CoreCompile"
|
||||
Inputs="$(MSBuildAllProjects);@(Compile);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(Win32Icon);$(Win32Resource)"
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(ApplicationIcon);$(Win32Resource)"
|
||||
Outputs="@(DocFileItem);@(IntermediateAssembly)"
|
||||
DependsOnTargets="$(CoreCompileDependsOn)"
|
||||
>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<Project DefaultTargets="Build" InitialTargets="_ValidateEssentialProperties" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" InitialTargets="_CheckForInvalidConfigurationAndPlatform" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ImportByWildcardBeforeMicrosoftCommonTargets Condition="'$(ImportByWildcardBeforeMicrosoftCommonTargets)' == ''">true</ImportByWildcardBeforeMicrosoftCommonTargets>
|
||||
<ImportByWildcardAfterMicrosoftCommonTargets Condition="'$(ImportByWildcardAfterMicrosoftCommonTargets)' == ''">true</ImportByWildcardAfterMicrosoftCommonTargets>
|
||||
@@ -49,7 +49,10 @@
|
||||
<_OriginalPlatform>$(Platform)</_OriginalPlatform>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<PlatformName Condition="'$(PlatformName)' == ''">$(Platform)</PlatformName>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- in MSBuild, these properties are set in a separate file that is only imported for .NETFramework -->
|
||||
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
|
||||
<AddAdditionalExplicitAssemblyReferences Condition="'$(AddAdditionalExplicitAssemblyReferences)' == ''">true</AddAdditionalExplicitAssemblyReferences>
|
||||
<AdditionalExplicitAssemblyReferences Condition="'$(AddAdditionalExplicitAssemblyReferences)' == 'true' and '$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetFrameworkVersion)' != 'v3.0'">System.Core;$(AdditionalExplicitAssemblyReferences)</AdditionalExplicitAssemblyReferences>
|
||||
</PropertyGroup>
|
||||
@@ -90,7 +93,7 @@
|
||||
<TargetingClr2Framework Condition="('$(TargetFrameworkIdentifier)' == '.NETFramework') and ('$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.0' or '$(TargetFrameworkVersion)' == 'v3.5')">true</TargetingClr2Framework>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="_ValidateEssentialProperties">
|
||||
<Target Name="_CheckForInvalidConfigurationAndPlatform">
|
||||
<Error Condition=" '$(OutputPath)' == '' and '$(SkipInvalidConfigurations)' != 'true'"
|
||||
Text="'OutputPath' property is not set for this project. Usually this is caused by invalid Configuration/Platform combination. Original values: Configuration: $(_OriginalConfiguration) Platform: $(_OriginalPlatform)."/>
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<Target
|
||||
Name="CoreCompile"
|
||||
Inputs="$(MSBuildAllProjects);@(Compile);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(Win32Icon);$(Win32Resource)"
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(ApplicationIcon);$(Win32Resource)"
|
||||
Outputs="@(DocFileItem);@(IntermediateAssembly)"
|
||||
DependsOnTargets="$(CoreCompileDependsOn)"
|
||||
>
|
||||
|
||||
16
mcs/tools/xbuild/data/14.0/Microsoft.Common.props
Normal file
16
mcs/tools/xbuild/data/14.0/Microsoft.Common.props
Normal file
@@ -0,0 +1,16 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ImportByWildcardBeforeMicrosoftCommonProps Condition="'$(ImportByWildcardBeforeMicrosoftCommonProps)' == ''">true</ImportByWildcardBeforeMicrosoftCommonProps>
|
||||
<ImportByWildcardAfterMicrosoftCommonProps Condition="'$(ImportByWildcardAfterMicrosoftCommonProps)' == ''">true</ImportByWildcardAfterMicrosoftCommonProps>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportBefore\*"
|
||||
Condition="'$(ImportByWildcardBeforeMicrosoftCommonProps)' == 'true' and Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportBefore')"/>
|
||||
|
||||
<PropertyGroup>
|
||||
<MicrosoftCommonPropsHasBeenImported>true</MicrosoftCommonPropsHasBeenImported>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportAfter\*"
|
||||
Condition="'$(ImportByWildcardAfterMicrosoftCommonProps)' == 'true' and Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportAfter')"/>
|
||||
</Project>
|
||||
@@ -1,4 +1,6 @@
|
||||
<Project DefaultTargets="Build" InitialTargets="_ValidateEssentialProperties" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" InitialTargets="_CheckForInvalidConfigurationAndPlatform" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="'$(MicrosoftCommonPropsHasBeenImported)' != 'true' and Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
|
||||
<PropertyGroup>
|
||||
<ImportByWildcardBeforeMicrosoftCommonTargets Condition="'$(ImportByWildcardBeforeMicrosoftCommonTargets)' == ''">true</ImportByWildcardBeforeMicrosoftCommonTargets>
|
||||
<ImportByWildcardAfterMicrosoftCommonTargets Condition="'$(ImportByWildcardAfterMicrosoftCommonTargets)' == ''">true</ImportByWildcardAfterMicrosoftCommonTargets>
|
||||
@@ -49,7 +51,10 @@
|
||||
<_OriginalPlatform>$(Platform)</_OriginalPlatform>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<PlatformName Condition="'$(PlatformName)' == ''">$(Platform)</PlatformName>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- in MSBuild, these properties are set in a separate file that is only imported for .NETFramework -->
|
||||
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
|
||||
<AddAdditionalExplicitAssemblyReferences Condition="'$(AddAdditionalExplicitAssemblyReferences)' == ''">true</AddAdditionalExplicitAssemblyReferences>
|
||||
<AdditionalExplicitAssemblyReferences Condition="'$(AddAdditionalExplicitAssemblyReferences)' == 'true' and '$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetFrameworkVersion)' != 'v3.0'">System.Core;$(AdditionalExplicitAssemblyReferences)</AdditionalExplicitAssemblyReferences>
|
||||
</PropertyGroup>
|
||||
@@ -90,7 +95,7 @@
|
||||
<TargetingClr2Framework Condition="('$(TargetFrameworkIdentifier)' == '.NETFramework') and ('$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.0' or '$(TargetFrameworkVersion)' == 'v3.5')">true</TargetingClr2Framework>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="_ValidateEssentialProperties">
|
||||
<Target Name="_CheckForInvalidConfigurationAndPlatform">
|
||||
<Error Condition=" '$(OutputPath)' == '' and '$(SkipInvalidConfigurations)' != 'true'"
|
||||
Text="'OutputPath' property is not set for this project. Usually this is caused by invalid Configuration/Platform combination. Original values: Configuration: $(_OriginalConfiguration) Platform: $(_OriginalPlatform)."/>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<Target
|
||||
Name="CoreCompile"
|
||||
Inputs="$(MSBuildAllProjects);@(Compile);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(Win32Icon);$(Win32Resource)"
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(ApplicationIcon);$(Win32Resource)"
|
||||
Outputs="@(DocFileItem);@(IntermediateAssembly)"
|
||||
DependsOnTargets="$(CoreCompileDependsOn)"
|
||||
>
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<Target
|
||||
Name="CoreCompile"
|
||||
Inputs="$(MSBuildAllProjects);@(Compile);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(Win32Icon);$(Win32Resource)"
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(ApplicationIcon);$(Win32Resource)"
|
||||
Outputs="@(DocFileItem);@(IntermediateAssembly)"
|
||||
DependsOnTargets="$(CoreCompileDependsOn)"
|
||||
>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<Target
|
||||
Name="CoreCompile"
|
||||
Inputs="$(MSBuildAllProjects);@(Compile);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(Win32Icon);$(Win32Resource)"
|
||||
$(KeyOriginatorFile);@(ReferencePath);$(ApplicationIcon);$(Win32Resource)"
|
||||
Outputs="@(DocFileItem);@(IntermediateAssembly)"
|
||||
DependsOnTargets="$(CoreCompileDependsOn)"
|
||||
>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<Project DefaultTargets="Build" InitialTargets="_ValidateEssentialProperties" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Project DefaultTargets="Build" InitialTargets="_CheckForInvalidConfigurationAndPlatform" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ImportByWildcardBeforeMicrosoftCommonTargets Condition="'$(ImportByWildcardBeforeMicrosoftCommonTargets)' == ''">true</ImportByWildcardBeforeMicrosoftCommonTargets>
|
||||
<ImportByWildcardAfterMicrosoftCommonTargets Condition="'$(ImportByWildcardAfterMicrosoftCommonTargets)' == ''">true</ImportByWildcardAfterMicrosoftCommonTargets>
|
||||
@@ -49,7 +49,10 @@
|
||||
<_OriginalPlatform>$(Platform)</_OriginalPlatform>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<PlatformName Condition="'$(PlatformName)' == ''">$(Platform)</PlatformName>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- in MSBuild, these properties are set in a separate file that is only imported for .NETFramework -->
|
||||
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
|
||||
<AddAdditionalExplicitAssemblyReferences Condition="'$(AddAdditionalExplicitAssemblyReferences)' == ''">true</AddAdditionalExplicitAssemblyReferences>
|
||||
<AdditionalExplicitAssemblyReferences Condition="'$(AddAdditionalExplicitAssemblyReferences)' == 'true' and '$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetFrameworkVersion)' != 'v3.0'">System.Core;$(AdditionalExplicitAssemblyReferences)</AdditionalExplicitAssemblyReferences>
|
||||
</PropertyGroup>
|
||||
@@ -90,7 +93,7 @@
|
||||
<TargetingClr2Framework Condition="('$(TargetFrameworkIdentifier)' == '.NETFramework') and ('$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.0' or '$(TargetFrameworkVersion)' == 'v3.5')">true</TargetingClr2Framework>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="_ValidateEssentialProperties">
|
||||
<Target Name="_CheckForInvalidConfigurationAndPlatform">
|
||||
<Error Condition=" '$(OutputPath)' == '' and '$(SkipInvalidConfigurations)' != 'true'"
|
||||
Text="'OutputPath' property is not set for this project. Usually this is caused by invalid Configuration/Platform combination. Original values: Configuration: $(_OriginalConfiguration) Platform: $(_OriginalPlatform)."/>
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\Microsoft.Portable.Core.props" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\Microsoft.Portable.Core.targets" />
|
||||
</Project>
|
||||
@@ -1,5 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\Microsoft.Portable.Core.props" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<Import Project="..\Microsoft.Portable.Core.targets" />
|
||||
</Project>
|
||||
@@ -1,4 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\Microsoft.Portable.Core.props" />
|
||||
<Import Project="..\Microsoft.Portable.Core.targets" />
|
||||
</Project>
|
||||
@@ -1,14 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<AvailablePlatforms>Any CPU</AvailablePlatforms>
|
||||
|
||||
<TargetPlatformIdentifier>Portable</TargetPlatformIdentifier>
|
||||
<TargetFrameworkIdentifier>.NETPortable</TargetFrameworkIdentifier>
|
||||
<TargetFrameworkMonikerDisplayName>.NET Portable Subset</TargetFrameworkMonikerDisplayName>
|
||||
|
||||
<AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences>
|
||||
<NoStdLib>true</NoStdLib>
|
||||
|
||||
<ImplicitlyExpandTargetFramework Condition="'$(ImplicitlyExpandTargetFramework)' == '' ">true</ImplicitlyExpandTargetFramework>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
@@ -1,28 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ResolveReferencesDependsOn>
|
||||
$(ResolveReferencesDependsOn);
|
||||
ImplicitlyExpandTargetFramework;
|
||||
</ResolveReferencesDependsOn>
|
||||
|
||||
<ImplicitlyExpandTargetFrameworkDependsOn>
|
||||
$(ImplicitlyExpandTargetFrameworkDependsOn);
|
||||
GetReferenceAssemblyPaths
|
||||
</ImplicitlyExpandTargetFrameworkDependsOn>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="ImplicitlyExpandTargetFramework"
|
||||
Condition="'$(ImplicitlyExpandTargetFramework)' == 'true'"
|
||||
DependsOnTargets="$(ImplicitlyExpandTargetFrameworkDependsOn)">
|
||||
|
||||
<ItemGroup>
|
||||
<ReferenceAssemblyPaths Include="$(_TargetFrameworkDirectories)"/>
|
||||
<ReferencePath Include="%(ReferenceAssemblyPaths.Identity)\*.dll">
|
||||
<CopyLocal>false</CopyLocal>
|
||||
<ResolvedFrom>ImplicitlyExpandTargetFramework</ResolvedFrom>
|
||||
<IsSystemReference>True</IsSystemReference>
|
||||
</ReferencePath>
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
@@ -1,5 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\Microsoft.Portable.Core.props" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<Import Project="..\Microsoft.Portable.Core.targets" />
|
||||
</Project>
|
||||
@@ -1,5 +0,0 @@
|
||||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\Microsoft.Portable.Core.props" />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
|
||||
<Import Project="..\Microsoft.Portable.Core.targets" />
|
||||
</Project>
|
||||
@@ -6,13 +6,13 @@ ifeq (14.0, $(XBUILD_VERSION))
|
||||
NAME_SUFFIX = .Core
|
||||
endif
|
||||
|
||||
XBUILD_FRAMEWORK := $(topdir)/class/lib/$(PROFILE)/Microsoft.Build.Framework.dll
|
||||
XBUILD_ENGINE := $(topdir)/class/lib/$(PROFILE)/Microsoft.Build.Engine.dll
|
||||
XBUILD_UTILITIES := $(topdir)/class/lib/$(PROFILE)/Microsoft.Build.Utilities$(NAME_SUFFIX).dll
|
||||
XBUILD_TASKS := $(topdir)/class/lib/$(PROFILE)/Mono.XBuild.Tasks.dll
|
||||
XBUILD_MSTASKS := $(topdir)/class/lib/$(PROFILE)/Microsoft.Build.Tasks$(NAME_SUFFIX).dll
|
||||
XBUILD_FRAMEWORK := Microsoft.Build.Framework
|
||||
XBUILD_ENGINE := Microsoft.Build.Engine
|
||||
XBUILD_UTILITIES := Microsoft.Build.Utilities$(NAME_SUFFIX)
|
||||
XBUILD_TASKS := Mono.XBuild.Tasks
|
||||
XBUILD_MSTASKS := Microsoft.Build.Tasks$(NAME_SUFFIX)
|
||||
ifeq (14.0, $(XBUILD_VERSION))
|
||||
XBUILD_MSTASKS := $(topdir)/class/lib/$(PROFILE)/Microsoft.Build.Tasks.Core.dll
|
||||
XBUILD_MSTASKS := Microsoft.Build.Tasks.Core
|
||||
endif
|
||||
|
||||
XBUILD_ASSEMBLY_VERSION = $(XBUILD_VERSION).0.0
|
||||
|
||||
Reference in New Issue
Block a user