Created
March 6, 2018 00:26
-
-
Save jwosty/ce1cfb8a685a564ceb1ada30cdcf08e2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
============================================================================================================================================ | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj | |
============================================================================================================================================ | |
--> | |
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. --> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<FSharpSourcesRoot>$(MSBuildProjectDirectory)\..\..</FSharpSourcesRoot> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(FSharpSourcesRoot)\FSharpSource.Settings.targets"> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/FSharpSource.Settings.targets | |
============================================================================================================================================ | |
--> | |
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. --> | |
<!-- If Configuration is empty that means we are not being built in VS and so folks need to explicitly pass the different | |
values for $(ConfigurationGroup), $(TargetGroup), or $(OSGroup) or accept the defaults for them. | |
--> | |
<PropertyGroup Condition="'$(Configuration)'==''"> | |
<ConfigurationGroup Condition="'$(ConfigurationGroup)'==''">Debug</ConfigurationGroup> | |
<Configuration>$(ConfigurationGroup)</Configuration> | |
<Configuration Condition="'$(TargetGroup)'!=''">$(TargetGroup)_$(Configuration)</Configuration> | |
<Configuration Condition="'$(OSGroup)'!='' and '$(OSGroup)'!='AnyOS'">$(OSGroup)_$(Configuration)</Configuration> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)'!=''"> | |
<ConfigurationGroup Condition="'$(ConfigurationGroup)'=='' and $(Configuration.ToLower().EndsWith('debug'))">Debug</ConfigurationGroup> | |
<ConfigurationGroup Condition="'$(ConfigurationGroup)'=='' and $(Configuration.ToLower().EndsWith('release'))">Release</ConfigurationGroup> | |
<ConfigurationGroup Condition="'$(ConfigurationGroup)'==''">Debug</ConfigurationGroup> | |
</PropertyGroup> | |
<!-- Version number computation --> | |
<PropertyGroup> | |
<!-- Put build number 0 and today's date if this was a local build --> | |
<BUILD_BUILDNUMBER Condition="'$(BUILD_BUILDNUMBER)' == ''">$([System.DateTime]::Now.ToString(yyyyMMdd.0))</BUILD_BUILDNUMBER> | |
<!-- | |
Given $(BUILD_BUILDNUMBER) = '20161225.1' | |
Then $(_Build_Year) = 2016 | |
Then $(_Build_Month) = 12 | |
Then $(_Build_Day) = 25 | |
Then $(_Build_Number) = 1 | |
Then $(Build_FileVersion) = 2016.12.25.1 | |
--> | |
<_Build_Year>$(BUILD_BUILDNUMBER.Substring(0, 4))</_Build_Year> | |
<_Build_Month>$(BUILD_BUILDNUMBER.Substring(4, 2))</_Build_Month> | |
<_Build_Day>$(BUILD_BUILDNUMBER.Substring(6, 2))</_Build_Day> | |
<_Build_Number>$(BUILD_BUILDNUMBER.Substring(9))</_Build_Number> | |
<Build_FileVersion>$(_Build_Year).$(_Build_Month).$(_Build_Day).$(_Build_Number)</Build_FileVersion> | |
<FSCoreVersion>4.4.1.0</FSCoreVersion> | |
<MicroBuildAssemblyVersion Condition="'$(MicroBuildAssemblyVersion)' == ''">$(FSCoreVersion)</MicroBuildAssemblyVersion> | |
<MicroBuildAssemblyVersion Condition="'$(UseVsMicroBuildAssemblyVersion)' == 'true'">15.4.1.0</MicroBuildAssemblyVersion> | |
<!-- | |
Given $(BUILD_BUILDNUMBER) = '20161225.1' | |
Given $(MicroBuildAssemblyVersion) = '15.4.1.0' | |
Then $(BuildTimeStamp_Date) = 161225 | |
Then $(BuildTimeStamp_Number) = 01 | |
Then $(BuildTimeStamp) = 16122501 | |
Then $(MicroBuildAssemblyVersion_WithoutRevision) = 15.4.1 | |
Then $(VsixPackageVersion) = 15.4.1.16122501 | |
Then $(NuGetPackageVersionSuffix) = 161225-01 | |
--> | |
<BuildTimeStamp_Date>$(BUILD_BUILDNUMBER.Split('.')[0].Substring(2))</BuildTimeStamp_Date> | |
<BuildTimeStamp_Number>$(BUILD_BUILDNUMBER.Split('.')[1].PadLeft(2, '0'))</BuildTimeStamp_Number> | |
<BuildTimeStamp>$(BuildTimeStamp_Date)$(BuildTimeStamp_Number)</BuildTimeStamp> | |
<MicroBuildAssemblyVersion_WithoutRevision>$(MicroBuildAssemblyVersion.Substring(0, $(MicroBuildAssemblyVersion.LastIndexOf('.'))))</MicroBuildAssemblyVersion_WithoutRevision> | |
<VsixPackageVersion>$(MicroBuildAssemblyVersion_WithoutRevision).$(BuildTimeStamp)</VsixPackageVersion> | |
<NuGetPackageVersionSuffix>$(BuildTimeStamp_Date)-$(BuildTimeStamp_Number)</NuGetPackageVersionSuffix> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- Settings used all the time --> | |
<Tailcalls>true</Tailcalls> | |
<TargetDotnetProfile Condition="'$(TargetDotnetProfile)'==''">net40</TargetDotnetProfile> | |
<!-- Currently always use .NET Framwork proto compiler --> | |
<ProtoFlavour Condition="'$(ProtoFlavour)' == ''">net40</ProtoFlavour> | |
<ProjectLanguage Condition="'$(ProjectLanguage)' == ''">FSharp</ProjectLanguage> | |
<DebugSymbols>true</DebugSymbols> | |
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |
<BuildToolsTargets45>true</BuildToolsTargets45> | |
<WarningsAsErrors /> | |
<RoslynVSPackagesVersion>15.0.26201</RoslynVSPackagesVersion> | |
<SystemCollectionsImmutableVersion>1.3.1</SystemCollectionsImmutableVersion> | |
<VSSDK_BUILDTOOLS_VERSION>Microsoft.VSSDK.BuildTools.15.1.192</VSSDK_BUILDTOOLS_VERSION> | |
<MicrosoftVisualStudioThreadingVersion>15.3.23</MicrosoftVisualStudioThreadingVersion> | |
<MicrosoftVisualStudioValidationVersion>15.3.15</MicrosoftVisualStudioValidationVersion> | |
<MicrosoftDiaSymReaderPackageVersion>1.1.0</MicrosoftDiaSymReaderPackageVersion> | |
<MicrosoftDiaSymReaderPortablePdbPackageVersion>1.2.0</MicrosoftDiaSymReaderPortablePdbPackageVersion> | |
<!-- Always qualify the IntermediateOutputPath by the TargetDotnetProfile if any exists --> | |
<IntermediateOutputPath>obj\$(Configuration)\$(TargetDotnetProfile)\</IntermediateOutputPath> | |
<IntermediateOutputPath Condition="'$(PortableProfileBeingReferenced)' != ''">obj\$(Configuration)\$(TargetDotnetProfile)\$(PortableProfileBeingReferenced)\</IntermediateOutputPath> | |
<FSharpCore41TargetVersion>4.1.19</FSharpCore41TargetVersion> | |
<FSharpCore41FrozenPortableVersion>4.1.20</FSharpCore41FrozenPortableVersion> | |
<FSharpCore41FrozenPortableTargetVersion>4.1.21</FSharpCore41FrozenPortableTargetVersion> | |
<FSharpCore42TargetVersion>4.2.4</FSharpCore42TargetVersion> | |
<NUnitVersion>3.5.0</NUnitVersion> | |
<NUnitFullVersion>3.5.0.0</NUnitFullVersion> | |
<NUnitLibDir>$(FSharpSourcesRoot)\..\packages\NUnit.$(NUnitVersion)\lib\net45</NUnitLibDir> | |
<NUnitToolsLibDir>$(FSharpSourcesRoot)\..\packages\NUnit.ConsoleRunner\$(NUnitVersion)\tools\</NUnitToolsLibDir> | |
<MonoPackaging Condition="'$(TargetDotnetProfile)' != 'coreclr' AND '$(OS)' == 'Unix'">true</MonoPackaging> | |
<DependencyUptakePackageVersionPropsFile>$(MSBuildThisFileDirectory)..\Tools\dependencyUptake\PackageVersions.props</DependencyUptakePackageVersionPropsFile> | |
<!-- Localization --> | |
<DisableLocalization Condition="'$(MonoPackaging)' == 'true'">true</DisableLocalization> | |
<UpdateXlfOnBuild Condition="'$(CI)' != '1'">true</UpdateXlfOnBuild> | |
<XliffTasksVersion>0.2.0-beta-000081</XliffTasksVersion> | |
</PropertyGroup> | |
<!--<Import Project="$(DependencyUptakePackageVersionPropsFile)" Condition="Exists('$(DependencyUptakePackageVersionPropsFile)')" />--> | |
<!-- Default setting. Some get modified later in FSharpSource.targets --> | |
<PropertyGroup> | |
<SkipSigning>false</SkipSigning> | |
<UseOpenSourceSign>true</UseOpenSourceSign> | |
<SignAssembly>true</SignAssembly> | |
<AssemblyOriginatorKeyFile>$(FSharpSourcesRoot)\fsharp\msft.pubkey</AssemblyOriginatorKeyFile> | |
<StrongNames>true</StrongNames> | |
<DelaySign>true</DelaySign> | |
</PropertyGroup> | |
<!-- On windows, VS packaging --> | |
<PropertyGroup Condition="'$(MonoPackaging)' != 'true' AND '$(OS)' != 'Unix'"> | |
<UseMicroBuild>true</UseMicroBuild> | |
<UseSourceLink Condition=" '$(UseSourceLink)' == '' AND '$(Configuration)'=='Release' ">false</UseSourceLink> | |
<UseGatherBinaries>true</UseGatherBinaries> | |
<VsSDKInstall Condition=" '$(VsSDKInstall)' == '' ">$(MSBuildThisFileDirectory)..\packages\$(VSSDK_BUILDTOOLS_VERSION)\tools\vssdk</VsSDKInstall> | |
<VsSDKToolPath Condition=" '$(VsSDKToolPath)' == '' ">$(MSBuildThisFileDirectory)..\packages\$(VSSDK_BUILDTOOLS_VERSION)\tools\vssdk\bin</VsSDKToolPath> | |
<VsSDKTargets Condition=" '$(VsSDKTargets)' == '' ">$(MSBuildThisFileDirectory)..\packages\$(VSSDK_BUILDTOOLS_VERSION)\tools\vssdk\Microsoft.VsSDK.targets</VsSDKTargets> | |
<VsSDKIncludes Condition=" '$(VsSDKIncludes)' == '' ">$(MSBuildThisFileDirectory)..\packages\$(VSSDK_BUILDTOOLS_VERSION)\tools\vssdk\inc</VsSDKIncludes> | |
<VsixSchemaPath Condition=" '$(VsixSchemaPath)' == '' ">$(MSBuildThisFileDirectory)..\packages\$(VSSDK_BUILDTOOLS_VERSION)\tools\vssdk\schemas\VSIXManifestSchema.xsd</VsixSchemaPath> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(ProjectLanguage)' == 'FSharp' "> | |
<!-- Things we do only for F# projects --> | |
<OtherFlags>$(OtherFlags) --times</OtherFlags> | |
<NoWarn>$(NoWarn);69;65;54;61;75</NoWarn> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | |
<!-- Settings for Debug mode --> | |
<DebugType>full</DebugType> | |
<DebugType Condition="'$(OS)' == 'Unix'">portable</DebugType> | |
<!-- no longer use MDB on Mono --> | |
<Optimize Condition=" '$(Optimize)' == '' ">false</Optimize> | |
<ErrorReport Condition=" '$(ErrorReport)' == '' ">prompt</ErrorReport> | |
<OtherFlags>$(OtherFlags) --no-jit-optimize</OtherFlags> | |
<EmbedAllSource Condition=" '$(DebugType)' == 'portable' or '$(DebugType)' == 'embedded' ">true</EmbedAllSource> | |
<DefineConstants Condition=" '$(ProjectLanguage)' != 'VisualBasic' ">DEBUG;TRACE;CODE_ANALYSIS;$(DefineConstants)</DefineConstants> | |
<DefineConstants Condition=" '$(ProjectLanguage)' == 'VisualBasic' ">DEBUG=True,TRACE=True,CODE_ANALYSIS=True,$(DefineConstants)</DefineConstants> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | |
<!-- Flags used for Release mode. --> | |
<DebugType>pdbonly</DebugType> | |
<DebugType Condition="'$(OS)' == 'Unix'">portable</DebugType> | |
<!-- no longer use MDB on Mono --> | |
<Optimize Condition=" '$(Optimize)' == '' ">true</Optimize> | |
<EmbedAllSource>false</EmbedAllSource> | |
<ErrorReport Condition=" '$(ErrorReport)' == '' ">prompt</ErrorReport> | |
<DefineConstants Condition=" '$(ProjectLanguage)' != 'VisualBasic' ">TRACE;$(DefineConstants)</DefineConstants> | |
<DefineConstants Condition=" '$(ProjectLanguage)' == 'VisualBasic' ">TRACE=True,$(DefineConstants)</DefineConstants> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(Configuration)'=='Proto'"> | |
<!-- Flags used when running the Proto compiler. --> | |
<DebugType Condition=" '$(DebugType)' == '' ">full</DebugType> | |
<DebugType Condition="'$(OS)' == 'Unix'">portable</DebugType> | |
<!-- no longer use MDB on Mono --> | |
<Optimize>true</Optimize> | |
<DefineConstants>DEBUG;NO_STRONG_NAMES;$(DefineConstants)</DefineConstants> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- Standard defaults for output path and warning level --> | |
<OutputPath Condition="'$(OutputPath)' == ''">bin\$(Configuration)</OutputPath> | |
<WarningLevel Condition=" '$(WarningLevel)' == '' ">3</WarningLevel> | |
</PropertyGroup> | |
<PropertyGroup> | |
<DefineConstants Condition="'$(VisualStudioVersion)'=='12.0' AND '$(ProjectLanguage)' == 'VisualBasic'">$(DefineConstants),VS_VERSION_DEV12=True</DefineConstants> | |
<DefineConstants Condition="'$(VisualStudioVersion)'=='12.0' AND '$(ProjectLanguage)' != 'VisualBasic'">$(DefineConstants);VS_VERSION_DEV12</DefineConstants> | |
<DefineConstants Condition="'$(VisualStudioVersion)'=='14.0' AND '$(ProjectLanguage)' == 'VisualBasic'">$(DefineConstants),VS_VERSION_DEV14=True</DefineConstants> | |
<DefineConstants Condition="'$(VisualStudioVersion)'=='14.0' AND '$(ProjectLanguage)' != 'VisualBasic'">$(DefineConstants);VS_VERSION_DEV14</DefineConstants> | |
<DefineConstants Condition="'$(VisualStudioVersion)'=='15.0' AND '$(ProjectLanguage)' == 'VisualBasic'">$(DefineConstants),VS_VERSION_DEV15=True</DefineConstants> | |
<DefineConstants Condition="'$(VisualStudioVersion)'=='15.0' AND '$(ProjectLanguage)' != 'VisualBasic'">$(DefineConstants);VS_VERSION_DEV15</DefineConstants> | |
<!-- VisualStudioVersion is not defined when using xbuild on Mono. Assume 14.0, the last shipped in-the-box with Mono --> | |
<DefineConstants Condition="'$(VisualStudioVersion)'=='' AND '$(ProjectLanguage)' == 'VisualBasic'">$(DefineConstants),VS_VERSION_DEV14=True</DefineConstants> | |
<DefineConstants Condition="'$(VisualStudioVersion)'=='' AND '$(ProjectLanguage)' != 'VisualBasic'">$(DefineConstants);VS_VERSION_DEV14</DefineConstants> | |
</PropertyGroup> | |
<!-- Nuget Package properties --> | |
<PropertyGroup> | |
<BuildRevision>$([System.DateTime]::Now.ToString(`yyMMdd`))</BuildRevision> | |
<NuGetReleaseVersion>1.0.0</NuGetReleaseVersion> | |
<NuGetPreReleaseVersion>$(NuGetReleaseVersion)-rc</NuGetPreReleaseVersion> | |
<NuGetPerBuildPreReleaseVersion Condition="'$(BuildRevision)' != ''">$(NuGetPreReleaseVersion)-$(BuildRevision.Trim())</NuGetPerBuildPreReleaseVersion> | |
<NUGET_PACKAGES Condition=" '$(NUGET_PACKAGES)' == '' ">$(MSBuildThisFileDirectory)..\packages</NUGET_PACKAGES> | |
<RestorePackagesPath>$(NUGET_PACKAGES)</RestorePackagesPath> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- Compiler tool locations. --> | |
<FsLexToolPath>$(FSharpSourcesRoot)\..\packages\FsLexYacc.7.0.6\build</FsLexToolPath> | |
<FsYaccToolPath>$(FSharpSourcesRoot)\..\packages\FsLexYacc.7.0.6\build</FsYaccToolPath> | |
<FsiToolExe>fsi.exe</FsiToolExe> | |
<FsLexToolExe>fslex.exe</FsLexToolExe> | |
<FsYaccToolExe>fsyacc.exe</FsYaccToolExe> | |
<!-- FSharp.Compiler.Tools is currently only used to get a working FSI.EXE to execute some scripts during the build --> | |
<!-- The LKG FSI.EXE requires MSBuild 15 to be installed, which is painful --> | |
<FsiToolPath>$(FSharpSourcesRoot)\..\packages\FSharp.Compiler.Tools.4.1.27\tools</FsiToolPath> | |
<!-- The version of MSBuild assumed byt the F# compiler in the Mono packaging of F# --> | |
<MonoPackagingMSBuildVersionFull>14.0.0.0</MonoPackagingMSBuildVersionFull> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildThisFileDirectory)..\packages\XliffTasks.$(XliffTasksVersion)\build\XliffTasks.props" Condition="'$(DisableLocalization)' != 'true'" />--> | |
<PropertyGroup> | |
<!-- in addition to the standard xlf languages, also provide a baseline en->en file --> | |
<XlfLanguages>en;$(XlfLanguages)</XlfLanguages> | |
</PropertyGroup> | |
<!--<Import Project="$(RestorePackagesPath)\XliffTasks.$(XliffTasksVersion)\build\XliffTasks.targets" Condition="'$(DisableLocalization)' != 'true'" />--> | |
<!--<Import Project="../Tools/Build.Common.props" Condition="'$(TargetDotnetProfile)'=='coreclr'" />--> | |
<!--<Import Project="$(BuildVersionFilePath)" Condition="Exists('$(BuildVersionFilePath)')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj | |
============================================================================================================================================ | |
--> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
<OutputType>Library</OutputType> | |
<AssemblyName>FSharp.Compiler.Private</AssemblyName> | |
<DefineConstants>COMPILER;$(DefineConstants)</DefineConstants> | |
<NoWarn>$(NoWarn);62;9</NoWarn> | |
<ProjectGuid>{2E4D67B4-522D-4CF7-97E4-BA940F0B18F3}</ProjectGuid> | |
<AllowCrossTargeting>true</AllowCrossTargeting> | |
<BaseAddress>0x06800000</BaseAddress> | |
<OtherFlags>$(OtherFlags) /warnon:1182</OtherFlags> | |
</PropertyGroup> | |
<!-- References --> | |
<!--<Import Project="$(FSharpSourcesRoot)\.nuget\NuGet.targets" Condition="Exists('$(FSharpSourcesRoot)\.nuget\NuGet.targets')" />--> | |
<Target Name="CopyToBuiltBin" BeforeTargets="BuiltProjectOutputGroup" AfterTargets="CoreCompile"> | |
<ItemGroup> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.Build.Framework.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.Build.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.Build.Conversion.Core.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.Build.Engine.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.Build.Utilities.Core.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.Build.Tasks.Core.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.DiaSymReader.PortablePdb.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\Microsoft.DiaSymReader.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\System.Reflection.Metadata.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\System.Collections.Immutable.dll" /> | |
<BuiltProjectOutputGroupKeyOutput Include="$(FSharpSourcesRoot)\..\$(Configuration)\net40\bin\System.ValueTuple.dll" /> | |
</ItemGroup> | |
</Target> | |
<!--<Import Project="$(FSharpSourcesRoot)\.nuget\NuGet.targets" Condition="Exists('$(FSharpSourcesRoot)\.nuget\NuGet.targets')" />--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(FSharpSourcesRoot)\FSharpSource.targets"> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/FSharpSource.targets | |
============================================================================================================================================ | |
--> | |
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. --> | |
<PropertyGroup> | |
<RepoRoot>$(MSBuildThisFileDirectory)..\</RepoRoot> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="..\build\targets\GitHash.props"> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/build/targets/GitHash.props | |
============================================================================================================================================ | |
--> | |
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. --> | |
<!-- | |
Copied from RepoToolset. Might be slightly modified to adjust for the current F# build system specifics if necessary. | |
--> | |
<!-- | |
Defines the following properties: | |
GitHeadSha | |
--> | |
<PropertyGroup> | |
<RepoRoot Condition="'$(RepoRoot)' == ''">$(MSBuildThisFileDirectory)..\..\</RepoRoot> | |
</PropertyGroup> | |
<Choose> | |
<When Condition="'$(BUILD_SOURCEVERSION)' != ''"> | |
<PropertyGroup> | |
<GitHeadSha>$(BUILD_SOURCEVERSION)</GitHeadSha> | |
</PropertyGroup> | |
</When> | |
<When Condition="'$(BUILD_SOURCEVERSION)' == '' and '$(GIT_COMMIT)' != ''"> | |
<PropertyGroup> | |
<GitHeadSha>$(GIT_COMMIT)</GitHeadSha> | |
</PropertyGroup> | |
</When> | |
<When Condition="'$(CI)' != '1'"> | |
<PropertyGroup> | |
<GitHeadSha><developer build></GitHeadSha> | |
</PropertyGroup> | |
</When> | |
<Otherwise> | |
<PropertyGroup> | |
<GitHeadSha /> | |
<_DotGitDir>$(RepoRoot).git</_DotGitDir> | |
<_HeadFileContent Condition="Exists('$(_DotGitDir)/HEAD')">$([System.IO.File]::ReadAllText('$(_DotGitDir)/HEAD').Trim())</_HeadFileContent> | |
<_RefPath Condition="$(_HeadFileContent.StartsWith('ref: '))">$(_DotGitDir)/$(_HeadFileContent.Substring(5))</_RefPath> | |
<GitHeadSha Condition="'$(_RefPath)' != '' and Exists('$(_RefPath)')">$([System.IO.File]::ReadAllText('$(_RefPath)').Trim())</GitHeadSha> | |
<GitHeadSha Condition="'$(_HeadFileContent)' != '' and '$(_RefPath)' == ''">$(_HeadFileContent)</GitHeadSha> | |
</PropertyGroup> | |
</Otherwise> | |
</Choose> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/FSharpSource.targets | |
============================================================================================================================================ | |
--> | |
<PropertyGroup> | |
<MicroBuildAssemblyFileLanguage>fs</MicroBuildAssemblyFileLanguage> | |
</PropertyGroup> | |
<!-- Some unit test assemblies must not have strong names since they reference other assemblies that don't have strong names --> | |
<!-- These unit test assemblies can't use InternalsVisibleTo into assemblies with strong names. --> | |
<PropertyGroup Condition="'$(StrongNames)' == 'false'"> | |
<SkipSigning>true</SkipSigning> | |
<UseOpenSourceSign>false</UseOpenSourceSign> | |
<SignAssembly>false</SignAssembly> | |
<DefineConstants>NO_STRONG_NAMES;$(DefineConstants)</DefineConstants> | |
</PropertyGroup> | |
<!-- On mono, use test.snk to sign private compiler binaries --> | |
<PropertyGroup Condition="'$(StrongNames)' != 'false' AND '$(MonoPackaging)' == 'true' AND '$(AssemblyName)' != 'FSharp.Core' AND '$(AssemblyName)' != 'FSharp.Compiler.Interactive.Settings'"> | |
<AssemblyOriginatorKeyFile>$(FSharpSourcesRoot)\fsharp\test.snk</AssemblyOriginatorKeyFile> | |
<DelaySign>false</DelaySign> | |
<DefineConstants>STRONG_NAME_FSHARP_COMPILER_WITH_TEST_KEY;$(DefineConstants)</DefineConstants> | |
</PropertyGroup> | |
<!-- On proto, use the FSharp.Core assembly version for everything (it only matters we get it right for FSharp.Core), and pass the version flag explicitly if not using MicroBuild --> | |
<PropertyGroup Condition="'$(Configuration)' == 'Proto'"> | |
<MicroBuildAssemblyVersion>$(FSCoreVersion)</MicroBuildAssemblyVersion> | |
<OtherFlags>$(OtherFlags) --version:"$(MicroBuildAssemblyVersion)"</OtherFlags> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(UseSourceLink)' == 'true'"> | |
<SourceLink>$(IntermediateOutputPath)source_link.json</SourceLink> | |
</PropertyGroup> | |
<!-- We assume MSBuild 15.0 or greater. Note the Mono packaging doesn't actually rely on any specific version of MSBuild any longer except to build the MSBuild task--> | |
<PropertyGroup> | |
<DefineConstants>MSBUILD_AT_LEAST_14;$(DefineConstants)</DefineConstants> | |
</PropertyGroup> | |
<!-- Disable uwa toolchain nuget package resolve logic. --> | |
<PropertyGroup> | |
<NuGetTargets Condition="'$(NuGetTargets)' == ''">false</NuGetTargets> | |
</PropertyGroup> | |
<PropertyGroup> | |
<NugetLocalPackagesDir>$(FSharpSourcesRoot)\..\packages</NugetLocalPackagesDir> | |
<FsCheckVersion>3.0.0-alpha3</FsCheckVersion> | |
<FsCheckFullVersion>3.0.0.0</FsCheckFullVersion> | |
<FsCheckLibDir>$(FSharpSourcesRoot)\..\packages\FsCheck.$(FsCheckVersion)\lib\</FsCheckLibDir> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="FSharpSource.Profiles.targets"> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/FSharpSource.Profiles.targets | |
============================================================================================================================================ | |
--> | |
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. --> | |
<PropertyGroup Condition="'$(TargetDotnetProfile)'=='net40'"> | |
<DefineConstants Condition="'$(MonoPackaging)' == 'true'">$(DefineConstants);CROSS_PLATFORM_COMPILER</DefineConstants> | |
<DefineConstants>$(DefineConstants);ENABLE_MONO_SUPPORT</DefineConstants> | |
<DefineConstants>$(DefineConstants);BE_SECURITY_TRANSPARENT</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_LCIDFROMCODEPAGE</DefineConstants> | |
</PropertyGroup> | |
<!-- Note: The TargetDotnetProfile value 'coreclr' currently covers all of netstandard1.6, netstandard2.0 and netcoreapp2.0 in a confused way --> | |
<!-- These should be distinguished in the future --> | |
<PropertyGroup Condition="'$(TargetDotnetProfile)'=='coreclr'"> | |
<DefineConstants>$(DefineConstants);NETSTANDARD1_6</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_APP_DOMAINS</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_BEGINEND_READWRITE</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_BINARY_SERIALIZATION</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_DEFAULT_DEPENDENCY_TYPE</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_CORHOST_SIGNER</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_EVENTWAITHANDLE_IDISPOSABLE</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_HEAPTERMINATION</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_LINKEDRESOURCES</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_LOADER_OPTIMIZATION</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_PARAMETERIZED_THREAD_START</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_PDB_READER</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_PDB_WRITER</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_REFLECTION_MODULE_HANDLES</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_REFLECTION_ONLY</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_RUNTIMEENVIRONMENT</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_SECURITY_PERMISSIONS</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_SERVERCODEPAGES</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_SYMBOLSTORE</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_SYSTEM_CONFIGURATION</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_THREAD</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_THREADABORT</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_WAITONE_MILLISECONDS</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_WEB_CLIENT</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_WIN_REGISTRY</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_WINFORMS</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_NO_INDENTED_TEXT_WRITER</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_REDUCED_EXCEPTIONS</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_REDUCED_CONSOLE</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_RESHAPED_REFEMIT</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_RESHAPED_GLOBALIZATION</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants> | |
<DefineConstants>$(DefineConstants);FX_RESHAPED_MSBUILD</DefineConstants> | |
<OtherFlags>$(OtherFlags) --simpleresolution</OtherFlags> | |
<TargetFramework Condition="'$(TargetFramework)' == ''">netstandard1.6</TargetFramework> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/FSharpSource.targets | |
============================================================================================================================================ | |
--> | |
<PropertyGroup Condition="'$(TargetDotnetProfile)'=='net40'"> | |
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v4.5</TargetFrameworkVersion> | |
<TargetFrameworkProfile /> | |
<!-- MSbuild works out the assembly references --> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetDotnetProfile)'=='coreclr'"> | |
<TargetProfile>netcore</TargetProfile> | |
<TargetFrameworkProfile /> | |
<!-- We are currently directly referencing corefx assemblies, so profile7 is not really true --> | |
<TargetFrameworkVersion Condition="'$(TargetFrameworkVersion)' == ''">v5.0</TargetFrameworkVersion> | |
<ImplicitlyExpandTargetFramework>false</ImplicitlyExpandTargetFramework> | |
<!-- To stop msbuild being helpful and referencing the dlls for the profile --> | |
<NuGetTargetMoniker>.NETStandard,Version=v1.6</NuGetTargetMoniker> | |
<PortableNuGetMode>true</PortableNuGetMode> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(TargetDotnetProfile)'=='coreclr' AND '$(DOTNET_PUBLISH_TEST)'=='true' "> | |
<OutputPath>bin\$(Configuration)\netcoreapp1.0</OutputPath> | |
<CustomOutputPath>true</CustomOutputPath> | |
<DOTNET_PUBLISH>true</DOTNET_PUBLISH> | |
<DOTNET_PUBLISH_PLATFORM>win7-x64</DOTNET_PUBLISH_PLATFORM> | |
<DOTNET_PUBLISH_PATH>$(FSharpSourcesRoot)\..\tests\testbin\$(Configuration)\coreclr\$(AssemblyName)</DOTNET_PUBLISH_PATH> | |
<OutputType>Exe</OutputType> | |
<TargetExt>.dll</TargetExt> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(TargetDotnetProfile)'=='coreclr' AND '$(DOTNET_PUBLISH_COMPILERS)'=='true' "> | |
<DOTNET_PUBLISH_FSC>true</DOTNET_PUBLISH_FSC> | |
<DOTNET_PUBLISH_FSC_PATH>$(FSharpSourcesRoot)\..\tests\testbin\$(Configuration)\coreclr\FSC</DOTNET_PUBLISH_FSC_PATH> | |
<DOTNET_PUBLISH_FSI>true</DOTNET_PUBLISH_FSI> | |
<DOTNET_PUBLISH_FSI_PATH>$(FSharpSourcesRoot)\..\tests\testbin\$(Configuration)\coreclr\FSC</DOTNET_PUBLISH_FSI_PATH> | |
</PropertyGroup> | |
<!-- If building an FSharp.Core for a back version (Mono Debian source builds only), put it in a qualified directory --> | |
<PropertyGroup> | |
<TargetFrameworkOutputDirectory Condition="'$(FSharpCoreBackVersion)' == ''">$(TargetDotnetProfile)</TargetFrameworkOutputDirectory> | |
<TargetFrameworkOutputDirectory Condition="'$(FSharpCoreBackVersion)' == '3.0'">fsharp30\$(TargetDotnetProfile)</TargetFrameworkOutputDirectory> | |
<TargetFrameworkOutputDirectory Condition="'$(FSharpCoreBackVersion)' == '3.1'">fsharp31\$(TargetDotnetProfile)</TargetFrameworkOutputDirectory> | |
<TargetFrameworkOutputDirectory Condition="'$(FSharpCoreBackVersion)' == '4.0'">fsharp40\$(TargetDotnetProfile)</TargetFrameworkOutputDirectory> | |
<TargetFrameworkOutputDirectory>$(TargetDotnetProfile)</TargetFrameworkOutputDirectory> | |
<IntermediateOutputPath>obj\$(Configuration)\$(TargetFrameworkOutputDirectory)\</IntermediateOutputPath> | |
</PropertyGroup> | |
<Choose> | |
<When Condition="'$(BuildWith)' == 'LKG' AND '$(BUILD_PROTO_WITH_CORECLR_LKG)' == '1'"> | |
<PropertyGroup> | |
<OutputPath>$(FSharpSourcesRoot)\..\$(Configuration)\$(ProtoFlavour)\bin</OutputPath> | |
<!-- When using coreclr to bootstrap to proto. We acquire the FSharp.Core LKG, targets LKG, the FSharp.Build LKG from the .NET Framework compiler tools LKG package. --> | |
<FSharpNetCoreLkgPath>$(FSharpSourcesRoot)\..\Tools\dotnet20\sdk\2.0.3-servicing-007056\FSharp</FSharpNetCoreLkgPath> | |
<FSharpTargetsPath>..\packages\FSharp.Compiler.Tools.4.1.27\tools\Microsoft.FSharp.Targets</FSharpTargetsPath> | |
<!-- When using coreclr to bootstrap, the compiler binary comes from the coreclr LKG, invoked using corehost.exe --> | |
<FscToolPath>$(FSharpSourcesRoot)\..\Tools\dotnet20</FscToolPath> | |
<FscToolExe Condition="'$(OS)' != 'Unix'">dotnet.exe</FscToolExe> | |
<FscToolExe Condition="'$(OS)' == 'Unix'">dotnet</FscToolExe> | |
<DotnetFscCompilerPath>$(FSharpNetCoreLkgPath)\fsc.exe</DotnetFscCompilerPath> | |
</PropertyGroup> | |
</When> | |
<When Condition="'$(BuildWith)' == 'LKG' AND '$(BUILD_PROTO_WITH_CORECLR_LKG)' != '1'"> | |
<!-- Use .NET Framework to bootstrap to proto --> | |
<PropertyGroup> | |
<OutputPath>$(FSharpSourcesRoot)\..\$(Configuration)\$(ProtoFlavour)\bin</OutputPath> | |
<FSharpTargetsPath>..\packages\FSharp.Compiler.Tools.4.1.27\tools\Microsoft.FSharp.Targets</FSharpTargetsPath> | |
</PropertyGroup> | |
</When> | |
<When Condition="'$(BuildWith)' == '' AND '$(TargetDotnetProfile)'=='coreclr'"> | |
<!-- Compiling coreclr with Proto, currently always use a .NET Framework/Mono proto --> | |
<PropertyGroup> | |
<OutputPath Condition=" '$(CustomOutputPath)' != 'true' ">$(FSharpSourcesRoot)\..\$(Configuration)\$(TargetFrameworkOutputDirectory)\bin</OutputPath> | |
<FscToolPath>$(FSharpSourcesRoot)\..\Proto\$(ProtoFlavour)\bin</FscToolPath> | |
<FscToolExe>fsc.exe</FscToolExe> | |
<FSharpTargetsPath>..\Proto\$(ProtoFlavour)\bin\Microsoft.Portable.FSharp.targets</FSharpTargetsPath> | |
</PropertyGroup> | |
</When> | |
<Otherwise> | |
<!-- Compiling net40 with Proto --> | |
<PropertyGroup> | |
<OutputPath Condition=" '$(CustomOutputPath)' != 'true' ">$(FSharpSourcesRoot)\..\$(Configuration)\$(TargetFrameworkOutputDirectory)\bin</OutputPath> | |
<FscToolPath>$(FSharpSourcesRoot)\..\Proto\$(ProtoFlavour)\bin</FscToolPath> | |
<FscToolExe>fsc.exe</FscToolExe> | |
<FSharpTargetsPath>..\Proto\$(ProtoFlavour)\bin\Microsoft.FSharp.Targets</FSharpTargetsPath> | |
</PropertyGroup> | |
</Otherwise> | |
</Choose> | |
<PropertyGroup> | |
<CompileDependsOn>ValidateBuildTools;$(CompileDependsOn)</CompileDependsOn> | |
</PropertyGroup> | |
<Target Name="ValidateBuildTools" Condition="'$(ProjectLanguage)' == 'FSharp'"> | |
<Message Text="FSharpTargetsPath = $(FSharpTargetsPath)" /> | |
<Message Text="FSharpSourcesRoot = $(FSharpSourcesRoot)" /> | |
<Message Text="FscToolPath = $(FscToolPath)" /> | |
<Message Text="FsiToolPath = $(FsiToolPath)" /> | |
<Message Text="FsLexToolPath = $(FsLexToolPath)" /> | |
<Message Text="FsYaccToolPath = $(FsYaccToolPath)" /> | |
<Message Text="ToolsDir = $(ToolsDir)" /> | |
<Error Text="Expect $(FSharpTargetsPath) to exist" Condition="'!Exists('$(FSharpTargetsPath)')" /> | |
<Error Text="Expect $(FSharpNetCoreLkgPath)\fsc.exe to exist when BUILD_PROTO_WITH_CORECLR_LKG==1" Condition="'$(BUILD_PROTO_WITH_CORECLR_LKG)' == 1 AND !Exists('$(FSharpNetCoreLkgPath)\fsc.exe')" /> | |
<Error Text="Expect $(FscToolPath)\$(FscToolExe) to exist" Condition="!Exists('$(FscToolPath)\$(FscToolExe)')" /> | |
<Error Text="Expect $(DotnetFscCompilerPath) to exist if non-empty" Condition="'$(DotnetFscCompilerPath)' != '' AND !Exists('$(DotnetFscCompilerPath)')" /> | |
<Error Text="Expect $(FsiToolPath)\$(FsiToolExe) to exist" Condition="!Exists('$(FsiToolPath)\$(FsiToolExe)')" /> | |
<Error Text="Expect $(FsLexToolPath)\$(FsLexToolExe) to exist" Condition="!Exists('$(FsLexToolPath)\$(FsLexToolExe)')" /> | |
<Error Text="Expect $(FsYaccToolPath)\$(FsYaccToolExe) to exist" Condition="!Exists('$(FsYaccToolPath)\$(FsYaccToolExe)')" /> | |
</Target> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(FSharpTargetsPath)" Condition="'$(ProjectLanguage)' == 'FSharp'"> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/Proto/net40/bin/Microsoft.FSharp.Targets | |
============================================================================================================================================ | |
--> | |
<!-- Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. --> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.FSharp.Targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file defines the steps in the standard build process specific for F# .NET projects. | |
For example, it contains the step that actually calls the F# compiler. The remainder | |
of the build process is defined in Microsoft.Common.targets, which is imported by | |
this file. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
</PropertyGroup> | |
<UsingTask TaskName="Fsc" AssemblyFile="FSharp.Build.dll" /> | |
<UsingTask TaskName="FSharpEmbedResourceText" AssemblyFile="FSharp.Build.dll" /> | |
<UsingTask TaskName="FSharpEmbedResXSource" AssemblyFile="FSharp.Build.dll" /> | |
<UsingTask TaskName="CreateFSharpManifestResourceName" AssemblyFile="FSharp.Build.dll" /> | |
<UsingTask TaskName="WriteCodeFragment" AssemblyFile="FSharp.Build.dll" /> | |
<PropertyGroup> | |
<ImportByWildcardBeforeMicrosoftFSharpTargets Condition="'$(ImportByWildcardBeforeMicrosoftFSharpTargets)' == ''">true</ImportByWildcardBeforeMicrosoftFSharpTargets> | |
<ImportByWildcardAfterMicrosoftFSharpTargets Condition="'$(ImportByWildcardAfterMicrosoftFSharpTargets)' == ''">true</ImportByWildcardAfterMicrosoftFSharpTargets> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore\*" Condition="'$(ImportByWildcardBeforeMicrosoftFSharpTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportBefore')" />--> | |
<PropertyGroup> | |
<DefaultLanguageSourceExtension>.fs</DefaultLanguageSourceExtension> | |
<Language>F#</Language> | |
<TargetRuntime>Managed</TargetRuntime> | |
<Tailcalls Condition="'$(Tailcalls)'==''">$(Optimize)</Tailcalls> | |
<FrameworkRegistryBase Condition="'$(TargetFrameworkIdentifier)'=='Silverlight'">Software\Microsoft\Microsoft SDKs\$(TargetFrameworkIdentifier)</FrameworkRegistryBase> | |
<!-- Visual studio requires a non-empty RootNamespace value for "Add New Item" to work. --> | |
<RootNamespace Condition="'$(RootNamespace)'==''">RootNamespace</RootNamespace> | |
<Actual32Bit Condition="'$(TargetFrameworkVersion)'=='v2.0' or '$(TargetFrameworkVersion)'=='v3.0' or '$(TargetFrameworkVersion)'=='v3.5' or '$(TargetFrameworkVersion)'=='v4.0'">false</Actual32Bit> | |
<Actual32Bit Condition="!('$(TargetFrameworkVersion)'=='v2.0' or '$(TargetFrameworkVersion)'=='v3.0' or '$(TargetFrameworkVersion)'=='v3.5' or '$(TargetFrameworkVersion)'=='v4.0')">$(Prefer32Bit)</Actual32Bit> | |
</PropertyGroup> | |
<!-- | |
The CreateManifestResourceNames target create the manifest resource names from the .RESX | |
files. | |
[IN] | |
@(EmbeddedResource) - The list of EmbeddedResource items that have been pre-processed to add metadata about resource type | |
Expected Metadata "Type" can either be "Resx" or "Non-Resx" | |
[OUT] | |
@(EmbeddedResource) - EmbeddedResource items with metadata | |
For F# applications the transformation is like: | |
Resources1.resx => Resources1 => Build into main assembly | |
SubFolder\Resources1.resx => SubFolder.Resources1 => Build into main assembly | |
Resources1.fr.resx => Resources1.fr => Build into satellite assembly | |
Resources1.notaculture.resx => Resources1.notaculture => Build into main assembly | |
For other project systems, this transformation may be different. | |
--> | |
<PropertyGroup> | |
<CreateManifestResourceNamesDependsOn /> | |
</PropertyGroup> | |
<PropertyGroup> | |
<UsingXBuild>false</UsingXBuild> | |
<UsingXBuild Condition="'$(MSBuildAssemblyVersion)' == ''">true</UsingXBuild> | |
</PropertyGroup> | |
<Target Name="CreateManifestResourceNames" Condition="'@(EmbeddedResource)' != ''" DependsOnTargets="$(CreateManifestResourceNamesDependsOn)"> | |
<ItemGroup> | |
<_Temporary Remove="@(_Temporary)" /> | |
</ItemGroup> | |
<!-- START XBUILD --> | |
<!-- This is the implementation of CreateManifestResourceNames which is compatible with the way --> | |
<!-- xbuild processes resource names --> | |
<CreateFSharpManifestResourceName Condition="'@(ResxWithNoCulture)' != '' AND '$(UsingXBuild)' == 'true'" UseStandardResourceNames="$(UseStandardResourceNames)" ResourceFiles="@(ResxWithNoCulture)" RootNamespace="$(RootNamespace)"> | |
<Output TaskParameter="ManifestResourceNames" ItemName="ManifestResourceWithNoCultureName" /> | |
</CreateFSharpManifestResourceName> | |
<CreateFSharpManifestResourceName Condition="'@(NonResxWithNoCulture)' != '' AND '$(UsingXBuild)' == 'true'" UseStandardResourceNames="$(UseStandardResourceNames)" ResourceFiles="@(NonResxWithNoCulture)" RootNamespace="$(RootNamespace)"> | |
<Output TaskParameter="ManifestResourceNames" ItemName="ManifestNonResxWithNoCulture" /> | |
</CreateFSharpManifestResourceName> | |
<CreateFSharpManifestResourceName Condition="'@(ResxWithCulture)' != '' AND '$(UsingXBuild)' == 'true'" UseStandardResourceNames="$(UseStandardResourceNames)" ResourceFiles="@(ResxWithCulture)" RootNamespace="$(RootNamespace)"> | |
<Output TaskParameter="ManifestResourceNames" ItemName="ManifestResourceWithCultureName" /> | |
</CreateFSharpManifestResourceName> | |
<CreateFSharpManifestResourceName Condition="'@(NonResxWithCulture)' != '' AND '$(UsingXBuild)' == 'true'" UseStandardResourceNames="$(UseStandardResourceNames)" ResourceFiles="@(NonResxWithCulture)" RootNamespace="$(RootNamespace)"> | |
<Output TaskParameter="ManifestResourceNames" ItemName="ManifestNonResxWithCulture" /> | |
</CreateFSharpManifestResourceName> | |
<!-- END XBUILD --> | |
<!-- START MSBUILD --> | |
<!-- This is the implementation of CreateManifestResourceNames which is compatible with the way --> | |
<!-- msbuild processes resource names --> | |
<!-- Create manifest names for culture and non-culture Resx files, and for non-culture Non-Resx resources --> | |
<CreateFSharpManifestResourceName ResourceFiles="@(EmbeddedResource)" RootNamespace="$(RootNamespace)" UseStandardResourceNames="$(UseStandardResourceNames)" Condition="'%(EmbeddedResource.ManifestResourceName)' == '' and ('%(EmbeddedResource.WithCulture)' == 'false' or '%(EmbeddedResource.Type)' == 'Resx') AND '$(UsingXBuild)' == 'false'"> | |
<Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_Temporary" /> | |
</CreateFSharpManifestResourceName> | |
<!-- Create manifest names for all culture non-resx resources --> | |
<CreateFSharpManifestResourceName ResourceFiles="@(EmbeddedResource)" RootNamespace="$(RootNamespace)" UseStandardResourceNames="$(UseStandardResourceNames)" PrependCultureAsDirectory="false" Condition="'%(EmbeddedResource.ManifestResourceName)' == '' and '%(EmbeddedResource.WithCulture)' == 'true' and '%(EmbeddedResource.Type)' == 'Non-Resx' AND '$(UsingXBuild)' == 'false'"> | |
<Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_Temporary" /> | |
</CreateFSharpManifestResourceName> | |
<!-- END MSBUILD --> | |
<ItemGroup> | |
<EmbeddedResource Remove="@(EmbeddedResource)" Condition="'%(EmbeddedResource.ManifestResourceName)' == ''" /> | |
<EmbeddedResource Include="@(_Temporary)" /> | |
<_Temporary Remove="@(_Temporary)" /> | |
</ItemGroup> | |
</Target> | |
<ItemGroup> | |
<DocFileItem Include="$(DocumentationFile)" Condition="'$(DocumentationFile)'!=''" /> | |
</ItemGroup> | |
<ItemGroup Condition="'$(_DebugSymbolsProduced)' == 'true' and '$(PdbFile)' != ''"> | |
<_DebugSymbolsIntermediatePathTemporary Include="$(PdbFile)" /> | |
<!-- Add any missing .pdb extension, as the compiler does --> | |
<_DebugSymbolsIntermediatePath Include="@(_DebugSymbolsIntermediatePathTemporary->'%(RootDir)%(Directory)%(Filename).pdb')" /> | |
</ItemGroup> | |
<PropertyGroup> | |
<CoreCompileDependsOn>_ComputeNonExistentFileProperty</CoreCompileDependsOn> | |
</PropertyGroup> | |
<Target Name="GenerateFSharpTextResources" BeforeTargets="CoreResGen;PrepareForBuild"> | |
<MakeDir Directories="$(IntermediateOutputPath)" /> | |
<!-- Generate source for all resx files. --> | |
<FSharpEmbedResXSource EmbeddedResource="@(EmbeddedResource)" IntermediateOutputPath="$(IntermediateOutputPath)" TargetFramework="$(TargetFramework)"> | |
<Output TaskParameter="GeneratedSource" ItemName="_FsGeneratedResXSource" /> | |
</FSharpEmbedResXSource> | |
<ItemGroup> | |
<CompileBefore Include="@(_FsGeneratedResXSource)" /> | |
<FileWrites Include="@(_FsGeneratedResXSource)" /> | |
</ItemGroup> | |
<!-- Generate resx and source for all txt files. --> | |
<FSharpEmbedResourceText EmbeddedText="@(EmbeddedText)" IntermediateOutputPath="$(IntermediateOutputPath)"> | |
<Output TaskParameter="GeneratedSource" ItemName="_FsGeneratedTxtSource" /> | |
<Output TaskParameter="GeneratedResx" ItemName="_FsGeneratedResx" /> | |
</FSharpEmbedResourceText> | |
<ItemGroup> | |
<CompileBefore Include="@(_FsGeneratedTxtSource)" /> | |
<EmbeddedResource Include="@(_FsGeneratedResx)" /> | |
<FileWrites Include="@(_FsGeneratedTxtSource)" /> | |
<FileWrites Include="@(_FsGeneratedResx)" /> | |
</ItemGroup> | |
</Target> | |
<Target Name="CoreCompile" Inputs="$(MSBuildAllProjects);
 @(CompileBefore);
 @(Compile);
 @(CompileAfter);
 @(_CoreCompileResourceInputs);
 @(ManifestNonResxWithNoCultureOnDisk);
 $(ApplicationIcon);
 $(AssemblyOriginatorKeyFile);
 @(ReferencePath);
 @(CompiledLicenseFile);
 @(EmbeddedDocumentation); 
 $(Win32Resource);
 $(Win32Manifest);
 @(CustomAdditionalCompileInputs);
 $(VersionFile);
 $(KeyOriginatorFile)" Outputs="@(DocFileItem);
 @(IntermediateAssembly);
 @(_DebugSymbolsIntermediatePath);
 $(NonExistentFile);
 @(CustomAdditionalCompileOutputs)" Returns="" DependsOnTargets="$(CoreCompileDependsOn)"> | |
<Error Condition="'$(SilverlightVersion)' != '' and '$(SilverlightVersion)' != 'v5.0'" Text="In this version of Visual Studio, F# for Silverlight can only target Silverlight v5.0. Use a prior version of Visual Studio to target previous versions of Silverlight with F#." /> | |
<Warning Condition="'$(Win32ResourceFile)' != '' " Text="The property <Win32ResourceFile> has been renamed to <Win32Resource>. Update your project file to ensure that the correct value is passed via the --win32res option to the F# compiler." /> | |
<!-- Workaround for differences between how msbuild and xbuild handle embedded resources. | |
If we just naively include the additional items needed for mono, that leads to issues | |
on msbuild/Windows due to double-including resources. | |
Here, we use the $(UsingXBuild) property to conditionally set another property containing the | |
correct list of resources based on the build system being used. | |
This could be a bit simpler, but xbuild doesn't seem to support msbuild 4.0 'item functions' | |
like Distinct(). | |
Reference: https://github.com/Microsoft/visualfsharp/pull/2595 | |
https://github.com/Microsoft/visualfsharp/pull/2605 | |
--> | |
<ItemGroup> | |
<ActualEmbeddedResources Condition=" '$(UsingXBuild)' == true" Include="@(_CoreCompileResourceInputs);@(ManifestResourceWithNoCulture);@(ManifestNonResxWithNoCultureOnDisk);@(CompiledLicenseFile);@(AdditionalEmbeddedResource)" /> | |
<ActualEmbeddedResources Condition=" '$(UsingXBuild)' != true" Include="@(_CoreCompileResourceInputs);@(CompiledLicenseFile);@(AdditionalEmbeddedResource)" /> | |
</ItemGroup> | |
<!-- Condition is to filter out the _CoreCompileResourceInputs so that it doesn't pass in culture resources to the compiler --> | |
<!-- NOTE: ManifestResourceWithNoCulture and ManifestNonResxWithNoCultureOnDisk are generated by Mono targets files --> | |
<Fsc Condition=" '%(_CoreCompileResourceInputs.WithCulture)' != 'true' " BaseAddress="$(BaseAddress)" CodePage="$(CodePage)" DebugSymbols="$(DebugSymbols)" DebugType="$(DebugType)" DefineConstants="$(DefineConstants)" DelaySign="$(DelaySign)" DisabledWarnings="$(NoWarn)" DocumentationFile="$(DocumentationFile)" DotnetFscCompilerPath="$(DotnetFscCompilerPath)" EmbedAllSources="$(EmbedAllSources)" Embed="$(Embed)" GenerateInterfaceFile="$(GenerateInterfaceFile)" HighEntropyVA="$(HighEntropyVA)" KeyFile="$(KeyOriginatorFile)" LCID="$(LCID)" NoFramework="true" Optimize="$(Optimize)" OtherFlags="$(OtherFlags)" OutputAssembly="@(IntermediateAssembly)" PdbFile="$(PdbFile)" Platform="$(PlatformTarget)" Prefer32Bit="$(Actual32Bit)" PreferredUILang="$(PreferredUILang)" ProvideCommandLineArgs="$(ProvideCommandLineArgs)" PublicSign="$(PublicSign)" References="@(ReferencePath)" ReferencePath="$(ReferencePath)" Resources="@(ActualEmbeddedResources)" SkipCompilerExecution="$(SkipCompilerExecution)" SourceLink="$(SourceLink)" Sources="@(CompileBefore);@(Compile);@(CompileAfter)" Tailcalls="$(Tailcalls)" TargetType="$(OutputType)" TargetProfile="$(TargetProfile)" ToolExe="$(FscToolExe)" ToolPath="$(FscToolPath)" TreatWarningsAsErrors="$(TreatWarningsAsErrors)" UseStandardResourceNames="$(UseStandardResourceNames)" Utf8Output="$(Utf8Output)" VersionFile="$(VersionFile)" VisualStudioStyleErrors="$(VisualStudioStyleErrors)" WarningLevel="$(WarningLevel)" WarningsAsErrors="$(WarningsAsErrors)" Win32ManifestFile="$(Win32Manifest)" Win32ResourceFile="$(Win32Resource)" SubsystemVersion="$(SubsystemVersion)"> | |
<Output TaskParameter="CommandLineArgs" ItemName="FscCommandLineArgs" /> | |
</Fsc> | |
<ItemGroup> | |
<_CoreCompileResourceInputs Remove="@(_CoreCompileResourceInputs)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildBinPath)\Microsoft.Common.targets"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.Common.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file defines the steps in the standard build process for .NET projects. It | |
contains all the steps that are common among the different .NET languages, such as | |
Visual Basic, and Visual C#. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<!-- | |
In VS 2010 SP1 and VS 2012, both supported for asset compatibility, the MSBuild installed | |
as part of them did not enforce using the local ToolsVersion (4.0) in all cases, but instead | |
just used whatever ToolsVersion was in the project file if it existed on the machine, and | |
only forced 4.0 if that ToolsVersion did not exist. | |
Moving forward, we do want to enforce a single acting ToolsVersion per version of Visual Studio, | |
but in order to approximate this behavior on VS 2010 SP1 and VS 2012 as well, we've redirected | |
the targets: If we're building using 4.X MSBuild (which doesn't define the new reserved | |
property, MSBuildAssemblyVersion), we'll point right back at the 4.0 targets, which still exist | |
as part of the .NET Framework. Only if we're using the new MSBuild will we point to the current | |
targets. | |
--> | |
<Choose> | |
<When Condition="'$(MSBuildAssemblyVersion)' == ''"> | |
<PropertyGroup> | |
<CommonTargetsPath>$(MSBuildFrameworkToolsPath)\Microsoft.Common.targets</CommonTargetsPath> | |
</PropertyGroup> | |
</When> | |
<Otherwise> | |
<PropertyGroup> | |
<CommonTargetsPath>$(MSBuildToolsPath)\Microsoft.Common.CurrentVersion.targets</CommonTargetsPath> | |
</PropertyGroup> | |
</Otherwise> | |
</Choose> | |
<PropertyGroup Condition="'$(MSBuildAssemblyVersion)' == ''"> | |
<!-- | |
Overrides for the Microsoft.Common.targets extension targets. Used to make sure that only the imports we specify | |
(hard-coded to 4.0 locations) are used, not the 12.0 locations that would be used by default. | |
NOTE: This logic is duplicated in Microsoft.VisualBasic.targets and in Microsoft.CSharp.targets because those two files | |
import Microsoft.Common.targets from the current directory and thus don't get the benefit of the redirections, so for | |
any changes to this logic in this file, please also edit the other two. | |
--> | |
<ImportByWildcardBefore40MicrosoftCommonTargets Condition="'$(ImportByWildcardBefore40MicrosoftCommonTargets)' == ''">$(ImportByWildcardBeforeMicrosoftCommonTargets)</ImportByWildcardBefore40MicrosoftCommonTargets> | |
<ImportByWildcardBefore40MicrosoftCommonTargets Condition="'$(ImportByWildcardBefore40MicrosoftCommonTargets)' == ''">true</ImportByWildcardBefore40MicrosoftCommonTargets> | |
<ImportByWildcardAfter40MicrosoftCommonTargets Condition="'$(ImportByWildcardAfter40MicrosoftCommonTargets)' == ''">$(ImportByWildcardAfterMicrosoftCommonTargets)</ImportByWildcardAfter40MicrosoftCommonTargets> | |
<ImportByWildcardAfter40MicrosoftCommonTargets Condition="'$(ImportByWildcardAfter40MicrosoftCommonTargets)' == ''">true</ImportByWildcardAfter40MicrosoftCommonTargets> | |
<ImportUserLocationsByWildcardBefore40MicrosoftCommonTargets Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftCommonTargets)' == ''">$(ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets)</ImportUserLocationsByWildcardBefore40MicrosoftCommonTargets> | |
<ImportUserLocationsByWildcardBefore40MicrosoftCommonTargets Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftCommonTargets)' == ''">true</ImportUserLocationsByWildcardBefore40MicrosoftCommonTargets> | |
<ImportUserLocationsByWildcardAfter40MicrosoftCommonTargets Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftCommonTargets)' == ''">$(ImportUserLocationsByWildcardAfterMicrosoftCommonTargets)</ImportUserLocationsByWildcardAfter40MicrosoftCommonTargets> | |
<ImportUserLocationsByWildcardAfter40MicrosoftCommonTargets Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftCommonTargets)' == ''">true</ImportUserLocationsByWildcardAfter40MicrosoftCommonTargets> | |
<ImportByWildcardBeforeMicrosoftCommonTargets>false</ImportByWildcardBeforeMicrosoftCommonTargets> | |
<ImportByWildcardAfterMicrosoftCommonTargets>false</ImportByWildcardAfterMicrosoftCommonTargets> | |
<ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets>false</ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets> | |
<ImportUserLocationsByWildcardAfterMicrosoftCommonTargets>false</ImportUserLocationsByWildcardAfterMicrosoftCommonTargets> | |
<CustomBeforeMicrosoftCommonTargets Condition="'$(CustomBeforeMicrosoftCommonTargets)' == ''">$(MSBuildExtensionsPath)\v4.0\Custom.Before.Microsoft.Common.targets</CustomBeforeMicrosoftCommonTargets> | |
<CustomAfterMicrosoftCommonTargets Condition="'$(CustomAfterMicrosoftCommonTargets)' == ''">$(MSBuildExtensionsPath)\v4.0\Custom.After.Microsoft.Common.targets</CustomAfterMicrosoftCommonTargets> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(MSBuildAssemblyVersion)' == '' and ('$(TargetFrameworkIdentifier)' == '.NETFramework' or '$(TargetFrameworkIdentifier)' == 'Silverlight' or ('$(TargetFrameworkIdentifier)' == '' and ('$(TargetRuntime)' == 'Managed' or '$(TargetRuntime)' == '')))"> | |
<!-- | |
Overrides for the Microsoft.NETFramework.props extension targets. Used to make sure that only the imports we specify | |
(hard-coded to 4.0 locations) are used, not the 12.0 locations that would be used by default. Required because | |
Microsoft.Common.targets imports it from the current directory, so we don't get a chance to redirect these in its | |
own redirection targets. | |
NOTE: This logic is duplicated in Microsoft.VisualBasic.targets and in Microsoft.CSharp.targets because those two files | |
import Microsoft.Common.targets from the current directory and thus don't get the benefit of these redirections either, | |
so for any changes to this logic in this file, please also edit the other two. | |
--> | |
<ImportByWildcardBefore40MicrosoftNetFrameworkProps Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkProps)' == ''">$(ImportByWildcardBeforeMicrosoftNetFrameworkProps)</ImportByWildcardBefore40MicrosoftNetFrameworkProps> | |
<ImportByWildcardBefore40MicrosoftNetFrameworkProps Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkProps)' == ''">true</ImportByWildcardBefore40MicrosoftNetFrameworkProps> | |
<ImportByWildcardAfter40MicrosoftNetFrameworkProps Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkProps)' == ''">$(ImportByWildcardAfterMicrosoftNetFrameworkProps)</ImportByWildcardAfter40MicrosoftNetFrameworkProps> | |
<ImportByWildcardAfter40MicrosoftNetFrameworkProps Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkProps)' == ''">true</ImportByWildcardAfter40MicrosoftNetFrameworkProps> | |
<ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkProps Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkProps)' == ''">$(ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkProps)</ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkProps> | |
<ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkProps Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkProps)' == ''">true</ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkProps> | |
<ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkProps Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkProps)' == ''">$(ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkProps)</ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkProps> | |
<ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkProps Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkProps)' == ''">true</ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkProps> | |
<ImportByWildcardBeforeMicrosoftNetFrameworkProps>false</ImportByWildcardBeforeMicrosoftNetFrameworkProps> | |
<ImportByWildcardAfterMicrosoftNetFrameworkProps>false</ImportByWildcardAfterMicrosoftNetFrameworkProps> | |
<ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkProps>false</ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkProps> | |
<ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkProps>false</ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkProps> | |
</PropertyGroup> | |
<!--<ImportGroup Condition="'$(MSBuildAssemblyVersion)' == ''">--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\4.0\Microsoft.Common.targets\ImportBefore\*" Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftCommonTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\4.0\Microsoft.Common.targets\ImportBefore')" />--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.Common.targets\ImportBefore\*" Condition="'$(ImportByWildcardBefore40MicrosoftCommonTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\4.0\Microsoft.Common.targets\ImportBefore')" />--> | |
<!--</ImportGroup>--> | |
<!--<ImportGroup Condition="'$(MSBuildAssemblyVersion)' == ''">--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.props\ImportBefore\*" Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkProps)' == 'true' and exists('$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.props\ImportBefore')" />--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.props\ImportBefore\*" Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkProps)' == 'true' and exists('$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.props\ImportBefore')" />--> | |
<!--</ImportGroup>--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(CommonTargetsPath)"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.Common.CurrentVersion.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file defines the steps in the standard build process for .NET projects. It | |
contains all the steps that are common among the different .NET languages, such as | |
Visual Basic, and Visual C#. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="'$(MicrosoftCommonPropsHasBeenImported)' != 'true' and Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Microsoft.Common.props | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.Common.props | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<ImportByWildcardBeforeMicrosoftCommonProps Condition="'$(ImportByWildcardBeforeMicrosoftCommonProps)' == ''">true</ImportByWildcardBeforeMicrosoftCommonProps> | |
<ImportByWildcardAfterMicrosoftCommonProps Condition="'$(ImportByWildcardAfterMicrosoftCommonProps)' == ''">true</ImportByWildcardAfterMicrosoftCommonProps> | |
<ImportUserLocationsByWildcardBeforeMicrosoftCommonProps Condition="'$(ImportUserLocationsByWildcardBeforeMicrosoftCommonProps)' == ''">true</ImportUserLocationsByWildcardBeforeMicrosoftCommonProps> | |
<ImportUserLocationsByWildcardAfterMicrosoftCommonProps Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftCommonProps)' == ''">true</ImportUserLocationsByWildcardAfterMicrosoftCommonProps> | |
<ImportDirectoryBuildProps Condition="'$(ImportDirectoryBuildProps)' == ''">true</ImportDirectoryBuildProps> | |
</PropertyGroup> | |
<!-- | |
Determine the path to the directory build props file if the user did not disable $(ImportDirectoryBuildProps) and | |
they did not already specify an absolute path to use via $(DirectoryBuildPropsPath) | |
--> | |
<PropertyGroup Condition="'$(ImportDirectoryBuildProps)' == 'true' and '$(DirectoryBuildPropsPath)' == ''"> | |
<_DirectoryBuildPropsFile Condition="'$(_DirectoryBuildPropsFile)' == ''">Directory.Build.props</_DirectoryBuildPropsFile> | |
<_DirectoryBuildPropsBasePath Condition="'$(_DirectoryBuildPropsBasePath)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), '$(_DirectoryBuildPropsFile)'))</_DirectoryBuildPropsBasePath> | |
<DirectoryBuildPropsPath Condition="'$(_DirectoryBuildPropsBasePath)' != '' and '$(_DirectoryBuildPropsFile)' != ''">$([System.IO.Path]::Combine('$(_DirectoryBuildPropsBasePath)', '$(_DirectoryBuildPropsFile)'))</DirectoryBuildPropsPath> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(ImportDirectoryBuildProps)' == 'true' and exists('$(DirectoryBuildPropsPath)')"> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(DirectoryBuildPropsPath)</MSBuildAllProjects> | |
</PropertyGroup> | |
<!--<Import Project="$(DirectoryBuildPropsPath)" Condition="'$(ImportDirectoryBuildProps)' == 'true' and exists('$(DirectoryBuildPropsPath)')" />--> | |
<!-- | |
Prepare to import project extensions which usually come from packages. Package management systems will create a file at: | |
$(MSBuildProjectExtensionsPath)\$(MSBuildProjectFile).<SomethingUnique>.props | |
Each package management system should use a unique moniker to avoid collisions. It is a wild-card import so the package | |
management system can write out multiple files but the order of the import is alphabetic because MSBuild sorts the list. | |
--> | |
<PropertyGroup> | |
<!-- | |
The declaration of $(BaseIntermediateOutputPath) had to be moved up from Microsoft.Common.CurrentVersion.targets | |
in order for the $(MSBuildProjectExtensionsPath) to use it as a default. | |
--> | |
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">obj\</BaseIntermediateOutputPath> | |
<BaseIntermediateOutputPath Condition="!HasTrailingSlash('$(BaseIntermediateOutputPath)')">$(BaseIntermediateOutputPath)\</BaseIntermediateOutputPath> | |
<MSBuildProjectExtensionsPath Condition="'$(MSBuildProjectExtensionsPath)' == '' ">$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath> | |
<!-- | |
Import paths that are relative default to be relative to the importing file. However, since MSBuildExtensionsPath | |
defaults to BaseIntermediateOutputPath we expect it to be relative to the project directory. So if the path is relative | |
it needs to be made absolute based on the project directory. | |
--> | |
<MSBuildProjectExtensionsPath Condition="'$([System.IO.Path]::IsPathRooted($(MSBuildProjectExtensionsPath)))' == 'false'">$([System.IO.Path]::Combine('$(MSBuildProjectDirectory)', '$(MSBuildProjectExtensionsPath)'))</MSBuildProjectExtensionsPath> | |
<MSBuildProjectExtensionsPath Condition="!HasTrailingSlash('$(MSBuildProjectExtensionsPath)')">$(MSBuildProjectExtensionsPath)\</MSBuildProjectExtensionsPath> | |
<ImportProjectExtensionProps Condition="'$(ImportProjectExtensionProps)' == ''">true</ImportProjectExtensionProps> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildProjectExtensionsPath)$(MSBuildProjectFile).*.props" Condition="'$(ImportProjectExtensionProps)' == 'true' and exists('$(MSBuildProjectExtensionsPath)')" />--> | |
<!-- | |
Import wildcard "ImportBefore" props files if we're actually in a 12.0+ project (rather than a project being | |
treated as 4.0) | |
--> | |
<!--<ImportGroup Condition="'$(MSBuildAssemblyVersion)' != ''">--> | |
<!-- | |
Wildcard imports come from $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props.d folder. | |
This is very similar to the same extension point used in Microsoft.Common.targets, which is located in | |
the $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ directory. Unfortunately, there | |
is already a file named "Microsoft.Common.props" in this directory so we have to have a slightly different | |
directory name to hold extensions. | |
--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportBefore\*" Condition="'$(ImportUserLocationsByWildcardBeforeMicrosoftCommonProps)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportBefore')" />--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportBefore\*" Condition="'$(ImportByWildcardBeforeMicrosoftCommonProps)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportBefore')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Imports/Microsoft.Common.props/ImportBefore/Microsoft.NuGet.ImportBefore.props | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NuGet.ImportBefore.props | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (c) .NET Foundation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<NuGetProps Condition="'$(NuGetProps)'==''">$(MSBuildExtensionsPath)\Microsoft\NuGet\Microsoft.NuGet.props</NuGetProps> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(NuGetProps)" Condition="Exists('$(NuGetProps)') and '$(SkipImportNuGetProps)' != 'true'"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/Microsoft/NuGet/Microsoft.NuGet.props | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NuGet.props | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (c) .NET Foundation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<!--<Import Project="$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuget.props" Condition="Exists('$(MSBuildProjectDirectory)\$(MSBuildProjectName).nuget.props') AND '$(IncludeNuGetImports)' != 'false'" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Imports/Microsoft.Common.props/ImportBefore/Microsoft.NuGet.ImportBefore.props | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Microsoft.Common.props | |
============================================================================================================================================ | |
--> | |
<!--</ImportGroup>--> | |
<!-- | |
In VS 2010 SP1 and VS 2012, both supported for asset compatibility, the MSBuild installed | |
as part of them did not enforce using the local ToolsVersion (4.0) in all cases, but instead | |
just used whatever ToolsVersion was in the project file if it existed on the machine, and | |
only forced 4.0 if that ToolsVersion did not exist. | |
Moving forward, we do want to enforce a single acting ToolsVersion per version of Visual Studio, | |
but in order to approximate this behavior on VS 2010 SP1 and VS 2012 as well, we've redirected | |
the targets: If we're building using 4.X MSBuild (which doesn't define the new reserved | |
property, MSBuildAssemblyVersion), we'll point right back at the 4.0 targets, which still exist | |
as part of the .NET Framework. Only if we're using the new MSBuild will we point to the current | |
targets. | |
--> | |
<PropertyGroup Condition="'$(MSBuildAssemblyVersion)' == '' and ('$(VisualStudioVersion)' != '' and '$(VisualStudioVersion)' >= '12.0')"> | |
<!-- | |
Reset VisualStudioVersion if it's 12.0+: Should be 10.0 if VS 2010 is installed or 11.0 otherwise, | |
but since we don't have a good way of telling whether VS 2010 is installed, make it 11.0 if | |
VS 2012 is installed or 10.0 otherwise. The reset should be safe because if it was already | |
set to something (e.g. 11.0 in a VS 2012 command prompt) then MSBuild's internal | |
VisualStudioVersion-defaulting code should never come into the picture, so the only way it could | |
be 12.0+ when building a TV 12.0 project (because we're in this file) using MSBuild 4.5 (because | |
MSBuildAssemblyVersion hasn't been set) is if it's a TV 12.0 project on an empty command prompt. | |
--> | |
<VisualStudioVersion Condition="Exists('$(MSBuildExtensionsPath)\4.0\Microsoft.Common.props')">11.0</VisualStudioVersion> | |
<VisualStudioVersion Condition="!Exists('$(MSBuildExtensionsPath)\4.0\Microsoft.Common.props')">10.0</VisualStudioVersion> | |
</PropertyGroup> | |
<!-- If building using 4.X MSBuild, we want to act like this project is TV 4.0, so override | |
the custom extensibility target locations with the hard-coded 4.0 equivalent. --> | |
<PropertyGroup Condition="'$(MSBuildAssemblyVersion)' == ''"> | |
<CustomBeforeMicrosoftCommonProps Condition="'$(CustomBeforeMicrosoftCommonProps)'==''">$(MSBuildExtensionsPath)\v4.0\Custom.Before.$(MSBuildThisFile)</CustomBeforeMicrosoftCommonProps> | |
<CustomAfterMicrosoftCommonProps Condition="'$(CustomAfterMicrosoftCommonProps)'==''">$(MSBuildExtensionsPath)\v4.0\Custom.After.$(MSBuildThisFile)</CustomAfterMicrosoftCommonProps> | |
</PropertyGroup> | |
<!-- If building using 4.X MSBuild, we want to act like this project is TV 4.0, so import | |
Microsoft.Common.props from the 4.0 location, and make sure everything else in here is | |
set up such that if it's defaulted to something there, it won't be overridden here. --> | |
<!--<Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.Common.props" Condition="'$(MSBuildAssemblyVersion)' == '' and Exists('$(MSBuildExtensionsPath)\4.0\Microsoft.Common.props')" />--> | |
<PropertyGroup> | |
<CustomBeforeMicrosoftCommonProps Condition="'$(CustomBeforeMicrosoftCommonProps)'==''">$(MSBuildExtensionsPath)\v$(MSBuildToolsVersion)\Custom.Before.$(MSBuildThisFile)</CustomBeforeMicrosoftCommonProps> | |
<CustomAfterMicrosoftCommonProps Condition="'$(CustomAfterMicrosoftCommonProps)'==''">$(MSBuildExtensionsPath)\v$(MSBuildToolsVersion)\Custom.After.$(MSBuildThisFile)</CustomAfterMicrosoftCommonProps> | |
</PropertyGroup> | |
<!-- | |
Only import the extension targets if we're actually in a 12.0 project here (rather than one we're attempting | |
to treat as 4.0) OR if the Dev11 Microsoft.Common.props don't exist. If it's a 12.0 project we're redirecting | |
to 4.0 and the Dev11 Microsoft.Common.props do exist, the extension targets will have been imported already | |
so there's no need to import them twice. | |
--> | |
<!--<Import Project="$(CustomBeforeMicrosoftCommonProps)" Condition="'$(CustomBeforeMicrosoftCommonProps)' != '' and Exists('$(CustomBeforeMicrosoftCommonProps)') and ('$(MSBuildAssemblyVersion)' != '' or !Exists('$(MSBuildExtensionsPath)\4.0\Microsoft.Common.props'))" />--> | |
<!-- This is used to determine whether Microsoft.Common.targets needs to import | |
Microsoft.Common.props itself, or whether it has been imported previously, | |
e.g. by the project itself. --> | |
<PropertyGroup> | |
<MicrosoftCommonPropsHasBeenImported>true</MicrosoftCommonPropsHasBeenImported> | |
</PropertyGroup> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' and '$(DefaultProjectConfiguration)' != '' ">$(DefaultProjectConfiguration)</Configuration> | |
<Platform Condition=" '$(Platform)' == '' and '$(DefaultProjectPlatform)' != '' ">$(DefaultProjectPlatform)</Platform> | |
</PropertyGroup> | |
<PropertyGroup> | |
<WMSJSProject Condition="'$(WMSJSProject)' == ''">WJProject</WMSJSProject> | |
<WMSJSProjectDirectory Condition="'$(WMSJSProjectDirectory)' == ''">JavaScript</WMSJSProjectDirectory> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.VisualStudioVersion.v*.Common.props" Condition="'$(VisualStudioVersion)' == ''" />--> | |
<!-- | |
Only import the extension targets if we're actually in a 12.0 project here (rather than one we're attempting | |
to treat as 4.0) OR if the Dev11 Microsoft.Common.props don't exist. If it's a 12.0 project we're redirecting | |
to 4.0 and the Dev11 Microsoft.Common.props do exist, the extension targets will have been imported already | |
so there's no need to import them twice. | |
--> | |
<!--<Import Project="$(CustomAfterMicrosoftCommonProps)" Condition="'$(CustomAfterMicrosoftCommonProps)' != '' and Exists('$(CustomAfterMicrosoftCommonProps)') and ('$(MSBuildAssemblyVersion)' != '' or !Exists('$(MSBuildExtensionsPath)\4.0\Microsoft.Common.props'))" />--> | |
<!-- | |
Import wildcard "ImportAfter" props files if we're actually in a 12.0+ project (rather than a project being | |
treated as 4.0) | |
--> | |
<!--<ImportGroup Condition="'$(MSBuildAssemblyVersion)' != ''">--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftCommonProps)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportAfter')" />--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftCommonProps)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Imports\Microsoft.Common.props\ImportAfter')" />--> | |
<!--</ImportGroup>--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<PropertyGroup> | |
<ImportByWildcardBeforeMicrosoftCommonTargets Condition="'$(ImportByWildcardBeforeMicrosoftCommonTargets)' == ''">true</ImportByWildcardBeforeMicrosoftCommonTargets> | |
<ImportByWildcardAfterMicrosoftCommonTargets Condition="'$(ImportByWildcardAfterMicrosoftCommonTargets)' == ''">true</ImportByWildcardAfterMicrosoftCommonTargets> | |
<ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets Condition="'$(ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets)' == ''">true</ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets> | |
<ImportUserLocationsByWildcardAfterMicrosoftCommonTargets Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftCommonTargets)' == ''">true</ImportUserLocationsByWildcardAfterMicrosoftCommonTargets> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore\*" Condition="'$(ImportUserLocationsByWildcardBeforeMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore')" />--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore\*" Condition="'$(ImportByWildcardBeforeMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportBefore')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Microsoft.Common.targets/ImportBefore/Microsoft.Common.Mono.Before.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.Common.Mono.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file defines the steps in the standard build process specific for C# .NET projects. | |
For example, it contains the step that actually calls the C# compiler. The remainder | |
of the build process is defined in Microsoft.Common.targets, which is imported by | |
this file. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<!-- Mono's resgen doesn't support all the command line args, like /r: | |
So, don't use the tool --> | |
<ExecuteAsTool Condition="'$(ExecuteAsTool)' == '' and '$(MSBuildRuntimeType)' == 'Mono'">false</ExecuteAsTool> | |
<!-- Disable generation of serialization assemblies for now. workaround for bxc #55697 --> | |
<GenerateSerializationAssemblies Condition="'$(GenerateSerializationAssemblies)' == ''">Off</GenerateSerializationAssemblies> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!--<Import Project="$(MSBuildProjectFullPath).user" Condition="Exists('$(MSBuildProjectFullPath).user')" />--> | |
<!-- VS10 without SP1 and without VS11 will not have VisualStudioVersion set, so do that here --> | |
<PropertyGroup> | |
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> | |
</PropertyGroup> | |
<PropertyGroup> | |
<CustomBeforeMicrosoftCommonTargets Condition="'$(CustomBeforeMicrosoftCommonTargets)'==''">$(MSBuildExtensionsPath)\v$(MSBuildToolsVersion)\Custom.Before.Microsoft.Common.targets</CustomBeforeMicrosoftCommonTargets> | |
<CustomAfterMicrosoftCommonTargets Condition="'$(CustomAfterMicrosoftCommonTargets)'==''">$(MSBuildExtensionsPath)\v$(MSBuildToolsVersion)\Custom.After.Microsoft.Common.targets</CustomAfterMicrosoftCommonTargets> | |
<ReportingServicesTargets Condition="'$(ReportingServicesTargets)'==''">$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\ReportingServices\Microsoft.ReportingServices.targets</ReportingServicesTargets> | |
</PropertyGroup> | |
<!--<Import Project="$(CustomBeforeMicrosoftCommonTargets)" Condition="'$(CustomBeforeMicrosoftCommonTargets)' != '' and Exists('$(CustomBeforeMicrosoftCommonTargets)')" />--> | |
<!-- By default, we are creating a managed app because .NET 2.0 projects did not have this property. --> | |
<PropertyGroup Condition="'$(TargetRuntime)' == ''"> | |
<TargetRuntime>Managed</TargetRuntime> | |
</PropertyGroup> | |
<!-- Because .NET 2.0 apps did not set TargetFrameworkIdentifier, we need to set it for them here by default. If | |
the runtime is set to Managed, we also need to set these. Otherwise they should be blank (for instance Javascript or | |
Native apps) because they do not target a .NET Framework. --> | |
<PropertyGroup Condition="'$(TargetRuntime)' == 'Managed'"> | |
<TargetFrameworkIdentifier Condition="'$(TargetFrameworkIdentifier)' == ''">.NETFramework</TargetFrameworkIdentifier> | |
<TargetFrameworkVersion Condition=" '$(TargetFrameworkVersion)' == '' ">v4.0</TargetFrameworkVersion> | |
</PropertyGroup> | |
<!-- AvailablePlatforms is the list of platform targets available. --> | |
<PropertyGroup> | |
<AvailablePlatforms Condition="'$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == ''">Any CPU,x86,x64,Itanium</AvailablePlatforms> | |
<AvailablePlatforms Condition="'$(VisualStudioVersion)' != '' and '$(VisualStudioVersion)' > '10.0'">Any CPU,x86,x64</AvailablePlatforms> | |
</PropertyGroup> | |
<!-- Import does NOT apply to .NETCore --> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="Microsoft.NETFramework.props" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' or '$(TargetFrameworkIdentifier)' == 'Silverlight'"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.NETFramework.props | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NetFramework.props | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file contains .net framework specific properties, items and targets. They are factored into a Microsoft.NETFramework.targets and Microsoft.NetFramework.props | |
these two files are used to encapsulate the multi-targeting and framework specific build process. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<!-- | |
In VS 2010 SP1 and VS 2012, both supported for asset compatibility, the MSBuild installed | |
as part of them did not enforce using the local ToolsVersion (4.0) in all cases, but instead | |
just used whatever ToolsVersion was in the project file if it existed on the machine, and | |
only forced 4.0 if that ToolsVersion did not exist. | |
Moving forward, we do want to enforce a single acting ToolsVersion per version of Visual Studio, | |
but in order to approximate this behavior on VS 2010 SP1 and VS 2012 as well, we've redirected | |
the targets: If we're building using 4.X MSBuild (which doesn't define the new reserved | |
property, MSBuildAssemblyVersion), we'll point right back at the 4.0 targets, which still exist | |
as part of the .NET Framework. Only if we're using the new MSBuild will we point to the current | |
targets. | |
--> | |
<Choose> | |
<When Condition="'$(MSBuildAssemblyVersion)' == ''"> | |
<PropertyGroup> | |
<NetFrameworkPropsPath>$(MSBuildFrameworkToolsPath)\Microsoft.NETFramework.props</NetFrameworkPropsPath> | |
</PropertyGroup> | |
</When> | |
<Otherwise> | |
<PropertyGroup> | |
<NetFrameworkPropsPath>$(MSBuildToolsPath)\Microsoft.NETFramework.CurrentVersion.props</NetFrameworkPropsPath> | |
</PropertyGroup> | |
</Otherwise> | |
</Choose> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(NetFrameworkPropsPath)"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.NETFramework.CurrentVersion.props | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NETFramework.CurrentVersion.props | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file contains .net framework specific properties, items and targets. They are factored into a Microsoft.NETFramework.targets and Microsoft.NetFramework.props | |
these two files are used to encapsulate the multi-targeting and framework specific build process. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<ImportByWildcardBeforeMicrosoftNetFrameworkProps Condition="'$(ImportByWildcardBeforeMicrosoftNetFrameworkProps)' == ''">true</ImportByWildcardBeforeMicrosoftNetFrameworkProps> | |
<ImportByWildcardAfterMicrosoftNetFrameworkProps Condition="'$(ImportByWildcardAfterMicrosoftNetFrameworkProps)' == ''">true</ImportByWildcardAfterMicrosoftNetFrameworkProps> | |
<ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkProps Condition="'$(ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkProps)' == ''">true</ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkProps> | |
<ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkProps Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkProps)' == ''">true</ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkProps> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.props\ImportBefore\*" Condition="'$(ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkProps)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.props\ImportBefore')" />--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.props\ImportBefore\*" Condition="'$(ImportByWildcardBeforeMicrosoftNetFrameworkProps)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.props\ImportBefore')" />--> | |
<PropertyGroup> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
<!-- By default we want to replace subsets with profiles, but we do need a way to turning off this "upgrade" in case a user needs to target a subset--> | |
<UpgradeSubsetToProfile Condition="'$(UpgradeSubsetToProfile)' == '' ">true</UpgradeSubsetToProfile> | |
<TargetFrameworkProfile Condition="'$(UpgradeSubsetToProfile)' == 'true' and '$(TargetFrameworkSubset)' != '' and '$(TargetFrameworkProfile)' == ''">$(TargetFrameworkSubset)</TargetFrameworkProfile> | |
<!-- If we are not upgrading the Subset to a profile this means we want to target a subset, do not wipe out the subset name--> | |
<TargetFrameworkSubset Condition="'$(UpgradeTargetFrameworkSubsetToProfile)' == 'true'" /> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(FrameworkPathOverride)' != ''"> | |
<_FullFrameworkReferenceAssemblyPaths>$(FrameworkPathOverride)</_FullFrameworkReferenceAssemblyPaths> | |
<_TargetFrameworkDirectories>$(FrameworkPathOverride)</_TargetFrameworkDirectories> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(TargetFrameworkVersion)' == 'v4.0' and '$(FrameworkPathOverride)' == ''"> | |
<!-- The FrameworkPathOverride property is required for the IDE Visual Basic compiler to initialize. | |
This location contains reference assemblies for mscorlib.dll and other key VB assemblies. | |
This property is required during project evaluation, since the IDE compilers need to initialize before | |
any targets have had a chance to run, hence the use of a function to retrieve the location. | |
--> | |
<!-- Hard code for the most common TargetFrameworkVersion of v4.0 with no profile: this enables us to avoid calling the GetReferenceAssemblyPaths task --> | |
<_FullFrameworkReferenceAssemblyPaths Condition="Exists('$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\RedistList\FrameworkList.xml')">$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0</_FullFrameworkReferenceAssemblyPaths> | |
<_TargetFrameworkDirectories Condition="'$(TargetFrameworkProfile)' == ''">$(_FullFrameworkReferenceAssemblyPaths)</_TargetFrameworkDirectories> | |
<FrameworkPathOverride Condition="'$(TargetFrameworkProfile)' == ''">$(_TargetFrameworkDirectories)</FrameworkPathOverride> | |
<!-- Hard code for the most common TargetFrameworkVersion of v4.0 with Client profile: this enables us to avoid calling the GetReferenceAssemblyPaths task --> | |
<_TargetFrameworkDirectories Condition="'$(TargetFrameworkProfile)' == 'Client' and Exists('$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\$(TargetFrameworkProfile)\RedistList\FrameworkList.xml')">$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile\$(TargetFrameworkProfile)</_TargetFrameworkDirectories> | |
<FrameworkPathOverride Condition="'$(TargetFrameworkProfile)' == 'Client'">$(_TargetFrameworkDirectories)</FrameworkPathOverride> | |
<TargetFrameworkMonikerDisplayName Condition="'$(TargetFrameworkMonikerDisplayName)' == '' and '$(TargetFrameworkProfile)' == ''">.NET Framework 4</TargetFrameworkMonikerDisplayName> | |
<TargetFrameworkMonikerDisplayName Condition="'$(TargetFrameworkMonikerDisplayName)' == '' and '$(TargetFrameworkProfile)' == 'Client'">.NET Framework 4 Client Profile</TargetFrameworkMonikerDisplayName> | |
</PropertyGroup> | |
<PropertyGroup> | |
<MSBuildFrameworkToolsRoot Condition="'$(MSBuildFrameworkToolsRoot)' == '' and '$(MSBuildRuntimeType)' != 'Core'">$(Registry:HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework@InstallRoot)</MSBuildFrameworkToolsRoot> | |
<_DeploymentSignClickOnceManifests Condition="'$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.0' or '$(SignManifests)' == 'true'">true</_DeploymentSignClickOnceManifests> | |
<!-- Assembly names added to the AdditionalExplicitAssemblyReferences property will be added as references to the resolve assembly reference call by default this is done because when upgrading from | |
a project targeting 2.0 to 3.5 the system.core reference is not added, therefore we need to add it automatically --> | |
<AddAdditionalExplicitAssemblyReferences Condition="'$(AddAdditionalExplicitAssemblyReferences)' == ''">true</AddAdditionalExplicitAssemblyReferences> | |
<AdditionalExplicitAssemblyReferences Condition="'$(AddAdditionalExplicitAssemblyReferences)' == 'true' and '$(TargetCompactFramework)' != 'true' and ('$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetFrameworkVersion)' != 'v3.0')">System.Core;$(AdditionalExplicitAssemblyReferences)</AdditionalExplicitAssemblyReferences> | |
</PropertyGroup> | |
<!-- | |
============================================================ | |
GetToolPaths | |
Get the paths for the .NET Framework tools and sdk tools directories. | |
This does not need to be a target since all of the values are availiable at project evaluation time. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<TargetingClr2Framework Condition="'$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.0' or '$(TargetFrameworkVersion)' == 'v3.5'">true</TargetingClr2Framework> | |
<MSBuildManagedCompilerPath Condition="'$(TargetingClr2Framework)' == 'true'">$(MSBuildFrameworkToolsRoot)\v3.5</MSBuildManagedCompilerPath> | |
<TargetFrameworkSDKToolsDirectory Condition="'$(TargetingClr2Framework)' == 'true'">$(SDK35ToolsPath)</TargetFrameworkSDKToolsDirectory> | |
<!-- If the sdk path is not 3.5 or lower set it to the 40 sdk tools path. This will allow future target framework versions to use the 4.0 sdk tool set | |
When a new windows SDK revs they will inplace update the location pointed to by this property. When a new sdk is release this target will have to be | |
revised along with another toolsversion. --> | |
<TargetFrameworkSDKToolsDirectory Condition=" '$(TargetFrameworkSDKToolsDirectory)' == '' ">$(SDK40ToolsPath)</TargetFrameworkSDKToolsDirectory> | |
<TargetedRuntimeVersion Condition="'$(TargetedRuntimeVersion)' == '' and ('$(TargetingClr2Framework)' == 'true')">v2.0.50727</TargetedRuntimeVersion> | |
<TargetedRuntimeVersion Condition="'$(TargetedRuntimeVersion)' == ''">v$(MSBuildRuntimeVersion)</TargetedRuntimeVersion> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(TargetingClr2Framework)' != 'true' and '$(TargetFrameworkVersion)' != 'v4.0' and ('$(OutputType)' == 'exe' or '$(OutputType)' == 'winexe' or '$(OutputType)' == 'appcontainerexe' or '$(OutputType)' == '')"> | |
<Prefer32Bit Condition="'$(Prefer32Bit)' == ''">true</Prefer32Bit> | |
</PropertyGroup> | |
<PropertyGroup> | |
<Prefer32Bit Condition="'$(Prefer32Bit)' == ''">false</Prefer32Bit> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(TargetingClr2Framework)' != 'true' and '$(TargetFrameworkVersion)' != 'v4.0'"> | |
<HighEntropyVA Condition="'$(HighEntropyVA)' == ''">true</HighEntropyVA> | |
</PropertyGroup> | |
<PropertyGroup> | |
<HighEntropyVA Condition="'$(HighEntropyVA)' == ''">false</HighEntropyVA> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- ARM and AppContainerExe require subsystem version >= 6.02 (Windows 8) --> | |
<SubsystemVersion Condition="'$(SubsystemVersion)' == '' and ('$(PlatformTarget)' == 'ARM' or '$(OutputType)' == 'appcontainerexe' or '$(OutputType)' == 'winmdobj')">6.02</SubsystemVersion> | |
<!-- Starting with .Net 4.5 projects use subsystem 6.00 (Vista) as default --> | |
<SubsystemVersion Condition="'$(SubsystemVersion)' == '' and ('$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(TargetingClr2Framework)' != 'true' and '$(TargetFrameworkVersion)' != 'v4.0')">6.00</SubsystemVersion> | |
</PropertyGroup> | |
<PropertyGroup> | |
<ComReferenceExecuteAsTool Condition="'$(ExecuteAsTool)'!=''">$(ExecuteAsTool)</ComReferenceExecuteAsTool> | |
<ComReferenceExecuteAsTool Condition="'$(ExecuteAsTool)'=='' and '$(TargetingClr2Framework)' == 'true'">true</ComReferenceExecuteAsTool> | |
</PropertyGroup> | |
<PropertyGroup> | |
<ResGenExecuteAsTool Condition="'$(ExecuteAsTool)'!=''">$(ExecuteAsTool)</ResGenExecuteAsTool> | |
<ResGenExecuteAsTool Condition="'$(ExecuteAsTool)'=='' and '$(TargetingClr2Framework)' == 'true'">true</ResGenExecuteAsTool> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- Starting with .NET 4.5 projects we implictly reference all portable design-time facades --> | |
<ImplicitlyExpandDesignTimeFacades Condition="'$(ImplicitlyExpandDesignTimeFacades)' == '' and ('$(TargetFrameworkIdentifier)' == '.NETFramework' and '$(TargetingClr2Framework)' != 'true' and '$(TargetFrameworkVersion)' != 'v4.0')">true</ImplicitlyExpandDesignTimeFacades> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.props\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftNetFrameworkProps)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.props\ImportAfter')" />--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.props\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkProps)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.props\ImportAfter')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.NETFramework.props | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<PropertyGroup> | |
<!-- Yield optimization properties --> | |
<YieldDuringToolExecution Condition="'$(YieldDuringToolExecution)' == ''">true</YieldDuringToolExecution> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetFrameworkIdentifier)' != '' and '$(TargetFrameworkVersion)' != ''"> | |
<TargetFrameworkMoniker Condition="'$(TargetFrameworkMoniker)' == '' and '$(TargetFrameworkProfile)' != ''">$(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion),Profile=$(TargetFrameworkProfile)</TargetFrameworkMoniker> | |
<TargetFrameworkMoniker Condition="'$(TargetFrameworkMoniker)' == ''">$(TargetFrameworkIdentifier),Version=$(TargetFrameworkVersion)</TargetFrameworkMoniker> | |
<!-- The FrameworkPathOverride is required for the inproc visual basic compiler to initialize when targeting target frameworks less than 4.0. If .net 2.0 is not installed then the property value above will not provide the location | |
of mscorlib. This is also true if the build author overrides this property to some other directory which does not contain mscorlib.dll. In the case we cannot find mscorlib.dll at the correct location | |
we need to find a directory which does contain mscorlib to allow the inproc compiler to initialize and give us the chance to show certain dialogs in the IDE (which only happen after initialization).--> | |
<FrameworkPathOverride Condition="'$(FrameworkPathOverride)' == ''">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetPathToStandardLibraries($(TargetFrameworkIdentifier), $(TargetFrameworkVersion), $(TargetFrameworkProfile), $(PlatformTarget), $(TargetFrameworkRootPath)))</FrameworkPathOverride> | |
<FrameworkPathOverride Condition="!Exists('$(FrameworkPathOverride)\mscorlib.dll')">$(MSBuildFrameworkToolsPath)</FrameworkPathOverride> | |
</PropertyGroup> | |
<PropertyGroup> | |
<TargetPlatformIdentifier Condition="'$(TargetPlatformIdentifier)' == ''">Windows</TargetPlatformIdentifier> | |
<TargetPlatformVersion Condition="'$(TargetPlatformVersion)' == ''">7.0</TargetPlatformVersion> | |
<TargetPlatformSdkPath Condition="'$(TargetPlatformSdkPath)' == '' and '$(TargetPlatformSdkRootOverride)' != ''">$(TargetPlatformSdkRootOverride)\</TargetPlatformSdkPath> | |
<TargetPlatformSdkPath Condition="'$(TargetPlatformSdkPath)' == '' and '$(TargetPlatformIdentifier)' == 'Windows' and '$(OS)' == 'Windows_NT' and '$(MSBuildRuntimeType)' != 'Core'">$([MSBuild]::GetRegistryValueFromView('HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SDKs\Windows\v$(TargetPlatformVersion)', InstallationFolder, null, RegistryView.Registry32, RegistryView.Default))</TargetPlatformSdkPath> | |
<TargetPlatformSdkPath Condition="'$(TargetPlatformSdkPath)' == ''">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetPlatformSDKLocation($(TargetPlatformIdentifier), $(TargetPlatformVersion)))</TargetPlatformSdkPath> | |
<TargetPlatformSdkMetadataLocation Condition="'$(TargetPlatformSdkMetadataLocation)' == '' and Exists('$(TargetPlatformSdkPath)')">$(TargetPlatformSdkPath)Windows Metadata</TargetPlatformSdkMetadataLocation> | |
<TargetPlatformSdkMetadataLocation Condition="Exists('$(TargetPlatformSdkPath)') and ('$(TargetPlatformSdkMetadataLocation)' == '' or !Exists('$(TargetPlatformSdkMetadataLocation)'))">$(TargetPlatformSdkPath)References\CommonConfiguration\Neutral</TargetPlatformSdkMetadataLocation> | |
<TargetPlatformWinMDLocation Condition="'$(TargetPlatformWinMDLocation)' == '' and Exists('$(TargetPlatformSdkMetadataLocation)')">$(TargetPlatformSdkMetadataLocation)</TargetPlatformWinMDLocation> | |
<UseOSWinMdReferences Condition="'$(UseOSWinMdReferences)' == '' and ('$(TargetPlatformWinMDLocation)' == '' and '$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' > '7.0')">true</UseOSWinMdReferences> | |
<TargetPlatformWinMDLocation Condition="'$(UseOsWinMdReferences)' == 'true'">$(WinDir)\System32\WinMetadata</TargetPlatformWinMDLocation> | |
<TargetPlatformMoniker Condition="'$(TargetPlatformMoniker)' == ''">$(TargetPlatformIdentifier),Version=$(TargetPlatformVersion)</TargetPlatformMoniker> | |
<TargetPlatformDisplayName Condition="'$(TargetPlatformDisplayName)' == ''">$([Microsoft.Build.Utilities.ToolLocationHelper]::GetPlatformSDKDisplayName($(TargetPlatformIdentifier), $(TargetPlatformVersion)))</TargetPlatformDisplayName> | |
</PropertyGroup> | |
<!-- | |
Several properties must be set in the main project file, before using this .TARGETS file. | |
However, if the properties are not set, we pick some defaults. | |
OutDir: | |
Indicates the final output location for the project or solution. When building a solution, | |
OutDir can be used to gather multiple project outputs in one location. In addition, | |
OutDir is included in AssemblySearchPaths used for resolving references. | |
OutputPath: | |
This property is usually specified in the project file and is used to initialize OutDir. | |
OutDir and OutputPath are distinguished for legacy reasons, and OutDir should be used if at all possible. | |
BaseIntermediateOutputPath: | |
This is the top level folder where all configuration specific intermediate output folders will be created. | |
Default value is obj\ | |
IntermediateOutputPath: | |
This is the full intermediate Output Path, and is derived from BaseIntermediateOutputPath, if none specified | |
(eg. obj\debug). If this property is overridden, then setting BaseIntermediateOutputPath has no effect. | |
--> | |
<PropertyGroup> | |
<!-- | |
We support two types/styles of debug file names here: | |
1. `.pdb` style - foo.dll => foo.pdb , foo.exe => foo.pdb | |
2. !`.pdb` style, like '.mdb' - foo.dll => foo.dll.mdb, foo.exe => foo.exe.mdb | |
--> | |
<_DebugFileExt Condition="'$(_DebugFileExt)' == ''">.pdb</_DebugFileExt> | |
<!-- Ensure any OutputPath has a trailing slash, so it can be concatenated --> | |
<OutputPath Condition="'$(OutputPath)' != '' and !HasTrailingSlash('$(OutputPath)')">$(OutputPath)\</OutputPath> | |
<AssemblyName Condition=" '$(AssemblyName)'=='' ">$(MSBuildProjectName)</AssemblyName> | |
<!-- | |
Be careful not to give OutputPath a default value in the case of an invalid Configuration/Platform. | |
We use OutputPath specifically to check for invalid configurations/platforms. | |
--> | |
<OutputPath Condition=" '$(Platform)'=='' and '$(Configuration)'=='' and '$(OutputPath)'=='' ">bin\Debug\</OutputPath> | |
<_OriginalConfiguration>$(Configuration)</_OriginalConfiguration> | |
<_OriginalPlatform>$(Platform)</_OriginalPlatform> | |
<Configuration Condition=" '$(Configuration)'=='' ">Debug</Configuration> | |
<ConfigurationName Condition=" '$(ConfigurationName)' == '' ">$(Configuration)</ConfigurationName> | |
<!-- Example, Debug --> | |
<Platform Condition=" '$(Platform)'=='' ">AnyCPU</Platform> | |
<OutputType Condition=" '$(TargetType)' != ''">$(TargetType)</OutputType> | |
<OutputType Condition=" '$(TargetType)' == 'Container' or '$(TargetType)' == 'DocumentContainer' ">library</OutputType> | |
<OutputType Condition=" '$(OutputType)' == '' ">exe</OutputType> | |
<DebugSymbols Condition=" '$(ConfigurationName)' == 'Debug' and '$(DebugSymbols)' == '' and '$(DebugType)'==''">true</DebugSymbols> | |
<!-- Whether or not a .pdb file is produced. --> | |
<_DebugSymbolsProduced>false</_DebugSymbolsProduced> | |
<_DebugSymbolsProduced Condition="'$(DebugSymbols)'=='true'">true</_DebugSymbolsProduced> | |
<_DebugSymbolsProduced Condition="'$(DebugType)'=='none'">false</_DebugSymbolsProduced> | |
<_DebugSymbolsProduced Condition="'$(DebugType)'=='pdbonly'">true</_DebugSymbolsProduced> | |
<_DebugSymbolsProduced Condition="'$(DebugType)'=='full'">true</_DebugSymbolsProduced> | |
<_DebugSymbolsProduced Condition="'$(DebugType)'=='portable'">true</_DebugSymbolsProduced> | |
<_DebugSymbolsProduced Condition="'$(DebugType)'=='embedded'">false</_DebugSymbolsProduced> | |
<!-- Whether or not a .xml file is produced. --> | |
<_DocumentationFileProduced>true</_DocumentationFileProduced> | |
<_DocumentationFileProduced Condition="'$(DocumentationFile)'==''">false</_DocumentationFileProduced> | |
<!-- Whether or not a reference assembly is produced. --> | |
<ProduceReferenceAssembly Condition="'$(ProduceReferenceAssembly)' == ''">false</ProduceReferenceAssembly> | |
</PropertyGroup> | |
<PropertyGroup Condition=" '$(OutputPath)' == '' "> | |
<!-- | |
A blank OutputPath at this point means that the user passed in an invalid Configuration/Platform | |
combination. Whether this is considered an error or a warning depends on the value of | |
$(SkipInvalidConfigurations). | |
--> | |
<_InvalidConfigurationError Condition=" '$(SkipInvalidConfigurations)' != 'true' ">true</_InvalidConfigurationError> | |
<_InvalidConfigurationWarning Condition=" '$(SkipInvalidConfigurations)' == 'true' ">true</_InvalidConfigurationWarning> | |
</PropertyGroup> | |
<!-- | |
IDE Macros available from both integrated builds and from command line builds. | |
The following properties are 'macros' that are available via IDE for | |
pre and post build steps. | |
--> | |
<PropertyGroup> | |
<TargetExt Condition="'$(TargetExt)' == '' and '$(OutputType)'=='exe'">.exe</TargetExt> | |
<TargetExt Condition="'$(TargetExt)' == '' and '$(OutputType)'=='winexe'">.exe</TargetExt> | |
<TargetExt Condition="'$(TargetExt)' == '' and '$(OutputType)'=='appcontainerexe'">.exe</TargetExt> | |
<TargetExt Condition="'$(TargetExt)' == '' and '$(OutputType)'=='library'">.dll</TargetExt> | |
<TargetExt Condition="'$(TargetExt)' == '' and '$(OutputType)'=='module'">.netmodule</TargetExt> | |
<TargetExt Condition="'$(TargetExt)' == '' and '$(OutputType)'=='winmdobj'">.winmdobj</TargetExt> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- Required for enabling Team Build for packaging app package-generating projects --> | |
<OutDirWasSpecified Condition=" '$(OutDir)'!='' and '$(OutDirWasSpecified)'=='' ">true</OutDirWasSpecified> | |
<OutDir Condition=" '$(OutDir)' == '' ">$(OutputPath)</OutDir> | |
<!-- Example, bin\Debug\ --> | |
<!-- Ensure OutDir has a trailing slash, so it can be concatenated --> | |
<OutDir Condition="'$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')">$(OutDir)\</OutDir> | |
<ProjectName Condition=" '$(ProjectName)' == '' ">$(MSBuildProjectName)</ProjectName> | |
<!-- Example, MyProject --> | |
<!-- For projects that generate app packages or ones that want a per-project output directory, update OutDir to include the project name --> | |
<OutDir Condition="'$(OutDir)' != '' and '$(OutDirWasSpecified)' == 'true' and (('$(WindowsAppContainer)' == 'true' and '$(GenerateProjectSpecificOutputFolder)' != 'false') or '$(GenerateProjectSpecificOutputFolder)' == 'true')">$(OutDir)$(ProjectName)\</OutDir> | |
<TargetName Condition="'$(TargetName)' == '' and '$(OutputType)' == 'winmdobj' and '$(RootNamespace)' != ''">$(RootNamespace)</TargetName> | |
<TargetName Condition=" '$(TargetName)' == '' ">$(AssemblyName)</TargetName> | |
<!-- Example, MyAssembly --> | |
<ProjectFileName Condition=" '$(ProjectFileName)' == '' ">$(MSBuildProjectFile)</ProjectFileName> | |
<!-- Example, MyProject.csproj --> | |
<ProjectExt Condition=" '$(ProjectExt)' == '' ">$(MSBuildProjectExtension)</ProjectExt> | |
<!-- Example, .csproj --> | |
<WinMDExpOutputWindowsMetadataFilename Condition="'$(WinMDExpOutputWindowsMetadataFilename)' == '' and '$(OutputType)' == 'winmdobj'">$(TargetName).winmd</WinMDExpOutputWindowsMetadataFilename> | |
<TargetFileName Condition=" '$(TargetFileName)' == '' and '$(OutputType)' == 'winmdobj'">$(WinMDExpOutputWindowsMetadataFilename)</TargetFileName> | |
<TargetFileName Condition=" '$(TargetFileName)' == '' ">$(TargetName)$(TargetExt)</TargetFileName> | |
<!-- Example, MyAssembly.dll --> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- | |
The PublishableProject property is used when invoking the publish target on a solution that | |
contains multiple projects. The property determines which projects should be published, and | |
which projects should be skipped in the publish target. By default any "Windows Application" | |
or "Console Application" project type is publishable. However, a project that would otherwise | |
be published can be skipped by defining the PublishableProject property in the project itself. | |
--> | |
<_DeploymentPublishableProjectDefault Condition="'$(OutputType)'=='winexe' or '$(OutputType)'=='exe' or '$(OutputType)'=='appcontainerexe'">true</_DeploymentPublishableProjectDefault> | |
<PublishableProject Condition="'$(PublishableProject)'==''">$(_DeploymentPublishableProjectDefault)</PublishableProject> | |
<_DeploymentTargetApplicationManifestFileName Condition="'$(OutputType)'=='library'">Native.$(AssemblyName).manifest</_DeploymentTargetApplicationManifestFileName> | |
<!-- Example, Native.MyAssembly.manifest --> | |
<_DeploymentTargetApplicationManifestFileName Condition="'$(OutputType)'=='winexe'">$(TargetFileName).manifest</_DeploymentTargetApplicationManifestFileName> | |
<!-- Example, MyAssembly.exe.manifest --> | |
<_DeploymentTargetApplicationManifestFileName Condition="'$(OutputType)'=='exe'">$(TargetFileName).manifest</_DeploymentTargetApplicationManifestFileName> | |
<!-- Example, MyAssembly.exe.manifest --> | |
<_DeploymentTargetApplicationManifestFileName Condition="'$(OutputType)'=='appcontainerexe'">$(TargetFileName).manifest</_DeploymentTargetApplicationManifestFileName> | |
<!-- Example, MyAssembly.exe.manifest --> | |
<TargetDeployManifestFileName Condition="'$(TargetDeployManifestFileName)' == '' and '$(HostInBrowser)' != 'true'">$(AssemblyName).application</TargetDeployManifestFileName> | |
<!-- Example, MyAssembly.application --> | |
<TargetDeployManifestFileName Condition="'$(TargetDeployManifestFileName)' == '' and '$(HostInBrowser)' == 'true'">$(AssemblyName).xbap</TargetDeployManifestFileName> | |
<!-- Example, MyAssembly.xbap --> | |
<GenerateClickOnceManifests Condition="'$(OutputType)'=='winexe' or '$(OutputType)'=='exe' or '$(OutputType)'=='appcontainerexe'">$(GenerateManifests)</GenerateClickOnceManifests> | |
<_DeploymentApplicationManifestIdentity Condition="'$(OutputType)'=='library'">Native.$(AssemblyName)</_DeploymentApplicationManifestIdentity> | |
<_DeploymentApplicationManifestIdentity Condition="'$(OutputType)'=='winexe'">$(AssemblyName).exe</_DeploymentApplicationManifestIdentity> | |
<_DeploymentApplicationManifestIdentity Condition="'$(OutputType)'=='exe'">$(AssemblyName).exe</_DeploymentApplicationManifestIdentity> | |
<_DeploymentApplicationManifestIdentity Condition="'$(OutputType)'=='appcontainerexe'">$(AssemblyName).exe</_DeploymentApplicationManifestIdentity> | |
<_DeploymentDeployManifestIdentity Condition="'$(HostInBrowser)' != 'true'">$(AssemblyName).application</_DeploymentDeployManifestIdentity> | |
<_DeploymentDeployManifestIdentity Condition="'$(HostInBrowser)' == 'true'">$(AssemblyName).xbap</_DeploymentDeployManifestIdentity> | |
<_DeploymentFileMappingExtension Condition="'$(MapFileExtensions)'=='true'">.deploy</_DeploymentFileMappingExtension> | |
<_DeploymentFileMappingExtension Condition="'$(MapFileExtensions)'!='true'" /> | |
<_DeploymentBuiltUpdateInterval Condition="'$(UpdatePeriodically)'=='true'">$(UpdateInterval)</_DeploymentBuiltUpdateInterval> | |
<_DeploymentBuiltUpdateIntervalUnits Condition="'$(UpdatePeriodically)'=='true'">$(UpdateIntervalUnits)</_DeploymentBuiltUpdateIntervalUnits> | |
<_DeploymentBuiltUpdateInterval Condition="'$(UpdatePeriodically)'!='true'">0</_DeploymentBuiltUpdateInterval> | |
<_DeploymentBuiltUpdateIntervalUnits Condition="'$(UpdatePeriodically)'!='true'">Days</_DeploymentBuiltUpdateIntervalUnits> | |
<_DeploymentBuiltMinimumRequiredVersion Condition="'$(UpdateRequired)'=='true' and '$(Install)'=='true'">$(MinimumRequiredVersion)</_DeploymentBuiltMinimumRequiredVersion> | |
<MaxTargetPath Condition="'$(MaxTargetPath)'==''">100</MaxTargetPath> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- | |
By default, GenerateApplicationManifest puts all satellite assemblies to the manifest | |
record by default by setting TargetCulture to *. | |
--> | |
<TargetCulture Condition="'$(TargetCulture)'==''">*</TargetCulture> | |
<FallbackCulture Condition="'$(UICulture)'!='' and '$(FallbackCulture)'==''">$(UICulture)</FallbackCulture> | |
</PropertyGroup> | |
<ItemGroup> | |
<!-- Not used any more--> | |
<_OutputPathItem Include="$(OutDir)" /> | |
<_UnmanagedRegistrationCache Include="$(BaseIntermediateOutputPath)$(MSBuildProjectFile).UnmanagedRegistration.cache" /> | |
<_ResolveComReferenceCache Include="$(IntermediateOutputPath)$(MSBuildProjectFile).ResolveComReference.cache" /> | |
</ItemGroup> | |
<PropertyGroup> | |
<!-- Example, c:\MyProjects\MyProject\bin\debug\ --> | |
<!-- | |
Condition intentionally omitted on this one, because it causes problems | |
when we pick up the value of an environment variable named TargetDir | |
--> | |
<TargetDir Condition="'$(OutDir)' != ''">$([MSBuild]::Escape($([System.IO.Path]::GetFullPath(`$([System.IO.Path]::Combine(`$(MSBuildProjectDirectory)`, `$(OutDir)`))`))))</TargetDir> | |
<!-- Example, c:\MyProjects\MyProject\bin\debug\MyAssembly.dll --> | |
<TargetPath Condition=" '$(TargetPath)' == '' ">$(TargetDir)$(TargetFileName)</TargetPath> | |
<TargetRefPath Condition=" '$(TargetRefPath)' == '' and '$(ProduceReferenceAssembly)' == 'true' ">$([MSBuild]::NormalizePath($(TargetDir), 'ref', $(TargetFileName)))</TargetRefPath> | |
<!-- Example, c:\MyProjects\MyProject\ --> | |
<ProjectDir Condition=" '$(ProjectDir)' == '' ">$(MSBuildProjectDirectory)\</ProjectDir> | |
<!-- Example, c:\MyProjects\MyProject\MyProject.csproj --> | |
<ProjectPath Condition=" '$(ProjectPath)' == '' ">$(ProjectDir)$(ProjectFileName)</ProjectPath> | |
<!-- Example, AnyCPU --> | |
<PlatformName Condition=" '$(PlatformName)' == '' ">$(Platform)</PlatformName> | |
</PropertyGroup> | |
<ItemGroup> | |
<!-- This is not used here but remains for backwards compatibility --> | |
<AppConfigFileDestination Include="$(OutDir)$(TargetFileName).config" /> | |
</ItemGroup> | |
<!-- | |
IDE Macros available only from integrated builds. | |
The following properties are 'macros' that are available via IDE for | |
pre and post build steps. However, they are not defined when directly building | |
a project from the command line, only when building a solution. | |
--> | |
<PropertyGroup> | |
<DevEnvDir Condition="'$(DevEnvDir)'==''">*Undefined*</DevEnvDir> | |
<SolutionName Condition="'$(SolutionName)'==''">*Undefined*</SolutionName> | |
<!-- Example, MySolution --> | |
<SolutionFileName Condition="'$(SolutionFileName)'==''">*Undefined*</SolutionFileName> | |
<!-- Example, MySolution.sln --> | |
<SolutionPath Condition="'$(SolutionPath)'==''">*Undefined*</SolutionPath> | |
<!-- Example, f:\MySolutions\MySolution\MySolution.sln --> | |
<SolutionDir Condition="'$(SolutionDir)'==''">*Undefined*</SolutionDir> | |
<!-- Example, f:\MySolutions\MySolution\ --> | |
<SolutionExt Condition="'$(SolutionExt)'==''">*Undefined*</SolutionExt> | |
<!-- Example, .sln --> | |
</PropertyGroup> | |
<PropertyGroup> | |
<GenerateBindingRedirectsOutputType Condition="'$(OutputType)'=='exe' or '$(OutputType)'=='winexe'">true</GenerateBindingRedirectsOutputType> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(AutoUnifyAssemblyReferences)' == ''"> | |
<AutoUnifyAssemblyReferences>true</AutoUnifyAssemblyReferences> | |
<AutoUnifyAssemblyReferences Condition="'$(GenerateBindingRedirectsOutputType)' == 'true' and '$(AutoGenerateBindingRedirects)' != 'true'">false</AutoUnifyAssemblyReferences> | |
</PropertyGroup> | |
<PropertyGroup> | |
<BaseIntermediateOutputPath Condition="!HasTrailingSlash('$(BaseIntermediateOutputPath)')">$(BaseIntermediateOutputPath)\</BaseIntermediateOutputPath> | |
<CleanFile Condition="'$(CleanFile)'==''">$(MSBuildProjectFile).FileListAbsolute.txt</CleanFile> | |
<!-- During DesignTime Builds, skip project reference build as Design time is only queueing information.--> | |
<BuildProjectReferences Condition="'$(BuildProjectReferences)' == '' and '$(DesignTimeBuild)' == 'true'">false</BuildProjectReferences> | |
<!-- By default we will build (and if applicable, clean) all project references. But this can be used to disable that--> | |
<BuildProjectReferences Condition="'$(BuildProjectReferences)' == ''">true</BuildProjectReferences> | |
<BuildInParallel Condition="'$(BuildInParallel)' == ''">true</BuildInParallel> | |
<_ResolveReferenceDependencies Condition="'$(_ResolveReferenceDependencies)' == ''">false</_ResolveReferenceDependencies> | |
<_GetChildProjectCopyToOutputDirectoryItems Condition="'$(_GetChildProjectCopyToOutputDirectoryItems)' == ''">true</_GetChildProjectCopyToOutputDirectoryItems> | |
<OverwriteReadOnlyFiles Condition="'$(OverwriteReadOnlyFiles)' == ''">false</OverwriteReadOnlyFiles> | |
<ComReferenceNoClassMembers Condition="'$(ComReferenceNoClassMembers)' == ''">false</ComReferenceNoClassMembers> | |
</PropertyGroup> | |
<PropertyGroup Condition=" $(IntermediateOutputPath) == '' "> | |
<IntermediateOutputPath Condition=" '$(PlatformName)' == 'AnyCPU' ">$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath> | |
<IntermediateOutputPath Condition=" '$(PlatformName)' != 'AnyCPU' ">$(BaseIntermediateOutputPath)$(PlatformName)\$(Configuration)\</IntermediateOutputPath> | |
</PropertyGroup> | |
<PropertyGroup> | |
<IntermediateOutputPath Condition="!HasTrailingSlash('$(IntermediateOutputPath)')">$(IntermediateOutputPath)\</IntermediateOutputPath> | |
<_GenerateBindingRedirectsIntermediateAppConfig>$(IntermediateOutputPath)$(MSBuildProjectFile).$(TargetFileName).config</_GenerateBindingRedirectsIntermediateAppConfig> | |
</PropertyGroup> | |
<ItemGroup> | |
<IntermediateAssembly Include="$(IntermediateOutputPath)$(TargetName)$(TargetExt)" /> | |
<FinalDocFile Include="@(DocFileItem->'$(OutDir)%(Filename)%(Extension)')" /> | |
<CopyUpToDateMarker Include="$([MSBuild]::NormalizePath('$(MSBuildProjectDirectory)', '$(IntermediateOutputPath)', '$(MSBuildProjectFile).CopyComplete'))" /> | |
</ItemGroup> | |
<ItemGroup Condition="'$(ProduceReferenceAssembly)' == 'true'"> | |
<IntermediateRefAssembly Include="$(IntermediateOutputPath)ref\$(TargetName)$(TargetExt)" Condition="'@(IntermediateRefAssembly)' == ''" /> | |
<CreateDirectory Include="@(IntermediateRefAssembly->'%(RootDir)%(Directory)')" /> | |
<CreateDirectory Include="$(OutDir)ref" /> | |
</ItemGroup> | |
<ItemGroup Condition="'$(_DebugSymbolsProduced)' == 'true'"> | |
<_DebugSymbolsIntermediatePath Include="$(IntermediateOutputPath)$(TargetName).compile.pdb" Condition="'$(OutputType)' == 'winmdobj' and '@(_DebugSymbolsIntermediatePath)' == ''" /> | |
<_DebugSymbolsIntermediatePath Include="$(IntermediateOutputPath)$(TargetName)$(_DebugFileExt)" Condition="'$(OutputType)' != 'winmdobj' and '@(_DebugSymbolsIntermediatePath)' == '' and '$(_DebugFileExt)' == '.pdb'" /> | |
<!-- Mono's compilers use foo.dll.mdb as the debug filename for an assembly named foo.dll --> | |
<_DebugSymbolsIntermediatePath Include="$(IntermediateOutputPath)$(TargetName)$(TargetExt)$(_DebugFileExt)" Condition="'$(OutputType)' != 'winmdobj' and '@(_DebugSymbolsIntermediatePath)' == '' and '$(_DebugFileExt)' != '.pdb'" /> | |
<_DebugSymbolsOutputPath Include="@(_DebugSymbolsIntermediatePath->'$(OutDir)%(Filename)%(Extension)')" /> | |
</ItemGroup> | |
<PropertyGroup Condition="'$(_DebugSymbolsProduced)' == 'true' and '$(OutputType)' == 'winmdobj'"> | |
<WinMDExpOutputPdb Condition="'$(WinMDExpOutputPdb)' == ''">$(IntermediateOutputPath)$(TargetName).pdb</WinMDExpOutputPdb> | |
<_WinMDDebugSymbolsOutputPath>$([System.IO.Path]::Combine('$(OutDir)', $([System.IO.Path]::GetFileName('$(WinMDExpOutputPdb)'))))</_WinMDDebugSymbolsOutputPath> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(OutputType)' == 'winmdobj' and '$(DocumentationFile)'!=''"> | |
<WinMDOutputDocumentationFile Condition="'$(WinMDOutputDocumentationFile)' == ''">$(IntermediateOutputPath)$(TargetName).xml</WinMDOutputDocumentationFile> | |
<_WinMDDocFileOutputPath>$([System.IO.Path]::Combine('$(OutDir)', $([System.IO.Path]::GetFileName('$(WinMDOutputDocumentationFile)'))))</_WinMDDocFileOutputPath> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(WinMDExpOutputWindowsMetadataFilename)' != ''"> | |
<_IntermediateWindowsMetadataPath>$(IntermediateOutputPath)$(WinMDExpOutputWindowsMetadataFilename)</_IntermediateWindowsMetadataPath> | |
<_WindowsMetadataOutputPath>$(OutDir)$(WinMDExpOutputWindowsMetadataFilename)</_WindowsMetadataOutputPath> | |
</PropertyGroup> | |
<ItemGroup> | |
<!-- Create an item for entry point of the ClickOnce application (Example: WindowsApplication1.exe) --> | |
<_DeploymentManifestEntryPoint Include="@(IntermediateAssembly)"> | |
<TargetPath>$(TargetFileName)</TargetPath> | |
</_DeploymentManifestEntryPoint> | |
<!-- Create an item for the application icon if one exists in the project (Example: app.ico) --> | |
<!-- NOTE: The item Include and the Exists function are operating relative to the PROJECT (.csproj, .vbproj etc.) directory in this case --> | |
<_DeploymentManifestIconFile Include="$(ApplicationIcon)" Condition="Exists('$(ApplicationIcon)')"> | |
<TargetPath>$(ApplicationIcon)</TargetPath> | |
</_DeploymentManifestIconFile> | |
<!-- Create an item for the output application manifest (Example: WindowsApplication1.exe.manifeset) --> | |
<ApplicationManifest Include="$(IntermediateOutputPath)$(_DeploymentTargetApplicationManifestFileName)"> | |
<TargetPath>$(_DeploymentTargetApplicationManifestFileName)</TargetPath> | |
</ApplicationManifest> | |
<!-- Create an item for the final application manifest (Example: WindowsApplication1.exe.manifeset) | |
This item represents the final output application manifest used for project-to-project | |
references and for copying to the publish output location. --> | |
<_ApplicationManifestFinal Include="$(OutDir)$(_DeploymentTargetApplicationManifestFileName)"> | |
<TargetPath>$(_DeploymentTargetApplicationManifestFileName)</TargetPath> | |
</_ApplicationManifestFinal> | |
<!-- Create an item for the output deploy manifest (Example: WindowsApplication1.application) --> | |
<DeployManifest Include="$(IntermediateOutputPath)$(TargetDeployManifestFileName)"> | |
<TargetPath>$(TargetDeployManifestFileName)</TargetPath> | |
</DeployManifest> | |
<!-- Create an item for the intermediate trust info file --> | |
<_DeploymentIntermediateTrustInfoFile Include="$(IntermediateOutputPath)$(TargetName).TrustInfo.xml" Condition="'$(TargetZone)'!=''" /> | |
</ItemGroup> | |
<!-- | |
Determine the <deploymentProvider> (_DeploymentUrl) for the ClickOnce deployment manifest. | |
Prefer the UpdateUrl, falling back to InstallUrl or PublishUrl if not specified. | |
If the UpdateUrl is specified then _DeploymentUrl is always set to the UpdateUrl. | |
Otherwise, only set the _DeploymentUrl if it's an installed app and updates are enabled. | |
--> | |
<PropertyGroup> | |
<_DeploymentUrl Condition="'$(_DeploymentUrl)'==''">$(UpdateUrl)</_DeploymentUrl> | |
<_DeploymentUrl Condition="'$(_DeploymentUrl)'==''">$(InstallUrl)</_DeploymentUrl> | |
<_DeploymentUrl Condition="'$(_DeploymentUrl)'==''">$(PublishUrl)</_DeploymentUrl> | |
<_DeploymentUrl Condition="!('$(UpdateUrl)'=='') and '$(Install)'=='false'" /> | |
<_DeploymentUrl Condition="'$(_DeploymentUrl)'!=''">$(_DeploymentUrl)$(TargetDeployManifestFileName)</_DeploymentUrl> | |
<!-- | |
Need to explicitly blank out the _DeploymentUrl when it's not used. Otherwise an | |
inappropriate value may be used. For example a local path from the PublishUrl | |
is something we never want to see in the manifest because it means you could | |
only install the app from that machine. | |
--> | |
<_DeploymentUrl Condition="'$(UpdateUrl)'=='' and !('$(Install)'=='true' and '$(UpdateEnabled)'=='true')" /> | |
<_DeploymentUrl Condition="'$(ExcludeDeploymentUrl)'=='true'" /> | |
</PropertyGroup> | |
<!-- Determine the URLs for the bootstrapper. --> | |
<PropertyGroup> | |
<_DeploymentApplicationUrl Condition="'$(IsWebBootstrapper)'=='true'">$(InstallUrl)</_DeploymentApplicationUrl> | |
<_DeploymentApplicationUrl Condition="'$(IsWebBootstrapper)'=='true' and '$(InstallUrl)'==''">$(PublishUrl)</_DeploymentApplicationUrl> | |
<_DeploymentComponentsUrl Condition="'$(BootstrapperComponentsLocation)'=='Absolute'">$(BootstrapperComponentsUrl)</_DeploymentComponentsUrl> | |
</PropertyGroup> | |
<!-- Output location for publish target. --> | |
<PropertyGroup> | |
<PublishDir Condition="'$(PublishDir)' != '' and !HasTrailingSlash('$(PublishDir)')">$(PublishDir)\</PublishDir> | |
<PublishDir Condition="'$(PublishDir)'==''">$(OutputPath)app.publish\</PublishDir> | |
</PropertyGroup> | |
<!-- | |
ProcessorArchitecture is the target processor architecture. | |
--> | |
<PropertyGroup Condition="'$(ProcessorArchitecture)'==''"> | |
<!-- | |
If ProcessorArchitecture is not set, set it to PlatformTarget | |
Note: if $(PlatformTarget) is also blank resolve assembly reference defaults to msil which is the | |
desired behavior in this case | |
--> | |
<ProcessorArchitecture>$(PlatformTarget)</ProcessorArchitecture> | |
<!-- | |
If Processor architecture is not set and PlatformTarget is a known target translate the | |
PlatformTarget into something ResolveAssemblyReference knows about | |
--> | |
<ProcessorArchitecture Condition=" '$(PlatformTarget)' == 'AnyCpu' ">msil</ProcessorArchitecture> | |
<ProcessorArchitecture Condition=" '$(PlatformTarget)' == 'x64' ">amd64</ProcessorArchitecture> | |
<ProcessorArchitecture Condition=" '$(PlatformTarget)' == 'Itanium' ">ia64</ProcessorArchitecture> | |
<ProcessorArchitecture Condition=" '$(PlatformTarget)' == 'x86' ">x86</ProcessorArchitecture> | |
<ProcessorArchitecture Condition=" '$(PlatformTarget)' == 'ARM' ">arm</ProcessorArchitecture> | |
</PropertyGroup> | |
<PropertyGroup> | |
<ConsiderPlatformAsProcessorArchitecture Condition="'$(ConsiderPlatformAsProcessorArchitecture)' == ''">true</ConsiderPlatformAsProcessorArchitecture> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(ProcessorArchitecture)' == '' and '$(ConsiderPlatformAsProcessorArchitecture)' == 'true'"> | |
<!-- We need to do this here because if we were to just compare against platform visual would parse them out as available platforms which may not be the case --> | |
<ProcessorArchitectureAsPlatform>$(Platform)</ProcessorArchitectureAsPlatform> | |
<ProcessorArchitecture Condition=" '$(ProcessorArchitectureAsPlatform)' == 'AnyCpu' or '$(ProcessorArchitectureAsPlatform)' == 'Any Cpu'">msil</ProcessorArchitecture> | |
<ProcessorArchitecture Condition=" '$(ProcessorArchitectureAsPlatform)' == 'x64' or '$(ProcessorArchitectureAsPlatform)' == 'amd64'">amd64</ProcessorArchitecture> | |
<ProcessorArchitecture Condition=" '$(ProcessorArchitectureAsPlatform)' == 'Itanium' ">ia64</ProcessorArchitecture> | |
<ProcessorArchitecture Condition=" '$(ProcessorArchitectureAsPlatform)' == 'x86' or '$(ProcessorArchitectureAsPlatform)' == 'win32'">x86</ProcessorArchitecture> | |
<ProcessorArchitecture Condition=" '$(ProcessorArchitectureAsPlatform)' == 'ARM' ">arm</ProcessorArchitecture> | |
<!--For compatibility with the 4.0 behavior, if not set above, default to the environment. To override this, set ProcessorArchitecture explicitly. We also need to disable the warning since we do not know if what the environment is set to is correct--> | |
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch Condition="'$(ProcessorArchitecture)'==''">None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> | |
<ProcessorArchitecture Condition="'$(ProcessorArchitecture)'==''">$(PROCESSOR_ARCHITECTURE)</ProcessorArchitecture> | |
</PropertyGroup> | |
<!-- Sensible defaults for the most-commonly-desired MSBuildRuntime and MSBuildArchitecture values --> | |
<PropertyGroup Condition="'$(DisableOutOfProcTaskHost)' == ''"> | |
<TargetFrameworkAsMSBuildRuntime Condition="'$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.0' or '$(TargetFrameworkVersion)' == 'v3.5'">CLR2</TargetFrameworkAsMSBuildRuntime> | |
<TargetFrameworkAsMSBuildRuntime Condition="'$(TargetFrameworkVersion)' == 'v4.0' or '$(TargetFrameworkVersion)' == 'v4.5'">CLR4</TargetFrameworkAsMSBuildRuntime> | |
<TargetFrameworkAsMSBuildRuntime Condition="'$(TargetFrameworkAsMSBuildRuntime)' == ''">CurrentRuntime</TargetFrameworkAsMSBuildRuntime> | |
<PlatformTargetAsMSBuildArchitectureExplicitlySet Condition="'$(PlatformTargetAsMSBuildArchitecture)' != ''">true</PlatformTargetAsMSBuildArchitectureExplicitlySet> | |
<PlatformTargetAsMSBuildArchitectureExplicitlySet Condition="'$(PlatformTargetAsMSBuildArchitecture)' == ''">false</PlatformTargetAsMSBuildArchitectureExplicitlySet> | |
<PlatformTargetAsMSBuildArchitecture Condition="'$(PlatformTarget)' == 'x86' or ('$(PlatformTarget)' == 'x64' and '$(MSBuildExtensionsPath64)' != '')">$(PlatformTarget)</PlatformTargetAsMSBuildArchitecture> | |
<PlatformTargetAsMSBuildArchitecture Condition="'$(PlatformTarget)' == 'arm'">x86</PlatformTargetAsMSBuildArchitecture> | |
<PlatformTargetAsMSBuildArchitecture Condition="('$(PlatformTarget)' == 'ia64' and '$(MSBuildExtensionsPath64)' != '')">x64</PlatformTargetAsMSBuildArchitecture> | |
<PlatformTargetAsMSBuildArchitecture Condition="'$(PlatformTargetAsMSBuildArchitecture)' == ''">CurrentArchitecture</PlatformTargetAsMSBuildArchitecture> | |
</PropertyGroup> | |
<!-- Flavor is the project flavor. For example, Client, Smart Devices, SQL Server, etc. --> | |
<PropertyGroup> | |
<ProjectFlavor Condition="'$(ProjectFlavor)'==''">Client</ProjectFlavor> | |
</PropertyGroup> | |
<!-- | |
The default for compilers is to not delay-sign. If $(DelaySign) is false, let the compiler | |
use its default rather than forcing a no-delay-sign flag to be passed in. This is so that | |
attributes in the source code can override this decision. | |
--> | |
<PropertyGroup> | |
<DelaySign Condition="'$(SignAssembly)' != 'true'">false</DelaySign> | |
<DelaySign Condition="'$(DelaySign)'!='true'" /> | |
</PropertyGroup> | |
<!-- These properties control web reference proxy generation. --> | |
<PropertyGroup> | |
<WebReference_EnableProperties Condition=" '$(WebReference_EnableProperties)' == '' ">true</WebReference_EnableProperties> | |
<WebReference_EnableSQLTypes Condition=" '$(WebReference_EnableSQLTypes)' == '' ">true</WebReference_EnableSQLTypes> | |
<WebReference_EnableLegacyEventingModel Condition=" '$(WebReference_EnableLegacyEventingModel)' == '' ">false</WebReference_EnableLegacyEventingModel> | |
</PropertyGroup> | |
<PropertyGroup> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildProjectFullPath);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
<MSBuildAllProjects Condition="Exists('$(MSBuildProjectFullPath).user')">$(MSBuildAllProjects);$(MSBuildProjectFullPath).user</MSBuildAllProjects> | |
</PropertyGroup> | |
<!-- | |
These parameters control where to look in the registry for directories to search for | |
assemblies in the assembly resolution tasks. | |
--> | |
<PropertyGroup> | |
<AssemblyFoldersSuffix Condition=" '$(AssemblyFoldersSuffix)' == '' ">AssemblyFoldersEx</AssemblyFoldersSuffix> | |
<FrameworkRegistryBase Condition=" '$(FrameworkRegistryBase)' == '' ">Software\Microsoft\$(TargetFrameworkIdentifier)</FrameworkRegistryBase> | |
<TargetPlatformRegistryBase Condition="'$(TargetPlatformRegistryBase)' == ''">Software\Microsoft\Microsoft SDKs\$(TargetPlatformIdentifier)</TargetPlatformRegistryBase> | |
<AssemblyFoldersConfigFile Condition="'$(AssemblyFoldersConfigFile)' == ''">$(MSBuildToolsPath32)\AssemblyFolders.config</AssemblyFoldersConfigFile> | |
<AssemblyFoldersConfigFileSearchPath Condition="Exists('$(AssemblyFoldersConfigFile)')">{AssemblyFoldersFromConfig:$(AssemblyFoldersConfigFile),$(TargetFrameworkVersion)};</AssemblyFoldersConfigFileSearchPath> | |
<!-- | |
The SearchPaths property is set to find assemblies in the following order: | |
(1) Files from current project - indicated by {CandidateAssemblyFiles} | |
(2) $(ReferencePath) - the reference path property, which comes from the .USER file. | |
(3) The hintpath from the referenced item itself, indicated by {HintPathFromItem}. | |
(4) The directory of MSBuild's "target" runtime from GetFrameworkPath. | |
The "target" runtime folder is the folder of the runtime that MSBuild is a part of. | |
(5) Registered assembly folders, indicated by {Registry:*,*,*} | |
(6) Assembly folders from AssemblyFolders.config file (provided by Visual Studio Dev15+). | |
(7) Legacy registered assembly folders, indicated by {AssemblyFolders} | |
(8) Resolve to the GAC. | |
(9) Treat the reference's Include as if it were a real file name. | |
(10) Look in the application's output folder (like bin\debug) | |
--> | |
<AssemblySearchPaths Condition=" '$(AssemblySearchPaths)' == ''"> | |
{CandidateAssemblyFiles}; | |
$(ReferencePath); | |
{HintPathFromItem}; | |
{TargetFrameworkDirectory}; | |
$(AssemblyFoldersConfigFileSearchPath) | |
{Registry:$(FrameworkRegistryBase),$(TargetFrameworkVersion),$(AssemblyFoldersSuffix)$(AssemblyFoldersExConditions)}; | |
{AssemblyFolders}; | |
{GAC}; | |
{RawFileName}; | |
$(OutDir) | |
</AssemblySearchPaths> | |
<!-- | |
These are the extensions that assembly reference resolution will consider for resolution. | |
Add new extensions here if you want to add new file types to consider (for example, .metadata_dll). | |
Put the most likely extensions first for reference resolution speed. | |
--> | |
<AllowedReferenceAssemblyFileExtensions Condition=" '$(AllowedReferenceAssemblyFileExtensions)' == '' "> | |
.winmd; | |
.dll; | |
.exe | |
</AllowedReferenceAssemblyFileExtensions> | |
<!-- | |
These are the extensions that reference resolution will consider when looking for debug files related | |
to resolved references, default is .pdb | |
--> | |
<AllowedReferenceRelatedDebugFileExtensions Condition="'$(AllowedReferenceRelatedDebugFileExtensions)' == ''"> | |
.pdb; | |
</AllowedReferenceRelatedDebugFileExtensions> | |
<!-- | |
These are the extensions that reference resolution will consider when looking for files related | |
to resolved references. Add new extensions here if you want to add new file types to consider. | |
--> | |
<AllowedReferenceRelatedFileExtensions Condition=" '$(AllowedReferenceRelatedFileExtensions)' == '' "> | |
$(AllowedReferenceRelatedDebugFileExtensions); | |
.xml; | |
.pri; | |
.dll.config; | |
.exe.config | |
</AllowedReferenceRelatedFileExtensions> | |
<!-- | |
These names are used when determining which TargetFramework subset to use. If the any of the FullReferenceAssemblyNames | |
are seen in the list of client subsets, RAR will assume that no client subset is being used. The list is semicolon seperated | |
For example : Full;Complete;AllThere | |
--> | |
<FullReferenceAssemblyNames Condition="'$(FullReferenceAssemblyNames)' == ''">Full</FullReferenceAssemblyNames> | |
</PropertyGroup> | |
<!-- ContinueOnError takes 3 values: WarnAndContinue (true), ErrorAndStop (false), and ErrorAndContinue. | |
Default to ErrorAndStop, since that matches the behaviour in previous versions, and what users | |
typically expect --> | |
<PropertyGroup> | |
<ContinueOnError Condition="'$(ContinueOnError)' == ''">false</ContinueOnError> | |
</PropertyGroup> | |
<!-- Common Project System support --> | |
<PropertyGroup> | |
<CommonXamlResourcesDirectory Condition=" '$(CommonXamlResourcesDirectory)' == '' ">$(MSBuildThisFileDirectory)$(LangName)\</CommonXamlResourcesDirectory> | |
</PropertyGroup> | |
<!-- We need to fallback to en-US in case the xaml rules are not localized (possibly happen on community languages). --> | |
<PropertyGroup Condition="!Exists('$(CommonXamlResourcesDirectory)')"> | |
<CommonXamlResourcesDirectory>$(MSBuildThisFileDirectory)en-US\</CommonXamlResourcesDirectory> | |
</PropertyGroup> | |
<ItemGroup Condition=" '$(DefineCommonItemSchemas)' == 'true' "> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)ProjectItemsSchema.xaml" /> | |
<PropertyPageSchema Include="
 $(CommonXamlResourcesDirectory)General.xaml;
 $(CommonXamlResourcesDirectory)Debugger_General.xaml"> | |
<Context>Project</Context> | |
</PropertyPageSchema> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)General.BrowseObject.xaml"> | |
<Context>BrowseObject</Context> | |
</PropertyPageSchema> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)General_File.xaml"> | |
<Context>File</Context> | |
</PropertyPageSchema> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)SCC.xaml"> | |
<Context>Invisible</Context> | |
</PropertyPageSchema> | |
<PropertyPageSchema Include="
 $(CommonXamlResourcesDirectory)Folder.xaml;
 $(CommonXamlResourcesDirectory)None.xaml;
 $(CommonXamlResourcesDirectory)Content.xaml;
 $(CommonXamlResourcesDirectory)EmbeddedResource.xaml;
 "> | |
<Context>File;BrowseObject</Context> | |
</PropertyPageSchema> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)SpecialFolder.xaml;"> | |
<Context>File;ProjectSubscriptionService</Context> | |
</PropertyPageSchema> | |
</ItemGroup> | |
<PropertyGroup> | |
<DefineCommonReferenceSchemas Condition=" '$(DefineCommonReferenceSchemas)' == '' ">$(DefineCommonItemSchemas)</DefineCommonReferenceSchemas> | |
</PropertyGroup> | |
<ItemGroup Condition=" '$(DefineCommonReferenceSchemas)' == 'true' "> | |
<!-- Assembly references --> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)assemblyreference.xaml"> | |
<Context>;BrowseObject</Context> | |
</PropertyPageSchema> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)ResolvedAssemblyReference.xaml"> | |
<Context>ProjectSubscriptionService;BrowseObject</Context> | |
</PropertyPageSchema> | |
<!-- COM references --> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)COMReference.xaml"> | |
<Context>;BrowseObject</Context> | |
</PropertyPageSchema> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)ResolvedCOMReference.xaml"> | |
<Context>ProjectSubscriptionService;BrowseObject</Context> | |
</PropertyPageSchema> | |
<!-- Project references --> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)ProjectReference.xaml"> | |
<Context>;BrowseObject</Context> | |
</PropertyPageSchema> | |
<PropertyPageSchema Include="$(CommonXamlResourcesDirectory)ResolvedProjectReference.xaml"> | |
<Context>ProjectSubscriptionService;BrowseObject</Context> | |
</PropertyPageSchema> | |
</ItemGroup> | |
<ItemGroup Condition=" '$(DefineCommonCapabilities)' == 'true' "> | |
<ProjectCapability Include="
 AssemblyReferences;
 COMReferences;
 ProjectReferences;
 SharedProjectReferences;
 OutputGroups;
 AllTargetOutputGroups;
 VisualStudioWellKnownOutputGroups;
 SingleFileGenerators;
 DeclaredSourceItems;
 UserSourceItems;
 " /> | |
<ProjectCapability Condition=" '$(TargetPlatformIdentifier)' == 'Windows' and '$(TargetPlatformVersion)' < 8.0 " Include="BuildWindowsDesktopTarget" /> | |
</ItemGroup> | |
<ItemDefinitionGroup Condition=" '$(DefineExplicitDefaults)' == 'true' "> | |
<None> | |
<CopyToOutputDirectory>Never</CopyToOutputDirectory> | |
</None> | |
<Content> | |
<CopyToOutputDirectory>Never</CopyToOutputDirectory> | |
</Content> | |
<Compile> | |
<CopyToOutputDirectory>Never</CopyToOutputDirectory> | |
</Compile> | |
<EmbeddedResource> | |
<CopyToOutputDirectory>Never</CopyToOutputDirectory> | |
</EmbeddedResource> | |
</ItemDefinitionGroup> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
Build Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
_CheckForInvalidConfigurationAndPlatform | |
This target checks for errors in statically defined properties. By setting BeforeTargets, we try | |
to ensure that the target runs before any build related targets. | |
If your target requires this check and is running as a BeforeTargets of one of the first targets | |
of $(BuildDependsOn), $(RebuildDependsOn), or $(CleanDependsOn) you will need to set your DependsOn | |
to this target. | |
============================================================ | |
--> | |
<Target Name="_CheckForInvalidConfigurationAndPlatform" BeforeTargets="$(BuildDependsOn);Build;$(RebuildDependsOn);Rebuild;$(CleanDependsOn);Clean"> | |
<PropertyGroup> | |
<_InvalidConfigurationMessageText>The OutputPath property is not set for project '$(MSBuildProjectFile)'. Please check to make sure that you have specified a valid combination of Configuration and Platform for this project. Configuration='$(_OriginalConfiguration)' Platform='$(_OriginalPlatform)'.</_InvalidConfigurationMessageText> | |
<_InvalidConfigurationMessageText Condition="'$(BuildingInsideVisualStudio)' == 'true'">$(_InvalidConfigurationMessageText) This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform.</_InvalidConfigurationMessageText> | |
<_InvalidConfigurationMessageText Condition="'$(BuildingInsideVisualStudio)' != 'true'">$(_InvalidConfigurationMessageText) You may be seeing this message because you are trying to build a project without a solution file, and have specified a non-default Configuration or Platform that doesn't exist for this project.</_InvalidConfigurationMessageText> | |
</PropertyGroup> | |
<Error Condition=" '$(_InvalidConfigurationError)' == 'true' " Text="$(_InvalidConfigurationMessageText)" /> | |
<Warning Condition=" '$(_InvalidConfigurationWarning)' == 'true' " Text="$(_InvalidConfigurationMessageText)" /> | |
<Message Condition="'$(DesignTimeBuild)' != 'true'" Text="Configuration=$(Configuration)" Importance="Low" /> | |
<Message Condition="'$(DesignTimeBuild)' != 'true'" Text="Platform=$(Platform)" Importance="Low" /> | |
<!-- Although we try to ensure a trailing slash, it's possible to circumvent this if the property is set on the command line --> | |
<Error Condition="'$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')" Text="The OutDir property must end with a trailing slash." /> | |
<Error Condition="'$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')" Text="The BaseIntermediateOutputPath must end with a trailing slash." /> | |
<Error Condition="'$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')" Text="The IntermediateOutputPath must end with a trailing slash." /> | |
<!-- Also update the value of PlatformTargetAsMSBuildArchitecture per the value of Prefer32Bit. We are doing | |
this here because Prefer32Bit may be set anywhere in the targets, so we can't depend on it having the | |
correct value when we're trying to figure out PlatformTargetAsMSBuildArchitecture --> | |
<PropertyGroup Condition="'$(Prefer32Bit)' == 'true' and ('$(PlatformTarget)' == 'AnyCPU' or '$(PlatformTarget)' == '') and '$(PlatformTargetAsMSBuildArchitectureExplicitlySet)' != 'true'"> | |
<PlatformTargetAsMSBuildArchitecture>x86</PlatformTargetAsMSBuildArchitecture> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
Build | |
The main build entry point. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<BuildDependsOn> | |
BeforeBuild; | |
CoreBuild; | |
AfterBuild | |
</BuildDependsOn> | |
</PropertyGroup> | |
<Target Name="Build" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(BuildDependsOn)" Returns="@(TargetPathWithTargetPlatformMoniker)" /> | |
<!-- | |
============================================================ | |
BeforeBuild | |
Redefine this target in your project in order to run tasks just before Build | |
============================================================ | |
--> | |
<Target Name="BeforeBuild" /> | |
<!-- | |
============================================================ | |
AfterBuild | |
Redefine this target in your project in order to run tasks just after Build | |
============================================================ | |
--> | |
<Target Name="AfterBuild" /> | |
<!-- | |
============================================================ | |
CoreBuild | |
The core build step calls each of the build targets. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<CoreBuildDependsOn> | |
BuildOnlySettings; | |
PrepareForBuild; | |
PreBuildEvent; | |
ResolveReferences; | |
PrepareResources; | |
ResolveKeySource; | |
Compile; | |
ExportWindowsMDFile; | |
UnmanagedUnregistration; | |
GenerateSerializationAssemblies; | |
CreateSatelliteAssemblies; | |
GenerateManifests; | |
GetTargetPath; | |
PrepareForRun; | |
UnmanagedRegistration; | |
IncrementalClean; | |
PostBuildEvent | |
</CoreBuildDependsOn> | |
</PropertyGroup> | |
<Target Name="CoreBuild" DependsOnTargets="$(CoreBuildDependsOn)"> | |
<OnError ExecuteTargets="_TimeStampAfterCompile;PostBuildEvent" Condition="'$(RunPostBuildEvent)'=='Always' or '$(RunPostBuildEvent)'=='OnOutputUpdated'" /> | |
<OnError ExecuteTargets="_CleanRecordFileWrites" /> | |
</Target> | |
<!-- | |
============================================================ | |
Rebuild | |
Delete all intermediate and final build outputs, and then build the project from scratch. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<_ProjectDefaultTargets Condition="'$(MSBuildProjectDefaultTargets)' != ''">$(MSBuildProjectDefaultTargets)</_ProjectDefaultTargets> | |
<_ProjectDefaultTargets Condition="'$(MSBuildProjectDefaultTargets)' == ''">Build</_ProjectDefaultTargets> | |
<RebuildDependsOn> | |
BeforeRebuild; | |
Clean; | |
$(_ProjectDefaultTargets); | |
AfterRebuild; | |
</RebuildDependsOn> | |
<RebuildDependsOn Condition=" '$(MSBuildProjectDefaultTargets)' == 'Rebuild' "> | |
BeforeRebuild; | |
Clean; | |
Build; | |
AfterRebuild; | |
</RebuildDependsOn> | |
</PropertyGroup> | |
<Target Name="Rebuild" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(RebuildDependsOn)" Returns="$(TargetPath)" /> | |
<!-- | |
============================================================ | |
BeforeRebuild | |
Redefine this target in your project in order to run tasks just before Rebuild | |
============================================================ | |
--> | |
<Target Name="BeforeRebuild" /> | |
<!-- | |
============================================================ | |
AfterRebuild | |
Redefine this target in your project in order to run tasks just after Rebuild | |
============================================================ | |
--> | |
<Target Name="AfterRebuild" /> | |
<!-- | |
============================================================ | |
BuildGenerateSources | |
Redefine this target in your project in order to run tasks for BuildGenerateSources | |
Set BuildPassReferences to enable P2P builds | |
============================================================ | |
--> | |
<PropertyGroup> | |
<BuildGenerateSourcesAction>Build</BuildGenerateSourcesAction> | |
</PropertyGroup> | |
<Target Name="BuildGenerateSources" DependsOnTargets="BuildGenerateSourcesTraverse;$(BuildGenerateSourcesAction)" /> | |
<Target Name="BuildGenerateSourcesTraverse" DependsOnTargets="PrepareProjectReferences"> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="BuildGenerateSources" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework);" Condition="'$(BuildPassReferences)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceExistent)' != '' and '%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true'" ContinueOnError="!$(BuildingProject)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)" /> | |
</Target> | |
<!-- | |
============================================================ | |
BuildCompile | |
Redefine this target in your project in order to run tasks for BuildCompile | |
============================================================ | |
--> | |
<PropertyGroup> | |
<BuildCompileAction>Build</BuildCompileAction> | |
</PropertyGroup> | |
<Target Name="BuildCompile" DependsOnTargets="BuildCompileTraverse;$(BuildCompileAction)" /> | |
<Target Name="BuildCompileTraverse" DependsOnTargets="PrepareProjectReferences"> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="BuildCompile" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" Condition="'$(BuildPassReferences)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceExistent)' != '' and '%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true'" ContinueOnError="!$(BuildingProject)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)" /> | |
</Target> | |
<!-- | |
============================================================ | |
BuildLink | |
Redefine this target in your project in order to run tasks for BuildLink | |
============================================================ | |
--> | |
<PropertyGroup> | |
<BuildLinkAction>Build</BuildLinkAction> | |
</PropertyGroup> | |
<Target Name="BuildLink" DependsOnTargets="BuildLinkTraverse;$(BuildLinkAction)" /> | |
<Target Name="BuildLinkTraverse" DependsOnTargets="PrepareProjectReferences"> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="BuildLink" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" Condition="'$(BuildPassReferences)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceExistent)' != '' and '%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true'" ContinueOnError="!$(BuildingProject)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)" /> | |
</Target> | |
<!-- | |
============================================================ | |
CopyRunEnvironmentFiles | |
Copy environment files necessary to run the user's app to the final directory. | |
This is a public target that can be invoked by an IDE. | |
This may be used by an IDE to make the app.config file available for running | |
the target app. | |
============================================================ | |
--> | |
<Target Name="CopyRunEnvironmentFiles" DependsOnTargets="PrepareForBuild;SetWin32ManifestProperties;_CopyAppConfigFile;_CleanRecordFileWrites" /> | |
<!-- | |
============================================================ | |
Run | |
Run the final build output if it is a .EXE | |
============================================================ | |
--> | |
<PropertyGroup> | |
<RunDependsOn /> | |
</PropertyGroup> | |
<Target Name="Run" DependsOnTargets="$(RunDependsOn)"> | |
<Error Text="Cannot run '$(TargetPath)' because project output type is not '.exe'" Condition="'$(TargetExt)'!='.exe'" /> | |
<Exec Command="$(TargetPath) $(StartArguments)" WorkingDirectory="$(OutDir)" Condition=" '$(StartWorkingDirectory)' == '' " /> | |
<Exec Command="$(TargetPath) $(StartArguments)" WorkingDirectory="$(StartWorkingDirectory)" Condition=" '$(StartWorkingDirectory)' != '' " /> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
BuildOnlySettings Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
BuildOnlySettings | |
This target is called only when doing a real build. It is specifically not called during project load. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<BuildingProject>false</BuildingProject> | |
</PropertyGroup> | |
<Target Name="BuildOnlySettings"> | |
<PropertyGroup> | |
<BuildingProject>true</BuildingProject> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
PrepareForBuild Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
PrepareForBuild | |
Prepare the prerequisites for building. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PrepareForBuildDependsOn>GetFrameworkPaths;GetReferenceAssemblyPaths;AssignLinkMetadata</PrepareForBuildDependsOn> | |
</PropertyGroup> | |
<Target Name="PrepareForBuild" DependsOnTargets="$(PrepareForBuildDependsOn)"> | |
<ItemGroup> | |
<AppConfigWithTargetPath Include="$(AppConfig)" Condition="'$(AppConfig)'!=''"> | |
<TargetPath>$(TargetFileName).config</TargetPath> | |
</AppConfigWithTargetPath> | |
</ItemGroup> | |
<FindAppConfigFile PrimaryList="@(None)" SecondaryList="@(Content)" TargetPath="$(TargetFileName).config" Condition="'$(AppConfig)'==''"> | |
<Output TaskParameter="AppConfigFile" ItemName="AppConfigWithTargetPath" /> | |
<Output TaskParameter="AppConfigFile" PropertyName="AppConfig" /> | |
</FindAppConfigFile> | |
<!-- Create the directories for intermediate and final build products, and any other arbitrary directories. --> | |
<!-- We are going to continue on error here so that if the tree is read only we will still get intellisense --> | |
<MakeDir Directories="$(OutDir);$(IntermediateOutputPath);@(DocFileItem->'%(RelativeDir)');@(CreateDirectory)" ContinueOnError="True" /> | |
</Target> | |
<!-- | |
============================================================ | |
GetFrameworkPaths | |
Get the paths for the .NET Framework installation directory | |
These paths are not used directly by this .targets file but are available for pre and | |
post build steps. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<Framework40Dir>@(_TargetFramework40DirectoryItem)</Framework40Dir> | |
<Framework35Dir>@(_TargetFramework35DirectoryItem)</Framework35Dir> | |
<Framework30Dir>@(_TargetFramework30DirectoryItem)</Framework30Dir> | |
<Framework20Dir>@(_TargetFramework20DirectoryItem)</Framework20Dir> | |
<!-- Note we need to make the 4.0 FrameworkDir point to the 2.0 location by default since we shipped msbuild 4.0 that way and to change it would be a breaking change.--> | |
<FrameworkDir Condition="'$(FrameworkDir)' == '' and ('$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.5' or '$(TargetFrameworkVersion)' == 'v4.0')">@(_TargetFramework20DirectoryItem)</FrameworkDir> | |
<FrameworkDir Condition="'$(FrameworkDir)' == ''">@(_TargetFramework40DirectoryItem)</FrameworkDir> | |
<TargetedFrameworkDir Condition="'$(TargetedFrameworkDir)' == ''">@(_TargetedFrameworkDirectoryItem)</TargetedFrameworkDir> | |
<FrameworkSDKDir Condition="'$(FrameworkSDKDir)' == ''">@(_TargetFrameworkSDKDirectoryItem)</FrameworkSDKDir> | |
<GetFrameworkPathsDependsOn /> | |
</PropertyGroup> | |
<!-- This is a generally overriden target, for example it is overriden in the Microsoft.NETFramework.targets file --> | |
<Target Name="GetFrameworkPaths" /> | |
<!-- | |
============================================================ | |
GetReferenceAssemblyPaths | |
Get the paths for the Reference Assemblies for the known versions of the | |
.NET Framework. | |
These paths are used by the build process in order to resolve the correct | |
assemblies from the various directories, and to support multi-targeting | |
============================================================ | |
--> | |
<Target Name="GetReferenceAssemblyPaths" DependsOnTargets="$(GetReferenceAssemblyPathsDependsOn)"> | |
<!-- if TargetFrameworkDirectory doesn't have a custom value, clear it out; that way we can get reference paths and target framework directories all in the right order --> | |
<PropertyGroup> | |
<TargetFrameworkDirectory Condition="'@(_CombinedTargetFrameworkDirectoriesItem)' == '$(TargetFrameworkDirectory)'" /> | |
</PropertyGroup> | |
<!-- By default if there is no root path set then the task will assume it is Program Files\Reference Assemblies\Microsoft\Framework--> | |
<GetReferenceAssemblyPaths Condition="'$(TargetFrameworkMoniker)' != '' and ('$(_TargetFrameworkDirectories)' == '' or '$(_FullFrameworkReferenceAssemblyPaths)' == '')" TargetFrameworkMoniker="$(TargetFrameworkMoniker)" RootPath="$(TargetFrameworkRootPath)" BypassFrameworkInstallChecks="$(BypassFrameworkInstallChecks)"> | |
<Output TaskParameter="ReferenceAssemblyPaths" PropertyName="_TargetFrameworkDirectories" /> | |
<Output TaskParameter="FullFrameworkReferenceAssemblyPaths" PropertyName="_FullFrameworkReferenceAssemblyPaths" /> | |
<Output TaskParameter="TargetFrameworkMonikerDisplayName" PropertyName="TargetFrameworkMonikerDisplayName" Condition="'$(TargetFrameworkMonikerDisplayName)' == ''" /> | |
</GetReferenceAssemblyPaths> | |
<PropertyGroup> | |
<TargetFrameworkDirectory>$(_TargetFrameworkDirectories);$(TargetFrameworkDirectory);$(WinFXAssemblyDirectory)</TargetFrameworkDirectory> | |
<TargetFrameworkDirectory Condition="'$(TargetPlatformWinMDLocation)' != '' and Exists('$(TargetPlatformWinMDLocation)')">$(TargetFrameworkDirectory);$(TargetPlatformWinMDLocation)</TargetFrameworkDirectory> | |
</PropertyGroup> | |
<!-- Remove the AssemblyFolders if no target framework directories could be found. This is to prevent us from | |
resolving from the assemblyfolders global location if we are not acutally targeting a framework--> | |
<PropertyGroup> | |
<RemoveAssemblyFoldersIfNoTargetFramework Condition="'$(RemoveAssemblyFoldersIfNoTargetFramework)' == ''">true</RemoveAssemblyFoldersIfNoTargetFramework> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(_TargetFrameworkDirectories)' == '' and '$(AssemblySearchPaths)' != '' and '$(RemoveAssemblyFoldersIfNoTargetFramework)' == 'true'"> | |
<AssemblySearchPaths>$(AssemblySearchPaths.Replace('{AssemblyFolders}', '').Split(';'))</AssemblySearchPaths> | |
</PropertyGroup> | |
<ItemGroup Condition="'$(ImplicitlyExpandDesignTimeFacades)' == 'true'"> | |
<DesignTimeFacadeDirectoryRoots Include="$(TargetFrameworkDirectory)" /> | |
<DesignTimeFacadeDirectories Include="%(DesignTimeFacadeDirectoryRoots.Identity)Facades\" Condition="Exists('%(DesignTimeFacadeDirectoryRoots.Identity)Facades\')" /> | |
</ItemGroup> | |
<PropertyGroup Condition="'@(DesignTimeFacadeDirectories)' != ''"> | |
<TargetFrameworkDirectory>$(TargetFrameworkDirectory);@(DesignTimeFacadeDirectories)</TargetFrameworkDirectory> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(_TargetFrameworkDirectories)' == ''"> | |
<TargetFrameworkProfile /> | |
</PropertyGroup> | |
</Target> | |
<!-- Returns target framework moniker. E.g. ".NETFramework,Version=v4.0.1" --> | |
<Target Name="GetTargetFrameworkMoniker" Returns="$(TargetFrameworkMoniker)" /> | |
<!-- Returns target framework moniker display name. E.g. ".NET Framework 4 Platform Update 1 (KB2478063)" --> | |
<Target Name="GetTargetFrameworkMonikerDisplayName" DependsOnTargets="GetFrameworkPaths;GetReferenceAssemblyPaths" Returns="$(TargetFrameworkMonikerDisplayName)" /> | |
<!-- Returns semicolon separated list of target framework directories. | |
E.g "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0.1\;C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\" --> | |
<Target Name="GetTargetFrameworkDirectories" DependsOnTargets="GetFrameworkPaths;GetReferenceAssemblyPaths" Returns="$(TargetFrameworkDirectory)" /> | |
<!-- | |
============================================================ | |
AssignLinkMetadata | |
For items of a certain set of whitelisted types, make sure that | |
if they are defined in a file other than the project file, that | |
they have "Link" metadata set to an appropriate default. | |
============================================================ | |
--> | |
<Target Name="AssignLinkMetadata" Condition=" '$(SynthesizeLinkMetadata)' == 'true' "> | |
<!-- NONE ITEMS --> | |
<AssignLinkMetadata Items="@(None)" Condition="'@(None)' != '' and '%(None.DefiningProjectFullPath)' != '$(MSBuildProjectFullPath)'"> | |
<Output TaskParameter="OutputItems" ItemName="_Temp" /> | |
</AssignLinkMetadata> | |
<ItemGroup> | |
<None Remove="@(_Temp)" /> | |
<None Include="@(_Temp)" /> | |
<_Temp Remove="@(_Temp)" /> | |
</ItemGroup> | |
<!-- CONTENT ITEMS --> | |
<AssignLinkMetadata Items="@(Content)" Condition="'@(Content)' != '' and '%(Content.DefiningProjectFullPath)' != '$(MSBuildProjectFullPath)'"> | |
<Output TaskParameter="OutputItems" ItemName="_Temp" /> | |
</AssignLinkMetadata> | |
<ItemGroup> | |
<Content Remove="@(_Temp)" /> | |
<Content Include="@(_Temp)" /> | |
<_Temp Remove="@(_Temp)" /> | |
</ItemGroup> | |
<!-- PAGE ITEMS --> | |
<AssignLinkMetadata Items="@(Page)" Condition="'@(Page)' != '' and '%(Page.DefiningProjectFullPath)' != '$(MSBuildProjectFullPath)'"> | |
<Output TaskParameter="OutputItems" ItemName="_Temp" /> | |
</AssignLinkMetadata> | |
<ItemGroup> | |
<Page Remove="@(_Temp)" /> | |
<Page Include="@(_Temp)" /> | |
<_Temp Remove="@(_Temp)" /> | |
</ItemGroup> | |
<!-- APPLICATIONDEFINITION ITEMS --> | |
<AssignLinkMetadata Items="@(ApplicationDefinition)" Condition="'@(ApplicationDefinition)' != '' and '%(ApplicationDefinition.DefiningProjectFullPath)' != '$(MSBuildProjectFullPath)'"> | |
<Output TaskParameter="OutputItems" ItemName="_Temp" /> | |
</AssignLinkMetadata> | |
<ItemGroup> | |
<ApplicationDefinition Remove="@(_Temp)" /> | |
<ApplicationDefinition Include="@(_Temp)" /> | |
<_Temp Remove="@(_Temp)" /> | |
</ItemGroup> | |
<!-- EMBEDDEDRESOURCE ITEMS --> | |
<AssignLinkMetadata Items="@(EmbeddedResource)" Condition="'@(EmbeddedResource)' != '' and '%(EmbeddedResource.DefiningProjectFullPath)' != '$(MSBuildProjectFullPath)'"> | |
<Output TaskParameter="OutputItems" ItemName="_Temp" /> | |
</AssignLinkMetadata> | |
<ItemGroup> | |
<EmbeddedResource Remove="@(_Temp)" /> | |
<EmbeddedResource Include="@(_Temp)" /> | |
<_Temp Remove="@(_Temp)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
PreBuildEvent Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
PreBuildEvent | |
Run the pre-build event if there is one. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PreBuildEventDependsOn /> | |
</PropertyGroup> | |
<Target Name="PreBuildEvent" Condition="'$(PreBuildEvent)'!=''" DependsOnTargets="$(PreBuildEventDependsOn)"> | |
<Exec WorkingDirectory="$(OutDir)" Command="$(PreBuildEvent)" /> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
UnmanagedUnregistration Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
UnmanagedUnregistration | |
If the main assembly had previously been registered for COM interop, unregister it now. | |
We will re-register the new version after it has been built. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<UnmanagedUnregistrationDependsOn /> | |
</PropertyGroup> | |
<Target Name="UnmanagedUnregistration" Condition="(('$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)' or '$(RegisterForComInterop)' != 'true' or '$(OutputType)' != 'library') or
 ('$(_AssemblyTimestampBeforeCompile)' == '')) and
 Exists('@(_UnmanagedRegistrationCache)')" DependsOnTargets="$(UnmanagedUnregistrationDependsOn)"> | |
<PropertyGroup> | |
<UnregisterAssemblyMSBuildArchitecture Condition="'$(UnregisterAssemblyMSBuildArchitecture)' == ''">$(PlatformTargetAsMSBuildArchitecture)</UnregisterAssemblyMSBuildArchitecture> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetFrameworkAsMSBuildRuntime)' != '' and '$(UnregisterAssemblyMSBuildArchitecture)' != ''"> | |
<!-- Falling back to the current runtime if we are targeting CLR2 and the task host doesn't exist will lead to | |
incorrect behavior in some cases, but it's the same incorrect behavior as Visual Studio 2010, and thus better | |
than causing build breaks on upgrade to Win8 the way not doing so would. For more details, see the | |
corresponding comment in GenerateResource. --> | |
<UnregisterAssemblyMSBuildRuntime Condition="'$(UnregisterAssemblyMSBuildRuntime)' == '' and
 $([MSBuild]::DoesTaskHostExist(`$(TargetFrameworkAsMSBuildRuntime)`, `$(UnregisterAssemblyMSBuildArchitecture)`))">$(TargetFrameworkAsMSBuildRuntime)</UnregisterAssemblyMSBuildRuntime> | |
<!-- If the targeted runtime doesn't exist, fall back to current --> | |
<UnregisterAssemblyMSBuildRuntime Condition="'$(UnregisterAssemblyMSBuildRuntime)' == ''">CurrentRuntime</UnregisterAssemblyMSBuildRuntime> | |
</PropertyGroup> | |
<UnregisterAssembly AssemblyListFile="@(_UnmanagedRegistrationCache)" MSBuildArchitecture="$(UnregisterAssemblyMSBuildArchitecture)" MSBuildRuntime="$(UnregisterAssemblyMSBuildRuntime)" /> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
ResolveReferences Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
GetTargetFrameworkVersion | |
This stand-alone target returns the target framework version (i.e. v3.5, v4.0, etc.) | |
that would be used if we built this project. | |
============================================================ | |
--> | |
<Target Name="GetTargetFrameworkVersion" Returns="$(TargetFrameworkVersion)" /> | |
<!-- | |
============================================================ | |
ResolveReferences | |
============================================================ | |
--> | |
<PropertyGroup> | |
<ResolveReferencesDependsOn> | |
BeforeResolveReferences; | |
AssignProjectConfiguration; | |
ResolveProjectReferences; | |
FindInvalidProjectReferences; | |
ResolveNativeReferences; | |
ResolveAssemblyReferences; | |
GenerateBindingRedirects; | |
ResolveComReferences; | |
AfterResolveReferences | |
</ResolveReferencesDependsOn> | |
</PropertyGroup> | |
<Target Name="ResolveReferences" DependsOnTargets="$(ResolveReferencesDependsOn)" /> | |
<!-- | |
============================================================ | |
BeforeResolveReferences | |
Redefine this target in your project in order to run tasks just before ResolveReferences | |
============================================================ | |
--> | |
<Target Name="BeforeResolveReferences" /> | |
<!-- | |
============================================================ | |
AfterResolveReferences | |
Redefine this target in your project in order to run tasks just after ResolveReferences | |
============================================================ | |
--> | |
<Target Name="AfterResolveReferences" /> | |
<!-- | |
============================================================ | |
AssignProjectConfiguration | |
Assigns the appropriate configuration to each project in the list of project references passed in. | |
Adds to the project references passed in any project references implied by dependencies expressed in the solution file, if any. | |
[IN] | |
@(ProjectReference) - the list of all project references | |
[OUT] | |
@(ProjectReferenceWithConfiguration) - the list of project references (MSBuild and potentially VSIP projects) | |
with metadata values FullConfiguration, Configuration, Platform, | |
SetConfiguration, and SetPlatform | |
============================================================ | |
--> | |
<Target Name="AssignProjectConfiguration" Condition="'$(CurrentSolutionConfigurationContents)' != '' or '@(ProjectReference)'!=''"> | |
<PropertyGroup> | |
<OnlyReferenceAndBuildProjectsEnabledInSolutionConfiguration Condition="'$(OnlyReferenceAndBuildProjectsEnabledInSolutionConfiguration)' == ''">true</OnlyReferenceAndBuildProjectsEnabledInSolutionConfiguration> | |
<ShouldUnsetParentConfigurationAndPlatform Condition="'$(ShouldUnsetParentConfigurationAndPlatform)' == '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildingSolutionFile)' == 'true')">true</ShouldUnsetParentConfigurationAndPlatform> | |
<ShouldUnsetParentConfigurationAndPlatform Condition="'$(ShouldUnsetParentConfigurationAndPlatform)' == ''">false</ShouldUnsetParentConfigurationAndPlatform> | |
<!-- Web Application projects can "secretly" reference Silverlight projects, which can take project dependencies on that same Web Application. If the project | |
dependencies are promoted to project references, this ends up creating a situation where we have a circular reference between the two projects. We don't | |
want this to happen, so just turn off synthetic project reference generation for Silverlight projects. --> | |
<AddSyntheticProjectReferencesForSolutionDependencies Condition="'$(AddSyntheticProjectReferencesForSolutionDependencies)' == '' and '$(TargetFrameworkIdentifier)' == 'Silverlight'">false</AddSyntheticProjectReferencesForSolutionDependencies> | |
<!-- Inside VS, we do not need to add synthetic references, as VS already organizes the build per any solution-level dependencies; we only do this on the command line--> | |
<AddSyntheticProjectReferencesForSolutionDependencies Condition="'$(AddSyntheticProjectReferencesForSolutionDependencies)' == '' and '$(BuildingInsideVisualStudio)' != 'true'">true</AddSyntheticProjectReferencesForSolutionDependencies> | |
</PropertyGroup> | |
<!-- Assign a project configuration to each project reference if we're building a solution file. --> | |
<AssignProjectConfiguration ProjectReferences="@(ProjectReference)" CurrentProject="$(MSBuildProjectFullPath)" CurrentProjectConfiguration="$(Configuration)" CurrentProjectPlatform="$(Platform)" DefaultToVcxPlatformMapping="$(DefaultToVcxPlatformMapping)" VcxToDefaultPlatformMapping="$(VcxToDefaultPlatformMapping)" OutputType="$(OutputType)" ResolveConfigurationPlatformUsingMappings="false" SolutionConfigurationContents="$(CurrentSolutionConfigurationContents)" AddSyntheticProjectReferencesForSolutionDependencies="$(AddSyntheticProjectReferencesForSolutionDependencies)" OnlyReferenceAndBuildProjectsEnabledInSolutionConfiguration="$(OnlyReferenceAndBuildProjectsEnabledInSolutionConfiguration)" ShouldUnsetParentConfigurationAndPlatform="$(ShouldUnsetParentConfigurationAndPlatform)"> | |
<!-- EMITTED FOR COMPATIBILITY REASONS ONLY. CONSUME PROJECTREFERENCEWITHCONFIGURATION INSTEAD --> | |
<Output TaskParameter="AssignedProjects" ItemName="_ProjectReferenceWithConfiguration" /> | |
<Output TaskParameter="UnassignedProjects" ItemName="_ProjectReferenceWithConfiguration" /> | |
<Output TaskParameter="AssignedProjects" ItemName="ProjectReferenceWithConfiguration" /> | |
<Output TaskParameter="UnassignedProjects" ItemName="ProjectReferenceWithConfiguration" /> | |
</AssignProjectConfiguration> | |
<ItemGroup> | |
<_ProjectReferenceWithConfiguration> | |
<BuildReference Condition="'%(_ProjectReferenceWithConfiguration.BuildReference)' == ''">true</BuildReference> | |
<ReferenceOutputAssembly Condition="'%(_ProjectReferenceWithConfiguration.ReferenceOutputAssembly)' == ''">true</ReferenceOutputAssembly> | |
</_ProjectReferenceWithConfiguration> | |
<ProjectReferenceWithConfiguration> | |
<BuildReference Condition="'%(ProjectReferenceWithConfiguration.BuildReference)' == ''">true</BuildReference> | |
<ReferenceOutputAssembly Condition="'%(ProjectReferenceWithConfiguration.ReferenceOutputAssembly)' == ''">true</ReferenceOutputAssembly> | |
</ProjectReferenceWithConfiguration> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_SplitProjectReferencesByFileExistence | |
Split referenced projects into two lists: those that exist on | |
disk and those that don't. | |
============================================================ | |
--> | |
<Target Name="_SplitProjectReferencesByFileExistence"> | |
<!-- | |
Use this task for matching projects with pre-resolved project outputs set by the IDE | |
if building inside the IDE. The IDE only includes non-MSBuild projects in the output list. We'll | |
use MSBuild to resolve MSBuild projects. | |
This task will resolve VSIP (3rd party) project references and create a new item list with only project references | |
to projects in the MSBuild format. | |
--> | |
<ResolveNonMSBuildProjectOutput ProjectReferences="@(ProjectReferenceWithConfiguration)" PreresolvedProjectOutputs="$(VSIDEResolvedNonMSBuildProjectOutputs)" Condition="'$(BuildingInsideVisualStudio)'=='true' and '@(ProjectReferenceWithConfiguration)'!=''"> | |
<Output TaskParameter="ResolvedOutputPaths" ItemName="_ResolvedProjectReferencePaths" /> | |
<Output TaskParameter="UnresolvedProjectReferences" ItemName="_MSBuildProjectReference" /> | |
</ResolveNonMSBuildProjectOutput> | |
<!-- | |
If building from the command line, simply copy the ProjectReferenceWithConfiguration item list to _MSBuildProjectReference, | |
since we have to assume all projects are in the MSBuild format. We have no way of building | |
VSIP (3rd party) projects from the command line. | |
--> | |
<ItemGroup> | |
<_MSBuildProjectReference Include="@(ProjectReferenceWithConfiguration)" Condition="'$(BuildingInsideVisualStudio)'!='true' and '@(ProjectReferenceWithConfiguration)'!=''" /> | |
</ItemGroup> | |
<!-- Break the project list into two lists: those that exist on disk and those that don't. --> | |
<ItemGroup> | |
<_MSBuildProjectReferenceExistent Include="@(_MSBuildProjectReference)" Condition="Exists('%(Identity)')" /> | |
<_MSBuildProjectReferenceNonexistent Include="@(_MSBuildProjectReference)" Condition="!Exists('%(Identity)')" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
==================================================================================== | |
_GetProjectReferenceTargetFrameworkProperties | |
Builds the GetTargetFrameworkProperties target of all existent project references, | |
passing $(TargetFrameworkMoniker) as $(ReferringTargetFramework) and sets the | |
SetTargetFramework metadata of the project reference to the value that is returned. | |
This allows a cross-targeting project to select how it should be configured to | |
build against the most appropriate target for the referring target framework. | |
====================================================================================== | |
--> | |
<Target Name="_GetProjectReferenceTargetFrameworkProperties" Outputs="%(_MSBuildProjectReferenceExistent.Identity)"> | |
<!-- | |
Honor SkipGetTargetFrameworkProperties=true metadata on project references | |
to mean that the project reference is known not to target multiple frameworks | |
and the mechanism here for selecting the best one can be skipped as an optimization. | |
We give this treatment to .vcxproj by default since no .vcxproj can target more | |
than one framework. | |
--> | |
<ItemGroup> | |
<_MSBuildProjectReferenceExistent Condition="'%(_MSBuildProjectReferenceExistent.SkipGetTargetFrameworkProperties)' == '' and '%(Extension)' == '.vcxproj'"> | |
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | |
</_MSBuildProjectReferenceExistent> | |
</ItemGroup> | |
<!-- | |
Allow project references to specify which target framework properties to set and their values | |
without consulting the referenced project. This has two use cases: | |
1. A caller may wish to pick a compatible but sub-optimal target framework. For example, | |
to unit test the .NETStandard implementation using a .NETFramework caller even though | |
there is also a .NETFramework implementation. | |
2. As an escape hatch for cases where the compatibility check performed by | |
GetTargetFrameworkProperties is faulty. | |
--> | |
<ItemGroup> | |
<_MSBuildProjectReferenceExistent Condition="'%(_MSBuildProjectReferenceExistent.SetTargetFramework)' != ''"> | |
<SkipGetTargetFrameworkProperties>true</SkipGetTargetFrameworkProperties> | |
</_MSBuildProjectReferenceExistent> | |
</ItemGroup> | |
<!-- | |
Select the moniker to send to each project reference if not already set. NugetTargetMoniker (NTM) is preferred by default over | |
TargetFrameworkMoniker (TFM) because it is required to disambiguate the UWP case where TFM is fixed at .NETCore,Version=v5.0 and | |
has floating NTM=UAP,Version=vX.Y.Z. However, in other cases (classic PCLs), NTM contains multiple values and that will cause the MSBuild | |
invocation below to fail by passing invalid properties. Therefore we do not use the NTM if it contains a semicolon. | |
--> | |
<PropertyGroup Condition="'$(ReferringTargetFrameworkForProjectReferences)' == ''"> | |
<ReferringTargetFrameworkForProjectReferences Condition="'$(NugetTargetMoniker)' != '' and !$(NuGetTargetMoniker.Contains(';'))">$(NugetTargetMoniker)</ReferringTargetFrameworkForProjectReferences> | |
<ReferringTargetFrameworkForProjectReferences Condition="'$(NugetTargetMoniker)' == ''">$(TargetFrameworkMoniker)</ReferringTargetFrameworkForProjectReferences> | |
</PropertyGroup> | |
<MSBuild Projects="%(_MSBuildProjectReferenceExistent.Identity)" Targets="GetTargetFrameworkProperties" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); ReferringTargetFramework=$(ReferringTargetFrameworkForProjectReferences)" ContinueOnError="!$(BuildingProject)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove);TargetFramework;RuntimeIdentifier" Condition="'%(_MSBuildProjectReferenceExistent.SkipGetTargetFrameworkProperties)' != 'true'"> | |
<Output TaskParameter="TargetOutputs" PropertyName="_ProjectReferenceTargetFrameworkProperties" /> | |
</MSBuild> | |
<ItemGroup> | |
<_MSBuildProjectReferenceExistent Condition="'%(_MSBuildProjectReferenceExistent.Identity)' == '%(Identity)' and '$(_ProjectReferenceTargetFrameworkProperties)' != ''"> | |
<SetTargetFramework>$(_ProjectReferenceTargetFrameworkProperties)</SetTargetFramework> | |
<UndefineProperties Condition="$(_ProjectReferenceTargetFrameworkProperties.Contains(`ProjectHasSingleTargetFramework=true`))">%(_MSBuildProjectReferenceExistent.UndefineProperties);TargetFramework;ProjectHasSingleTargetFramework</UndefineProperties> | |
<!-- Unconditionally remove the property that was set as a marker to indicate that for this call we should remove TargetFramework --> | |
<UndefineProperties Condition="!$(_ProjectReferenceTargetFrameworkProperties.Contains(`ProjectHasSingleTargetFramework=true`))">%(_MSBuildProjectReferenceExistent.UndefineProperties);ProjectHasSingleTargetFramework</UndefineProperties> | |
</_MSBuildProjectReferenceExistent> | |
</ItemGroup> | |
<ItemGroup> | |
<_MSBuildProjectReferenceExistent Condition="'%(_MSBuildProjectReferenceExistent.Identity)' == '%(Identity)' and '$(_ProjectReferenceTargetFrameworkProperties)' != ''"> | |
<UndefineProperties Condition="$(_ProjectReferenceTargetFrameworkProperties.Contains(`ProjectIsRidAgnostic=true`))">%(_MSBuildProjectReferenceExistent.UndefineProperties);RuntimeIdentifier;ProjectIsRidAgnostic</UndefineProperties> | |
<!-- Unconditionally remove the property that was set as a marker to indicate that for this call we should remove RuntimeIdentifier --> | |
<UndefineProperties Condition="!$(_ProjectReferenceTargetFrameworkProperties.Contains(`ProjectIsRidAgnostic=true`))">%(_MSBuildProjectReferenceExistent.UndefineProperties);ProjectIsRidAgnostic</UndefineProperties> | |
</_MSBuildProjectReferenceExistent> | |
</ItemGroup> | |
<PropertyGroup> | |
<_ProjectReferenceTargetFrameworkProperties /> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
GetTargetFrameworkProperties | |
Overrridden by cross-targeting projects to return the set of | |
properties (in the form "key1=value1;...keyN=valueN") needed | |
to build it with the best target for the referring project's | |
target framework. | |
The referring project's $(TargetFrameworkMoniker) is passed | |
in as $(ReferringTargetFramework) | |
--> | |
<Target Name="GetTargetFrameworkProperties" /> | |
<!-- | |
============================================================ | |
PrepareProjectReferences | |
Prepares project references for consumption by other targets. | |
[IN] | |
@(ProjectReference) - The list of project references. | |
[OUT] | |
@(ProjectReferenceWithConfiguration) - Project references with apporpriate metadata | |
@(_MSBuildProjectReferenceExistent) - Subset of @(ProjectReferenceWithConfiguration) that exist | |
with added SetTargetFramework metadata for cross-targeting | |
@(_MSBuildProjectReferenceNonExistent) - Subset of @(ProjectReferenceWithConfiguration) that do not exist | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PrepareProjectReferencesDependsOn> | |
AssignProjectConfiguration; | |
_SplitProjectReferencesByFileExistence; | |
_GetProjectReferenceTargetFrameworkProperties | |
</PrepareProjectReferencesDependsOn> | |
</PropertyGroup> | |
<Target Name="PrepareProjectReferences" DependsOnTargets="$(PrepareProjectReferencesDependsOn)" /> | |
<!-- | |
============================================================ | |
ResolveProjectReferences | |
Build referenced projects: | |
[IN] | |
@(ProjectReferenceWithConfiguration) - The list of project references. | |
[OUT] | |
@(_ResolvedNativeProjectReferencePaths) - Paths to referenced native projects. | |
@(_ResolvedProjectReferencePaths) - Paths to referenced managed projects. | |
============================================================ | |
--> | |
<!-- By default, the outputs of project references are passed to the compiler --> | |
<ItemDefinitionGroup> | |
<ProjectReference> | |
<!-- Target to build in the project reference; by default, this property is blank, indicating the default targets--> | |
<Targets>$(ProjectReferenceBuildTargets)</Targets> | |
<!-- Extra item type to emit outputs of the destination into. Defaults to blank. To emit only into this list, set the ReferenceOutputAssembly metadata to false as well. --> | |
<OutputItemType /> | |
<ReferenceSourceTarget>ProjectReference</ReferenceSourceTarget> | |
</ProjectReference> | |
</ItemDefinitionGroup> | |
<Target Name="ResolveProjectReferences" DependsOnTargets="PrepareProjectReferences" Returns="@(_ResolvedNativeProjectReferencePaths);@(_ResolvedProjectReferencePaths)"> | |
<!-- | |
When building this project from the IDE, just gather the referenced build outputs. | |
The IDE will already have built the project, so there's no need to do it again here. | |
The ContinueOnError setting is here so that, during project load, as | |
much information as possible will be passed to the compilers. | |
--> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="GetTargetPath" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" Condition="'%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildProjectReferences)' != 'true') and '$(VisualStudioVersion)' != '10.0' and '@(_MSBuildProjectReferenceExistent)' != ''" ContinueOnError="!$(BuildingProject)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_ResolvedProjectReferencePaths" Condition="'%(_MSBuildProjectReferenceExistent.ReferenceOutputAssembly)'=='true'" /> | |
<Output TaskParameter="TargetOutputs" ItemName="%(_MSBuildProjectReferenceExistent.OutputItemType)" Condition="'%(_MSBuildProjectReferenceExistent.OutputItemType)' != ''" /> | |
</MSBuild> | |
<!-- | |
QUIRKING FOR DEV10 | |
In the 4.0 version of the targets, we built the targets specified in the Targets metadata in addition to | |
GetTargetPath when building in the IDE. In 4.5, we changed this to just GetTargetPath because it was | |
causing performance trouble with certain systems that specified targets that did a significant amount of | |
work in the Targets metadata, expecting them to only build when doing a real build. | |
However, that change broke C++ unit testing in Dev10 + 4.5 scenarios, because they required use of the | |
Targets metadata in order to get design time builds to work properly. Thus, we need to make sure we | |
restore the Dev10 behavior when building on Dev10. | |
--> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="%(_MSBuildProjectReferenceExistent.Targets);GetTargetPath" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" Condition="'%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildProjectReferences)' != 'true') and '$(VisualStudioVersion)' == '10.0' and '@(_MSBuildProjectReferenceExistent)' != ''" ContinueOnError="!$(BuildingProject)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_ResolvedProjectReferencePaths" Condition="'%(_MSBuildProjectReferenceExistent.ReferenceOutputAssembly)'=='true'" /> | |
<Output TaskParameter="TargetOutputs" ItemName="%(_MSBuildProjectReferenceExistent.OutputItemType)" Condition="'%(_MSBuildProjectReferenceExistent.OutputItemType)' != ''" /> | |
</MSBuild> | |
<!-- | |
Build referenced projects when building from the command line. | |
--> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="%(_MSBuildProjectReferenceExistent.Targets)" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" Condition="'%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != ''" ContinueOnError="$(ContinueOnError)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_ResolvedProjectReferencePaths" Condition="'%(_MSBuildProjectReferenceExistent.ReferenceOutputAssembly)'=='true' or '$(DesignTimeBuild)' == 'true'" /> | |
<Output TaskParameter="TargetOutputs" ItemName="%(_MSBuildProjectReferenceExistent.OutputItemType)" Condition="'%(_MSBuildProjectReferenceExistent.OutputItemType)' != ''" /> | |
</MSBuild> | |
<!-- | |
Get manifest items from the (non-exe) built project references (to feed them into ResolveNativeReference). | |
--> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="GetNativeManifest" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" Condition="'%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingProject)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != ''" ContinueOnError="$(ContinueOnError)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="NativeReference" Condition="'%(_MSBuildProjectReferenceExistent.ReferenceOutputAssembly)' == 'true'" /> | |
</MSBuild> | |
<ItemGroup> | |
<_ResolvedProjectReferencePaths Remove="@(_ResolvedProjectReferencePaths)" Condition="'%(_ResolvedProjectReferencePaths.ResolveableAssembly)' == 'false'" /> | |
<!-- | |
Copy OriginalItemSpec to OriginalProjectReferenceItemSpec, so that when ResolveAssemblyReferences | |
takes these items and resolves them to ReferencePath, we can still recover the _real_ OriginalItemSpec | |
for the unresolved reference items. | |
--> | |
<_ResolvedProjectReferencePaths> | |
<OriginalProjectReferenceItemSpec>%(_ResolvedProjectReferencePaths.OriginalItemSpec)</OriginalProjectReferenceItemSpec> | |
</_ResolvedProjectReferencePaths> | |
</ItemGroup> | |
<!-- Issue a warning for each non-existent project. --> | |
<Warning Text="The referenced project '%(_MSBuildProjectReferenceNonexistent.Identity)' does not exist." Condition="'@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceNonexistent)' != ''" /> | |
</Target> | |
<Target Name="ResolveProjectReferencesDesignTime" Returns="@(_ProjectReferencesFromRAR);@(_ResolvedNativeProjectReferencePaths)" DependsOnTargets="ResolveProjectReferences;ResolveAssemblyReferences"> | |
<!-- We need to do this here because we only want project references which have passed through rar and have not been unresolved due to violating some MT rule | |
which means we need to pull the project references out of the referencepath item because they will only exist there if they were correctly resolved. | |
--> | |
<ItemGroup> | |
<_ProjectReferencesFromRAR Include="@(ReferencePath->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))"> | |
<OriginalItemSpec>%(ReferencePath.ProjectReferenceOriginalItemSpec)</OriginalItemSpec> | |
</_ProjectReferencesFromRAR> | |
</ItemGroup> | |
</Target> | |
<Target Name="ExpandSDKReferencesDesignTime" Returns="@(ReferencesFromSDK)" DependsOnTargets="ExpandSDKReferences" /> | |
<!-- | |
============================================================ | |
GetTargetPath | |
This target returns an item containing the build product (i.e. EXE, DLL) | |
that would be produced if we built this project, with some relevant | |
metadata. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<GetTargetPathDependsOn>$(GetTargetPathDependsOn)</GetTargetPathDependsOn> | |
</PropertyGroup> | |
<Target Name="GetTargetPath" DependsOnTargets="$(GetTargetPathDependsOn)" Returns="@(TargetPathWithTargetPlatformMoniker)" /> | |
<!-- | |
============================================================ | |
GetTargetPathWithTargetPlatformMoniker | |
This stand-alone target returns the name and version of the target platform for this project. | |
NOTE: The ProjectReference protocol uses only GetTargetPath. Computing the item | |
in this target allows projects to override GetTargetPath without having to reimplement | |
the details of the metadata computation. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<GetTargetPathWithTargetPlatformMonikerDependsOn>$(GetTargetPathDependsOn)</GetTargetPathWithTargetPlatformMonikerDependsOn> | |
</PropertyGroup> | |
<!--NOTE: since an overridden GetTargetPath might not include a DependsOn | |
for this target, it's safer to establish the dependency here with a | |
BeforeTargets. --> | |
<Target Name="GetTargetPathWithTargetPlatformMoniker" BeforeTargets="GetTargetPath" DependsOnTargets="$(GetTargetPathWithTargetPlatformMonikerDependsOn)" Returns="@(TargetPathWithTargetPlatformMoniker)"> | |
<ItemGroup> | |
<TargetPathWithTargetPlatformMoniker Include="$(TargetPath)"> | |
<TargetPlatformMoniker>$(TargetPlatformMoniker)</TargetPlatformMoniker> | |
<TargetPlatformIdentifier>$(TargetPlatformIdentifier)</TargetPlatformIdentifier> | |
<TargetFrameworkIdentifier>$(TargetFrameworkIdentifier)</TargetFrameworkIdentifier> | |
<TargetFrameworkVersion>$(TargetFrameworkVersion)</TargetFrameworkVersion> | |
<TargetFrameworkVersion Condition="$(TargetFrameworkVersion.StartsWith('v'))">$(TargetFrameworkVersion.Substring(1))</TargetFrameworkVersion> | |
<ReferenceAssembly Condition="'$(ProduceReferenceAssembly)' == 'true'">$(TargetRefPath)</ReferenceAssembly> | |
<CopyUpToDateMarker>@(CopyUpToDateMarker)</CopyUpToDateMarker> | |
</TargetPathWithTargetPlatformMoniker> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
GetNativeManifest | |
Compute the manifest item for this project. | |
[IN] | |
$(_DeploymentApplicationManifestIdentity) - the manifest identity | |
@(ApplicationManifest) - the original application manifest item | |
[OUT] | |
@(ComputedApplicationManifest) - application manifest item with full hint path, if generated | |
============================================================ | |
--> | |
<Target Name="GetNativeManifest" Returns="@(ComputedApplicationManifest)"> | |
<ItemGroup> | |
<ComputedApplicationManifest Include="$(_DeploymentApplicationManifestIdentity)" Condition="'$(OutputType)'!='winexe' and '$(OutputType)'!='exe' and '$(OutputType)'!='appcontainerexe' and Exists('%(_ApplicationManifestFinal.FullPath)')"> | |
<HintPath>%(_ApplicationManifestFinal.FullPath)</HintPath> | |
</ComputedApplicationManifest> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
ResolveNativeReferences | |
Resolve native references | |
[IN] | |
@(NativeReference) - The manifest reference (or list of manifest references) | |
[OUT] | |
@(NativeReferenceFile) - List of manifest files referenced. | |
@(_DeploymentNativePrerequisite) - List of native assembly prerequisites contained in the manifest. | |
@(ComClassReference) - List of COM components contained in the manifest. | |
@(COMReferenceFromNative) List of type libraries contained in the manifest. | |
@(COMFileReference) - List of loose files contained in the manifest. | |
@(_DeploymentLooseManifestFile) - List of extra files that should be published. | |
============================================================ | |
--> | |
<Target Name="ResolveNativeReferences" Condition="'@(NativeReference)'!=''" DependsOnTargets="ResolveProjectReferences"> | |
<ResolveNativeReference NativeReferences="@(NativeReference)" AdditionalSearchPaths="$(ReferencePath);$(OutDir)"> | |
<Output TaskParameter="ContainingReferenceFiles" ItemName="NativeReferenceFile" /> | |
<Output TaskParameter="ContainedPrerequisiteAssemblies" ItemName="_DeploymentNativePrerequisite" /> | |
<Output TaskParameter="ContainedComComponents" ItemName="ComClassReference" /> | |
<Output TaskParameter="ContainedTypeLibraries" ItemName="COMReferenceFromNative" /> | |
<Output TaskParameter="ContainedLooseTlbFiles" ItemName="COMFileReference" /> | |
<Output TaskParameter="ContainedLooseEtcFiles" ItemName="_DeploymentLooseManifestFile" /> | |
</ResolveNativeReference> | |
</Target> | |
<!-- | |
============================================================ | |
ResolveAssemblyReferences | |
Given the list of assemblies, find the closure of all assemblies that they depend on. These are | |
what we need to copy to the output directory. | |
[IN] | |
@(Reference) - List of assembly references as fusion names. | |
@(_ResolvedProjectReferencePaths) - List of project references produced by projects that this project depends on. | |
The 'Private' attribute on the reference corresponds to the Copy Local flag in IDE. | |
The 'Private' flag can have three possible values: | |
- 'True' means the reference should be Copied Local | |
- 'False' means the reference should not be Copied Local | |
- [Missing] means this task will decide whether to treat this reference as CopyLocal or not. | |
[OUT] | |
@(ReferencePath) - Paths to resolved primary files. | |
@(ReferenceDependencyPaths) - Paths to resolved dependency files. | |
@(_ReferenceRelatedPaths) - Paths to .xmls and .pdbs. | |
@(ReferenceSatellitePaths) - Paths to satellites. | |
@(_ReferenceSerializationAssemblyPaths) - Paths to XML serialization assemblies created by sgen. | |
@(_ReferenceScatterPaths) - Paths to scatter files. | |
@(ReferenceCopyLocalPaths) - Paths to files that should be copied to the local directory. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<ResolveAssemblyReferencesDependsOn> | |
GetFrameworkPaths; | |
GetReferenceAssemblyPaths; | |
PrepareForBuild; | |
ResolveSDKReferences; | |
ExpandSDKReferences; | |
</ResolveAssemblyReferencesDependsOn> | |
</PropertyGroup> | |
<Target Name="ResolveAssemblyReferences" Returns="@(ReferencePath)" DependsOnTargets="$(ResolveAssemblyReferencesDependsOn)"> | |
<ItemGroup> | |
<_ReferenceInstalledAssemblyDirectory Include="$(TargetFrameworkDirectory)" /> | |
<_ReferenceInstalledAssemblySubsets Include="$(TargetFrameworkSubset)" /> | |
</ItemGroup> | |
<!-- | |
Only read and write cache file at build time, skip it for load time because its more | |
expensive to write the newly created cache file. | |
--> | |
<PropertyGroup> | |
<ResolveAssemblyReferencesStateFile Condition="'$(BuildingProject)'=='true'">$(IntermediateOutputPath)$(MSBuildProjectFile)ResolveAssemblyReference.cache</ResolveAssemblyReferencesStateFile> | |
</PropertyGroup> | |
<!-- Make an App.Config item that exists when AutoUnify is false. --> | |
<ItemGroup> | |
<_ResolveAssemblyReferencesApplicationConfigFileForExes Include="@(AppConfigWithTargetPath)" Condition="'$(AutoGenerateBindingRedirects)'=='true' or '$(AutoUnifyAssemblyReferences)'=='false'" /> | |
</ItemGroup> | |
<PropertyGroup> | |
<!-- Default in task is true --> | |
<_FindDependencies Condition="'$(BuildingProject)' != 'true' and '$(_ResolveReferenceDependencies)' != 'true'">false</_FindDependencies> | |
<ResolveAssemblyReferencesSilent Condition="'$(ResolveAssemblyReferencesSilent)' == '' and '$(TraceDesignTime)' != 'true' and '$(BuildingProject)' == 'false'">true</ResolveAssemblyReferencesSilent> | |
<ResolveAssemblyReferencesSilent Condition="'$(ResolveAssemblyReferencesSilent)' == ''">false</ResolveAssemblyReferencesSilent> | |
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch Condition="'$(ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch)' == ''">Warning</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch> | |
</PropertyGroup> | |
<ItemGroup> | |
<!-- Remove any references which we have added as explicit reference so that we do not get duplicates. We need to make sure we do not have duplicates | |
because this confuses the IDE when it tries to compare the list of references passed in to the list of resolved references. If it does not match then the | |
ide will show one of the references as not resolved, this will not break the build but is a display issue --> | |
<Reference Remove="$(AdditionalExplicitAssemblyReferences)" /> | |
<Reference Include="$(AdditionalExplicitAssemblyReferences)"> | |
<Implicit>true</Implicit> | |
</Reference> | |
</ItemGroup> | |
<ResolveAssemblyReference Assemblies="@(Reference)" AssemblyFiles="@(_ResolvedProjectReferencePaths);@(_ExplicitReference)" TargetFrameworkDirectories="@(_ReferenceInstalledAssemblyDirectory)" InstalledAssemblyTables="@(InstalledAssemblyTables);@(RedistList)" IgnoreDefaultInstalledAssemblyTables="$(IgnoreDefaultInstalledAssemblyTables)" IgnoreDefaultInstalledAssemblySubsetTables="$(IgnoreInstalledAssemblySubsetTables)" CandidateAssemblyFiles="@(Content);@(None)" SearchPaths="$(AssemblySearchPaths)" AllowedAssemblyExtensions="$(AllowedReferenceAssemblyFileExtensions)" AllowedRelatedFileExtensions="$(AllowedReferenceRelatedFileExtensions)" TargetProcessorArchitecture="$(ProcessorArchitecture)" AppConfigFile="@(_ResolveAssemblyReferencesApplicationConfigFileForExes)" AutoUnify="$(AutoUnifyAssemblyReferences)" SupportsBindingRedirectGeneration="$(GenerateBindingRedirectsOutputType)" IgnoreVersionForFrameworkReferences="$(IgnoreVersionForFrameworkReferences)" FindDependencies="$(_FindDependencies)" FindSatellites="$(BuildingProject)" FindSerializationAssemblies="$(BuildingProject)" FindRelatedFiles="$(BuildingProject)" Silent="$(ResolveAssemblyReferencesSilent)" TargetFrameworkVersion="$(TargetFrameworkVersion)" TargetFrameworkMoniker="$(TargetFrameworkMoniker)" TargetFrameworkMonikerDisplayName="$(TargetFrameworkMonikerDisplayName)" TargetedRuntimeVersion="$(TargetedRuntimeVersion)" StateFile="$(ResolveAssemblyReferencesStateFile)" InstalledAssemblySubsetTables="@(InstalledAssemblySubsetTables)" TargetFrameworkSubsets="@(_ReferenceInstalledAssemblySubsets)" FullTargetFrameworkSubsetNames="$(FullReferenceAssemblyNames)" FullFrameworkFolders="$(_FullFrameworkReferenceAssemblyPaths)" FullFrameworkAssemblyTables="@(FullFrameworkAssemblyTables)" ProfileName="$(TargetFrameworkProfile)" LatestTargetFrameworkDirectories="@(LatestTargetFrameworkDirectories)" CopyLocalDependenciesWhenParentReferenceInGac="$(CopyLocalDependenciesWhenParentReferenceInGac)" DoNotCopyLocalIfInGac="$(DoNotCopyLocalIfInGac)" ResolvedSDKReferences="@(ResolvedSDKReference)" WarnOrErrorOnTargetArchitectureMismatch="$(ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch)" IgnoreTargetFrameworkAttributeVersionMismatch="$(ResolveAssemblyReferenceIgnoreTargetFrameworkAttributeVersionMismatch)" ContinueOnError="$(ContinueOnError)" Condition="'@(Reference)'!='' or '@(_ResolvedProjectReferencePaths)'!='' or '@(_ExplicitReference)' != ''"> | |
<Output TaskParameter="ResolvedFiles" ItemName="ReferencePath" /> | |
<Output TaskParameter="ResolvedFiles" ItemName="_ResolveAssemblyReferenceResolvedFiles" /> | |
<Output TaskParameter="ResolvedDependencyFiles" ItemName="ReferenceDependencyPaths" /> | |
<Output TaskParameter="RelatedFiles" ItemName="_ReferenceRelatedPaths" /> | |
<Output TaskParameter="SatelliteFiles" ItemName="ReferenceSatellitePaths" /> | |
<Output TaskParameter="SerializationAssemblyFiles" ItemName="_ReferenceSerializationAssemblyPaths" /> | |
<Output TaskParameter="ScatterFiles" ItemName="_ReferenceScatterPaths" /> | |
<Output TaskParameter="CopyLocalFiles" ItemName="ReferenceCopyLocalPaths" /> | |
<Output TaskParameter="SuggestedRedirects" ItemName="SuggestedBindingRedirects" /> | |
<Output TaskParameter="FilesWritten" ItemName="FileWrites" /> | |
<Output TaskParameter="DependsOnSystemRuntime" PropertyName="DependsOnSystemRuntime" /> | |
</ResolveAssemblyReference> | |
</Target> | |
<!-- | |
============================================================ | |
FindReferenceAssembliesForReferences | |
Given the list of references, create a list of assemblies to pass to the compiler that | |
includes reference assemblies rather than implementation assemblies where possible. | |
[IN] | |
@(ReferencePath) - List of assembly references as resolved paths with ReferenceAssembly metadata | |
[OUT] | |
@(ReferencePathWithRefAssemblies) - Paths to resolved reference (or implementation) assemblies. | |
============================================================ | |
--> | |
<Target Name="FindReferenceAssembliesForReferences" DependsOnTargets="ResolveReferences"> | |
<ItemGroup> | |
<!-- Reference assemblies are not produced in all cases, but it's easier to consume them | |
if this metadatum is always populated. Ensure that it points to the implementation | |
assembly unless already specified. --> | |
<ReferencePath Condition="'%(ReferencePath.ReferenceAssembly)' == ''"> | |
<ReferenceAssembly>%(FullPath)</ReferenceAssembly> | |
</ReferencePath> | |
<ReferencePathWithRefAssemblies Include="@(ReferencePath->'%(ReferenceAssembly)')" Condition="'$(CompileUsingReferenceAssemblies)' != 'false'"> | |
<OriginalPath Condition="'%(ReferencePath.Identity)' != '@(ReferencePath->'%(ReferenceAssembly)')'">%(ReferencePath.Identity)</OriginalPath> | |
</ReferencePathWithRefAssemblies> | |
<ReferencePathWithRefAssemblies Include="@(ReferencePath)" Condition="'$(CompileUsingReferenceAssemblies)' == 'false'" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
==================================================================================================== | |
GenerateBindingRedirects | |
Inject the binding redirects into the app config file based on suggested redirects as output from | |
ResolveAssemblyReferences. | |
[IN] | |
@(AppConfigWithTargetPath) - Path to the source app config file. This can be null if the project | |
doesn't contain an app config file. | |
$(TargetFileName) - The file name of the build target. | |
[OUT] | |
@(OutputAppConfigFile) - Path to the output app config file in the intermediate directory. | |
==================================================================================================== | |
--> | |
<Target Name="GenerateBindingRedirects" Inputs="$(MSBuildAllProjects);@(AppConfigFile);$(ResolveAssemblyReferencesStateFile);$(IntermediateOutputPath);@(SuggestedBindingRedirects)" Outputs="$(_GenerateBindingRedirectsIntermediateAppConfig)" Condition="'$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true'"> | |
<GenerateBindingRedirects AppConfigFile="@(AppConfigWithTargetPath)" TargetName="$(TargetFileName).config" OutputAppConfigFile="$(_GenerateBindingRedirectsIntermediateAppConfig)" SuggestedRedirects="@(SuggestedBindingRedirects)"> | |
<Output TaskParameter="OutputAppConfigFile" ItemName="FileWrites" /> | |
</GenerateBindingRedirects> | |
</Target> | |
<!-- | |
==================================================================================================== | |
GenerateBindingRedirectsUpdateAppConfig | |
Updates the project to use the generated app.config content. This needs to run regardless of | |
inputs/outputs so it is seperate from GenerateBindingRedirects. | |
==================================================================================================== | |
--> | |
<Target Name="GenerateBindingRedirectsUpdateAppConfig" AfterTargets="GenerateBindingRedirects" Condition="'$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true' and Exists('$(_GenerateBindingRedirectsIntermediateAppConfig)')"> | |
<PropertyGroup> | |
<AppConfig>$(_GenerateBindingRedirectsIntermediateAppConfig)</AppConfig> | |
</PropertyGroup> | |
<ItemGroup> | |
<AppConfigWithTargetPath Remove="@(AppConfigWithTargetPath)" /> | |
<AppConfigWithTargetPath Include="$(AppConfig)"> | |
<TargetPath>$(TargetFileName).config</TargetPath> | |
</AppConfigWithTargetPath> | |
</ItemGroup> | |
</Target> | |
<!-- | |
=========================================================================================== | |
GetInstalledSDKs | |
Gets the list of SDKs installed in the SDKDirectoryRoot and SDKRegistryRoot locations | |
These paths are used by the ResolveSDKReference task and the ResolveAssemblyReference task. | |
=========================================================================================== | |
--> | |
<PropertyGroup> | |
<SDKReferenceRegistryRoot Condition="'$(SDKReferenceRegistryRoot)' == ''">Software\Microsoft\Microsoft SDKs</SDKReferenceRegistryRoot> | |
<SDKReferenceDirectoryRoot Condition="'$(SDKReferenceDirectoryRoot)' == ''">$(LocalAppData)\Microsoft SDKs;$(MSBuildProgramFiles32)\Microsoft SDKs</SDKReferenceDirectoryRoot> | |
<!-- Manifest driven extension SDK locations --> | |
<SDKExtensionDirectoryRoot Condition="'$(SDKExtensionDirectoryRoot)' == '' and '$(SDKIdentifier)' != ''">$(MSBuildProgramFiles32)\Microsoft SDKs\Windows Kits\10;$(MSBuildProgramFiles32)\Windows Kits\10</SDKExtensionDirectoryRoot> | |
<!-- UAP projects by default should support Windows 8.1 SDKs --> | |
<SupportWindows81SDKs Condition="'$(SupportWindows81SDKs)' == '' and '$(Support81SDKs)' != 'false' and '$(TargetPlatformIdentifier)' == 'UAP'">true</SupportWindows81SDKs> | |
<TargetPlatformIdentifierWindows81 Condition="'$(TargetPlatformIdentifierWindows81)' == '' and '$(SupportWindows81SDKs)' == 'true'">Windows</TargetPlatformIdentifierWindows81> | |
<TargetPlatformVersionWindows81 Condition="'$(TargetPlatformVersionWindows81)' == '' and '$(SupportWindows81SDKs)' == 'true'">8.1</TargetPlatformVersionWindows81> | |
<!-- Desktop and phone SDKs often have the exact same identifiers, don't enable phone by default --> | |
<SupportWindowsPhone81SDKs Condition="'$(SupportWindowsPhone81SDKs)' == '' and '$(Support81SDKs)' != 'false' and '$(TargetPlatformIdentifier)' == 'UAP'">false</SupportWindowsPhone81SDKs> | |
<TargetPlatformIdentifierWindowsPhone81 Condition="'$(TargetPlatformIdentifierWindowsPhone81)' == '' and '$(SupportWindowsPhone81SDKs)' == 'true'">WindowsPhoneApp</TargetPlatformIdentifierWindowsPhone81> | |
<TargetPlatformVersionWindowsPhone81 Condition="'$(TargetPlatformVersionWindowsPhone81)' == '' and '$(SupportWindowsPhone81SDKs)' == 'true'">8.1</TargetPlatformVersionWindowsPhone81> | |
</PropertyGroup> | |
<Target Name="GetInstalledSDKLocations" DependsOnTargets="$(GetInstalledSDKLocationsDependsOn)" Returns="@(InstalledSDKLocations)"> | |
<GetInstalledSDKLocations SDKDirectoryRoots="$(SDKReferenceDirectoryRoot)" SDKExtensionDirectoryRoots="$(SDKExtensionDirectoryRoot)" SDKRegistryRoot="$(SDKReferenceRegistryRoot)" TargetPlatformVersion="$(TargetPlatformVersion)" TargetPlatformIdentifier="$(TargetPlatformIdentifier)" Condition="'@(SDKReference)' != ''"> | |
<Output TaskParameter="InstalledSDKs" ItemName="InstalledSDKLocations" /> | |
</GetInstalledSDKLocations> | |
<!-- Also lookup 8.1 SDKs if requested --> | |
<GetInstalledSDKLocations SDKDirectoryRoots="$(SDKReferenceDirectoryRoot)" SDKExtensionDirectoryRoots="" SDKRegistryRoot="$(SDKReferenceRegistryRoot)" TargetPlatformVersion="$(TargetPlatformVersionWindows81)" TargetPlatformIdentifier="$(TargetPlatformIdentifierWindows81)" Condition="'@(SDKReference)' != '' and '$(SupportWindows81SDKs)' == 'true' and '$(TargetPlatformIdentifierWindows81)' != '' and '$(TargetPlatformVersionWindows81)' != ''" WarnWhenNoSDKsFound="false"> | |
<Output TaskParameter="InstalledSDKs" ItemName="InstalledSDKLocations" /> | |
</GetInstalledSDKLocations> | |
<GetInstalledSDKLocations SDKDirectoryRoots="$(SDKReferenceDirectoryRoot)" SDKExtensionDirectoryRoots="" SDKRegistryRoot="$(SDKReferenceRegistryRoot)" TargetPlatformVersion="$(TargetPlatformVersionWindowsPhone81)" TargetPlatformIdentifier="$(TargetPlatformIdentifierWindowsPhone81)" Condition="'@(SDKReference)' != '' and '$(SupportWindowsPhone81SDKs)' == 'true' and '$(TargetPlatformIdentifierWindowsPhone81)' != '' and '$(TargetPlatformVersionWindowsPhone81)' != ''" WarnWhenNoSDKsFound="false"> | |
<Output TaskParameter="InstalledSDKs" ItemName="InstalledSDKLocations" /> | |
</GetInstalledSDKLocations> | |
</Target> | |
<!-- | |
============================================================ | |
ResolveSDKReferences | |
Given a list of SDKReference items and a list of resolved winmd files which may contain metadata as to which sdk they came from | |
we need to find the sdk root folders on disk and populate a ResolvedSDKReference item which has the full path to the SDK ROOT | |
and the sdk identity as a piece of metadata. | |
[IN] | |
@(SDKReference) - List of sdk references (the identity in the sdk manifest file). | |
@(ReferencePath) -List of resolved assemblies, we are interested in the ones which have IsWinMDFile set to true. | |
[OUT] | |
@(ResolvedSDKReference) - Full path to the root of the SDK | |
============================================================ | |
--> | |
<PropertyGroup> | |
<ResolveSDKReferencesDependsOn> | |
GetInstalledSDKLocations | |
</ResolveSDKReferencesDependsOn> | |
</PropertyGroup> | |
<PropertyGroup> | |
<TargetedSDKConfiguration Condition="'$(TargetedSDKConfiguration)' == '' and '_$(Configuration)' == '_Debug'">Debug</TargetedSDKConfiguration> | |
<TargetedSDKConfiguration Condition="'$(TargetedSDKConfiguration)' == '' and '_$(Configuration)' == '_Release'">Retail</TargetedSDKConfiguration> | |
<TargetedSDKConfiguration Condition="'$(TargetedSDKConfiguration)' == ''">Retail</TargetedSDKConfiguration> | |
<TargetedSDKArchitecture Condition="'$(TargetedSDKArchitecture)' == ''">$(ProcessorArchitecture)</TargetedSDKArchitecture> | |
<TargetedSDKArchitecture Condition="'$(TargetedSDKArchitecture)' == ''">Neutral</TargetedSDKArchitecture> | |
</PropertyGroup> | |
<PropertyGroup> | |
<ShouldMarkCertainSDKReferencesAsRuntimeOnly Condition="'$(ShouldMarkCertainSDKReferencesAsRuntimeOnly)' == ''">true</ShouldMarkCertainSDKReferencesAsRuntimeOnly> | |
</PropertyGroup> | |
<ItemGroup Condition="'$(ShouldMarkCertainSDKReferencesAsRuntimeOnly)' == 'true'"> | |
<!-- Dependencies that are specified as runtime-only dependencies. Therefore the associated files are not used to build Appx package. --> | |
<!-- TODO: Do we need to do anything like this for the new SDK? --> | |
<RuntimeReferenceOnlySDKDependencies Condition="'$(TargetPlatformVersion)' == '8.1'" Include="Microsoft.VCLibs, Version=11.0" /> | |
</ItemGroup> | |
<Target Name="ResolveSDKReferences" Returns="@(ResolvedSDKReference)" DependsOnTargets="$(ResolveSDKReferencesDependsOn)"> | |
<ResolveSDKReference SDKReferences="@(SDKReference)" RuntimeReferenceOnlySDKDependencies="@(RuntimeReferenceOnlySDKDependencies)" References="@(Reference)" TargetPlatformVersion="$(TargetPlatformVersion)" TargetPlatformIdentifier="$(TargetPlatformIdentifier)" WarnOnMissingPlatformVersion="$(SDKReferenceWarnOnMissingMaxPlatformVersion)" ProjectName="$(MSBuildProjectName)" TargetedSDKConfiguration="$(TargetedSDKConfiguration)" TargetedSDKArchitecture="$(TargetedSDKArchitecture)" InstalledSDKs="@(InstalledSDKLocations)" LogResolutionErrorsAsWarnings="$(LogSDKReferenceResolutionErrorsAsWarnings)" Prefer32Bit="$(Prefer32Bit)" ContinueOnError="$(ContinueOnError)" Condition="'@(SDKReference)'!=''"> | |
<Output TaskParameter="ResolvedSDKReferences" ItemName="ResolvedSDKReference" /> | |
</ResolveSDKReference> | |
</Target> | |
<Target Name="ResolveSDKReferencesDesignTime" Returns="@(ResolvedSDKReference)" DependsOnTargets="ResolveSDKReferences" /> | |
<!-- | |
============================================================ | |
FindInvalidProjectReferences | |
Find project to project references with target platform version higher than the one used by the current project and | |
creates a list of invalid references to be unresolved. It issues a warning for each invalid reference. | |
[IN] | |
$(TargetPlatformVersion) - Project's target platform version | |
@(_ProjectReferenceTargetPlatformMonikers) - List of monikers of all referenced projects gathered by the helper | |
target GetTargetPlatformMonikers. | |
[OUT] | |
@(InvalidProjectReferences) - List of invalid project references | |
============================================================ | |
--> | |
<PropertyGroup> | |
<FindInvalidProjectReferencesDependsOn> | |
GetReferenceTargetPlatformMonikers | |
</FindInvalidProjectReferencesDependsOn> | |
</PropertyGroup> | |
<Target Name="FindInvalidProjectReferences" Condition="'$(FindInvalidProjectReferences)' == 'true'" DependsOnTargets="$(FindInvalidProjectReferencesDependsOn)"> | |
<FindInvalidProjectReferences TargetPlatformVersion="$(TargetPlatformVersion)" TargetPlatformIdentifier="$(TargetPlatformIdentifier)" ProjectReferences="@(TargetPathWithTargetPlatformMoniker)"> | |
<Output TaskParameter="InvalidReferences" ItemName="InvalidProjectReferences" /> | |
</FindInvalidProjectReferences> | |
<ItemGroup> | |
<_ResolvedProjectReferencePaths Remove="@(InvalidProjectReferences)" /> | |
</ItemGroup> | |
</Target> | |
<Target Name="GetReferenceTargetPlatformMonikers" DependsOnTargets="PrepareProjectReferences"> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" Targets="GetTargetPathWithTargetPlatformMoniker" BuildInParallel="$(BuildInParallel)" ContinueOnError="!$(BuildingProject)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="TargetPathWithTargetPlatformMoniker" /> | |
</MSBuild> | |
</Target> | |
<!-- | |
============================================================ | |
ExpandSDKReferences | |
After we have resolved the sdk refrence we need to make sure that we automatically include the references which are part of the SDK (both winmd and dll) | |
as part of the assemblies passed to the compiler. | |
Project systems or project which do not want to reference all dlls or winmd files should override this target to do nothing. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<ExpandSDKReferencesDependsOn> | |
ResolveSDKReferences | |
</ExpandSDKReferencesDependsOn> | |
<ExpandSDKAllowedReferenceExtensions Condition="'$(ExpandSDKAllowedReferenceExtensions)' == ''"> | |
.winmd; | |
.dll | |
</ExpandSDKAllowedReferenceExtensions> | |
</PropertyGroup> | |
<Target Name="ExpandSDKReferences" Returns="@(ReferencesFromSDK)" DependsOnTargets="$(ExpandSDKReferencesDependsOn)"> | |
<GetSDKReferenceFiles ResolvedSDKReferences="@(ResolvedSDKReference)" ReferenceExtensions="$(ExpandSDKAllowedReferenceExtensions)" TargetSDKIdentifier="$(SDKIdentifier)" TargetSDKVersion="$(SDKVersion)" TargetPlatformIdentifier="$(TargetPlatformIdentifier)" TargetPlatformVersion="$(TargetPlatformVersion)" LogRedistFilesList="$(GetSDKReferenceFilesLogRedistFilesList)" LogRedistConflictWithinSDKAsWarning="$(GetSDKReferenceFilesLogRedistConflictsWithinSDKAsWarning)" LogRedistConflictBetweenSDKsAsWarning="$(GetSDKReferenceFilesLogRedistConflictsBetweenSDKsAsWarning)" LogReferencesList="$(GetSDKReferenceFilesLogReferencesList)" LogReferenceConflictWithinSDKAsWarning="$(GetSDKReferenceFilesLogReferenceConflictsWithinSDKAsWarning)" LogReferenceConflictBetweenSDKsAsWarning="$(GetSDKReferenceFilesLogReferenceConflictsBetweenSDKsAsWarning)" CacheFileFolderPath="$(GetSDKReferenceFilesCacheFolder)" LogCacheFileExceptions="$(GetSDKReferenceFilesLogCacheFileExceptions)" Condition="'@(ResolvedSDKReference)'!=''"> | |
<Output TaskParameter="References" ItemName="ReferencePath" /> | |
<Output TaskParameter="References" ItemName="ReferencesFromSDK" /> | |
<Output TaskParameter="References" ItemName="_ResolveAssemblyReferenceResolvedFiles" /> | |
<Output TaskParameter="CopyLocalFiles" ItemName="ReferenceCopyLocalPaths" /> | |
<Output TaskParameter="RedistFiles" ItemName="ResolvedRedistFiles" /> | |
</GetSDKReferenceFiles> | |
</Target> | |
<!-- | |
============================================================ | |
ExportWindowsMDFile | |
When a project is generating a a winmd file through c# or vb, ect the compiler will create a WinMDModule file. This file needs to be run | |
through the winmdexp tool in order to generate the resulting WinMD file. | |
=========================================================== | |
--> | |
<Target Name="ExportWindowsMDFile" DependsOnTargets="Compile" Condition="'$(ExportWinMDFile)' == 'true'" Inputs="@(IntermediateAssembly);@(DocFileItem);@(_DebugSymbolsIntermediatePath);@(ReferencePath);$(MSBuildAllProjects)" Outputs="$(_IntermediateWindowsMetadataPath);$(WinMDExpOutputPdb);$(WinMDOutputDocumentationFile)"> | |
<PropertyGroup> | |
<!-- Will be copied by the "copy WinMD artifacts" step instead --> | |
<CopyBuildOutputToOutputDirectory>false</CopyBuildOutputToOutputDirectory> | |
<CopyOutputSymbolsToOutputDirectory>false</CopyOutputSymbolsToOutputDirectory> | |
<WinMdExpToolPath Condition="'$(WinMdExpToolPath)' == ''">$(TargetFrameworkSDKToolsDirectory)</WinMdExpToolPath> | |
<WinMdExpUTF8Ouput Condition="'$(WinMdExpUTF8Ouput)' == ''">true</WinMdExpUTF8Ouput> | |
</PropertyGroup> | |
<WinMDExp WinMDModule="@(IntermediateAssembly)" References="@(ReferencePath)" DisabledWarnings="$(WinMdExpNoWarn)" InputDocumentationFile="@(DocFileItem)" OutputDocumentationFile="$(WinMDOutputDocumentationFile)" TreatWarningsAsErrors="$(TreatWarningsAsErrors)" InputPDBFile="@(_DebugSymbolsIntermediatePath)" OutputPDBFile="$(WinMDExpOutputPdb)" OutputWindowsMetadataFile="$(_IntermediateWindowsMetadataPath)" EnvironmentVariables="$(WinMDExpEnvironment)" UTF8Output="$(WinMdExpUTF8Ouput)" SdkToolsPath="$(WinMdExpToolPath)" AssemblyUnificationPolicy="$(WinMDExpAssemblyUnificationPolicy)"> | |
<Output TaskParameter="OutputWindowsMetadataFile" ItemName="FileWrites" /> | |
</WinMDExp> | |
<ItemGroup> | |
<WinMDExpArtifacts Include="$(_IntermediateWindowsMetadataPath)" /> | |
<WinMDExpArtifacts Include="$(WinMDOutputDocumentationFile)" /> | |
<WinMDExpArtifacts Include="$(WinMDExpOutputPdb)" /> | |
<FileWrites Include="$(WinMDOutputDocumentationFile);$(WinMDExpOutputPdb)" /> | |
</ItemGroup> | |
</Target> | |
<Target Name="ResolveAssemblyReferencesDesignTime" Returns="@(_ReferencesFromRAR)" DependsOnTargets="ResolveProjectReferences;ResolveAssemblyReferences"> | |
<!-- We need to do this here because we only want references which have been passed into rar but are not project to project references. --> | |
<ItemGroup> | |
<_ReferencesFromRAR Include="@(ReferencePath->WithMetadataValue('ReferenceSourceTarget', 'ResolveAssemblyReference'))" /> | |
</ItemGroup> | |
</Target> | |
<PropertyGroup> | |
<ProjectDesignTimeAssemblyResolutionSearchPaths Condition=" '$(ProjectDesignTimeAssemblyResolutionSearchPaths)' == '' "> | |
{CandidateAssemblyFiles}; | |
$(ReferencePath); | |
{HintPathFromItem}; | |
{TargetFrameworkDirectory}; | |
{Registry:$(FrameworkRegistryBase),$(TargetFrameworkVersion),$(AssemblyFoldersSuffix)$(AssemblyFoldersExConditions)}; | |
{RawFileName}; | |
$(TargetDir) | |
</ProjectDesignTimeAssemblyResolutionSearchPaths> | |
</PropertyGroup> | |
<!-- | |
============================================================== | |
DesignTimeResolveAssemblyReferences | |
Given the list of assemblies, resolve their reference paths. | |
This target is called by Visual Studio at run time in order to filter references | |
according to the targeted framework. | |
[IN] | |
@(DesignTimeReference) - List of assembly references as simple/fusion names. | |
[OUT] | |
@(ReferencePath) - Paths to resolved primary files. | |
============================================================== | |
--> | |
<PropertyGroup> | |
<DesignTimeResolveAssemblyReferencesDependsOn> | |
GetFrameworkPaths; | |
GetReferenceAssemblyPaths; | |
ResolveReferences | |
</DesignTimeResolveAssemblyReferencesDependsOn> | |
</PropertyGroup> | |
<Target Name="DesignTimeResolveAssemblyReferences" Condition="'$(DesignTimeReference)'!=''" DependsOnTargets="$(DesignTimeResolveAssemblyReferencesDependsOn)"> | |
<ItemGroup> | |
<_DesignTimeReferenceInstalledAssemblyDirectory Include="$(TargetFrameworkDirectory)" /> | |
</ItemGroup> | |
<PropertyGroup> | |
<DesignTimeResolveAssemblyReferencesStateFile Condition="'$(BuildingProject)'=='true'">$(IntermediateOutputPath)$(MSBuildProjectFile)DesignTimeResolveAssemblyReferences.cache</DesignTimeResolveAssemblyReferencesStateFile> | |
</PropertyGroup> | |
<PropertyGroup> | |
<DesignTimeAssemblySearchPaths Condition=" '$(DesignTimeAssemblySearchPaths)' == '' "> | |
{CandidateAssemblyFiles}; | |
$(ReferencePath); | |
{HintPathFromItem}; | |
{TargetFrameworkDirectory}; | |
{Registry:$(FrameworkRegistryBase),$(TargetFrameworkVersion),$(AssemblyFoldersSuffix)$(AssemblyFoldersExConditions)}; | |
{RawFileName}; | |
$(OutDir) | |
</DesignTimeAssemblySearchPaths> | |
</PropertyGroup> | |
<PropertyGroup> | |
<DesignTimeFindDependencies Condition=" '$(DesignTimeFindDependencies)' == '' ">false</DesignTimeFindDependencies> | |
<DesignTimeIgnoreVersionForFrameworkReferences Condition=" '$(DesignTimeIgnoreVersionForFrameworkReferences)' == '' ">false</DesignTimeIgnoreVersionForFrameworkReferences> | |
<DesignTimeFindSatellites Condition=" '$(DesignTimeFindSatellites)' == '' ">false</DesignTimeFindSatellites> | |
<DesignTimeFindSerializationAssemblies Condition=" '$(DesignTimeFindSerializationAssemblies)' == '' ">false</DesignTimeFindSerializationAssemblies> | |
<DesignTimeFindRelatedFiles Condition=" '$(DesignTimeFindRelatedFiles)' == '' ">false</DesignTimeFindRelatedFiles> | |
<DesignTimeSilentResolution Condition=" '$(DesignTimeSilentResolution)' == '' and '$(TraceDesignTime)' != 'true'">true</DesignTimeSilentResolution> | |
<DesignTimeAutoUnify Condition="'$(DesignTimeAutoUnify)' == ''">false</DesignTimeAutoUnify> | |
</PropertyGroup> | |
<ItemGroup> | |
<_DesignTimeReferenceAssemblies Include="$(DesignTimeReference)" /> | |
</ItemGroup> | |
<ItemGroup> | |
<_RARResolvedReferencePath Include="@(ReferencePath)" /> | |
<ReferencePath Remove="@(ReferencePath)" /> | |
</ItemGroup> | |
<ResolveAssemblyReference Assemblies="@(_DesignTimeReferenceAssemblies)" TargetFrameworkDirectories="@(_DesignTimeReferenceInstalledAssemblyDirectory)" SearchPaths="$(DesignTimeAssemblySearchPaths)" AllowedAssemblyExtensions="$(AllowedReferenceAssemblyFileExtensions)" TargetProcessorArchitecture="$(ProcessorArchitecture)" CandidateAssemblyFiles="@(Content);@(None);@(_RARResolvedReferencePath)" FindDependencies="$(DesignTimeFindDependencies)" AutoUnify="$(DesignTimeAutoUnify)" IgnoreVersionForFrameworkReferences="$(DesignTimeIgnoreVersionForFrameworkReferences)" FindSatellites="$(DesignTimeFindSatellites)" FindSerializationAssemblies="$(DesignTimeFindSerializationAssemblies)" FindRelatedFiles="$(DesignTimeFindRelatedFiles)" Silent="$(DesignTimeSilentResolution)" TargetFrameworkVersion="$(TargetFrameworkVersion)" TargetFrameworkMoniker="$(TargetFrameworkMoniker)" TargetFrameworkMonikerDisplayName="$(TargetFrameworkMonikerDisplayName)" TargetedRuntimeVersion="$(TargetedRuntimeVersion)" StateFile="$(DesignTimeResolveAssemblyReferencesStateFile)" InstalledAssemblySubsetTables="@(InstalledAssemblySubsetTables)" IgnoreDefaultInstalledAssemblySubsetTables="$(IgnoreInstalledAssemblySubsetTables)" TargetFrameworkSubsets="@(_ReferenceInstalledAssemblySubsets)" FullTargetFrameworkSubsetNames="$(FullReferenceAssemblyNames)" FullFrameworkFolders="$(_FullFrameworkReferenceAssemblyPaths)" FullFrameworkAssemblyTables="@(FullFrameworkAssemblyTables)" ProfileName="$(TargetFrameworkProfile)" ResolvedSDKReferences="@(ResolvedSDKReference)" IgnoreTargetFrameworkAttributeVersionMismatch="$(DesignTimeIgnoreTargetFrameworkAttributeVersionMismatch)"> | |
<Output TaskParameter="ResolvedFiles" ItemName="DesignTimeReferencePath" /> | |
<Output TaskParameter="FilesWritten" ItemName="FileWrites" /> | |
</ResolveAssemblyReference> | |
</Target> | |
<!-- | |
============================================================ | |
ResolveComReferences | |
Resolve COM references | |
[IN] | |
@(COMReference) - The list of COM references | |
$(BaseIntermediateOutputPath) - The output directory in which to generate wrapper assemblies | |
[OUT] | |
@(ReferencePath) - Paths to referenced wrappers. | |
If ResolveComReferences is invoked from the IDE, PrepareForBuild may need to run to create directories. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<ComReferenceExecuteAsTool Condition="'$(ComReferenceExecuteAsTool)'==''">false</ComReferenceExecuteAsTool> | |
</PropertyGroup> | |
<Target Name="ResolveComReferences" Condition="'@(COMReference)'!='' or '@(COMFileReference)'!=''" Returns="@(ReferencePath)" DependsOnTargets="PrepareForBuild;ResolveKeySource;ResolveAssemblyReferences"> | |
<PropertyGroup Condition=" '$(InteropOutputPath)' == '' "> | |
<InteropOutputPath>$(IntermediateOutputPath)</InteropOutputPath> | |
</PropertyGroup> | |
<MakeDir Directories="$(InteropOutputPath)" /> | |
<!-- | |
Note: This task should not be batched, since it relies on having all the COM references fed into it at once. | |
--> | |
<PropertyGroup> | |
<ResolveComReferenceMSBuildArchitecture Condition="'$(ResolveComReferenceMSBuildArchitecture)' == ''">$(PlatformTargetAsMSBuildArchitecture)</ResolveComReferenceMSBuildArchitecture> | |
<ResolveComReferenceToolPath Condition="'$(ResolveComReferenceToolPath)' == ''">$(TargetFrameworkSDKToolsDirectory)</ResolveComReferenceToolPath> | |
<ResolveComReferenceSilent Condition="'$(ResolveComReferenceSilent)' == ''">false</ResolveComReferenceSilent> | |
</PropertyGroup> | |
<ResolveComReference TypeLibNames="@(COMReference)" TypeLibFiles="@(COMFileReference)" ResolvedAssemblyReferences="@(ReferencePath)" WrapperOutputDirectory="$(InteropOutputPath)" IncludeVersionInInteropName="$(IncludeVersionInInteropName)" KeyContainer="$(KeyContainerName)" KeyFile="$(KeyOriginatorFile)" DelaySign="$(DelaySign)" StateFile="@(_ResolveComReferenceCache)" TargetFrameworkVersion="$(TargetFrameworkVersion)" TargetProcessorArchitecture="$(ProcessorArchitecture)" NoClassMembers="$(ComReferenceNoClassMembers)" Silent="$(ResolveComReferenceSilent)" EnvironmentVariables="$(ResolveComReferenceEnvironment)" SdkToolsPath="$(ResolveComReferenceToolPath)" ExecuteAsTool="$(ComReferenceExecuteAsTool)" MSBuildArchitecture="$(ResolveComReferenceMSBuildArchitecture)" ContinueOnError="$(ContinueOnError)"> | |
<Output TaskParameter="ResolvedFiles" ItemName="ReferencePath" /> | |
<Output TaskParameter="ResolvedFiles" ItemName="ComReferenceWrappers" /> | |
<Output TaskParameter="ResolvedFiles" ItemName="FileWrites" /> | |
<!-- This output list only includes items with Isolated attribute set to True. It's done by the task itself. --> | |
<Output TaskParameter="ResolvedModules" ItemName="ResolvedIsolatedComModules" /> | |
</ResolveComReference> | |
<ItemGroup> | |
<FileWrites Include="@(_ResolveComReferenceCache)" /> | |
<ReferenceComWrappersToCopyLocal Include="@(ComReferenceWrappers)" Condition="'%(ComReferenceWrappers.CopyLocal)'!='false'" /> | |
</ItemGroup> | |
</Target> | |
<Target Name="ResolveComReferencesDesignTime" Returns="@(ComReferenceWrappers)" DependsOnTargets="ResolveComReferences" /> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
PrepareResources Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
PrepareResources | |
Prepare resources for the Compile step. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PrepareResourcesDependsOn> | |
PrepareResourceNames; | |
ResGen; | |
CompileLicxFiles | |
</PrepareResourcesDependsOn> | |
</PropertyGroup> | |
<Target Name="PrepareResources" DependsOnTargets="$(PrepareResourcesDependsOn)" /> | |
<!-- | |
============================================================ | |
PrepareResourceNames | |
Prepare the names of resource files. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PrepareResourceNamesDependsOn> | |
AssignTargetPaths; | |
SplitResourcesByCulture; | |
CreateManifestResourceNames; | |
CreateCustomManifestResourceNames | |
</PrepareResourceNamesDependsOn> | |
</PropertyGroup> | |
<Target Name="PrepareResourceNames" DependsOnTargets="$(PrepareResourceNamesDependsOn)" /> | |
<!-- | |
============================================================ | |
AssignTargetPaths | |
This target creates <TargetPath> tags for items. <TargetPath> is a relative folder plus filename | |
for the destination of this item. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<AssignTargetPathsDependsOn /> | |
</PropertyGroup> | |
<Target Name="AssignTargetPaths" DependsOnTargets="$(AssignTargetPathsDependsOn)"> | |
<ItemGroup> | |
<_Temporary Remove="@(_Temporary)" /> | |
</ItemGroup> | |
<!-- AssignTargetPath generates TargetPath metadata that is consumed by CreateManifestResourceNames target for manifest name generation --> | |
<AssignTargetPath Files="@(EmbeddedResource)" RootFolder="$(MSBuildProjectDirectory)"> | |
<Output TaskParameter="AssignedFiles" ItemName="_Temporary" /> | |
</AssignTargetPath> | |
<ItemGroup> | |
<!-- Replace items in EmbeddedResource with the items emitted by the AssignTargetPath task that have the TargetPath metadata --> | |
<EmbeddedResource Remove="@(_Temporary)" /> | |
<EmbeddedResource Include="@(_Temporary)" /> | |
<_Temporary Remove="@(_Temporary)" /> | |
</ItemGroup> | |
<AssignTargetPath Files="@(Content)" RootFolder="$(MSBuildProjectDirectory)"> | |
<Output TaskParameter="AssignedFiles" ItemName="ContentWithTargetPath" /> | |
</AssignTargetPath> | |
<AssignTargetPath Files="@(None)" RootFolder="$(MSBuildProjectDirectory)"> | |
<Output TaskParameter="AssignedFiles" ItemName="_NoneWithTargetPath" /> | |
</AssignTargetPath> | |
<AssignTargetPath Files="@(BaseApplicationManifest)" RootFolder="$(MSBuildProjectDirectory)"> | |
<Output TaskParameter="AssignedFiles" ItemName="_DeploymentBaseManifestWithTargetPath" /> | |
</AssignTargetPath> | |
<AssignTargetPath Files="@(None)" RootFolder="$(MSBuildProjectDirectory)" Condition="'@(_DeploymentBaseManifestWithTargetPath)'=='' and '%(None.Extension)'=='.manifest'"> | |
<Output TaskParameter="AssignedFiles" ItemName="_DeploymentBaseManifestWithTargetPath" /> | |
</AssignTargetPath> | |
</Target> | |
<!-- | |
============================================================ | |
GetItemTargetPaths | |
This target returns all items that have TargetPath metadata assigned by the AssignTargetPaths target. | |
============================================================ | |
--> | |
<Target Name="GetItemTargetPaths" DependsOnTargets="AssignTargetPaths" Returns="
 @(EmbeddedResource);
 @(ContentWithTargetPath);
 @(_NoneWithTargetPath);
 @(_DeploymentBaseManifestWithTargetPath);
 " /> | |
<!-- | |
============================================================ | |
SplitResourcesByCulture | |
Split EmbeddedResource items into five lists based on whether | |
they are resx files, licx files or other resources and whether they should be localized. Also adds Type and Culture | |
metadata. Type indicates whether the resource is "Resx" or "Non-Resx". | |
[IN]/[OUT] | |
@(EmbeddedResource) - The raw list of resources. | |
[OUT] | |
@(_LicxFile) - The EmbeddedResource items with extension equal to '.licx'. | |
============================================================ | |
--> | |
<Target Name="SplitResourcesByCulture" DependsOnTargets="AssignTargetPaths"> | |
<Warning Condition="'@(ResxWithNoCulture)'!=''" Code="MSB9000" Text="ResxWithNoCulture item type is deprecated. Use EmbeddedResource items instead." /> | |
<Warning Condition="'@(ResxWithCulture)'!=''" Code="MSB9001" Text="ResxWithCulture item type is deprecated. Use EmbeddedResource items instead." /> | |
<Warning Condition="'@(NonResxWithCulture)'!=''" Code="MSB9002" Text="NonResxWithCulture item type is deprecated. Use EmbeddedResource items instead." /> | |
<Warning Condition="'@(NonResxWithNoCulture)'!=''" Code="MSB9003" Text="NonResxWithNoCulture item type is deprecated. Use EmbeddedResource items instead." /> | |
<ItemGroup> | |
<_LicxFile Include="@(EmbeddedResource)" Condition="'%(Extension)'=='.licx'" /> | |
<!-- CONSUMED FOR COMPATIBILITY REASONS ONLY. EMIT EMBEDDEDRESOURCE INSTEAD --> | |
<EmbeddedResource Include="@(ResxWithNoCulture);@(ResxWithCulture)"> | |
<Type>Resx</Type> | |
</EmbeddedResource> | |
<EmbeddedResource Include="@(NonResxWithCulture);@(NonResxWithNoCulture)"> | |
<Type>Non-Resx</Type> | |
</EmbeddedResource> | |
</ItemGroup> | |
<AssignCulture Files="@(EmbeddedResource)" Condition="'%(Extension)'!='.licx'"> | |
<!-- Create the list of culture resx and embedded resource files --> | |
<Output TaskParameter="AssignedFilesWithCulture" ItemName="_MixedResourceWithCulture" /> | |
<!-- Create the list of non-culture resx and embedded resource files --> | |
<Output TaskParameter="AssignedFilesWithNoCulture" ItemName="_MixedResourceWithNoCulture" /> | |
</AssignCulture> | |
<ItemGroup> | |
<!-- Remove EmbeddedResource items that we have processed already | |
i.e. either Licx, or resources that don't have culture info --> | |
<EmbeddedResource Remove="@(_MixedResourceWithCulture)" /> | |
<EmbeddedResource Remove="@(_MixedResourceWithNoCulture)" /> | |
<EmbeddedResource Remove="@(_LicxFile)" /> | |
<!-- Add back everything except Licx, so that we have culture info --> | |
<EmbeddedResource Include="@(_MixedResourceWithNoCulture);@(_MixedResourceWithCulture)" Condition="'%(Extension)'=='.resx' or '%(Extension)'=='.restext'"> | |
<Type Condition="'%(_MixedResourceWithNoCulture.Type)'=='' and '%(_MixedResourceWithCulture.Type)'==''">Resx</Type> | |
</EmbeddedResource> | |
<EmbeddedResource Include="@(_MixedResourceWithNoCulture);@(_MixedResourceWithCulture)" Condition="'%(Extension)'!='.resx' and '%(Extension)'!='.restext'"> | |
<Type Condition="'%(_MixedResourceWithNoCulture.Type)'=='' and '%(_MixedResourceWithCulture.Type)'==''">Non-Resx</Type> | |
</EmbeddedResource> | |
<!-- EMITTED FOR COMPATIBILITY REASONS ONLY. CONSUME EMBEDDEDRESOURCE INSTEAD --> | |
<ResxWithNoCulture Remove="@(ResxWithNoCulture)" /> | |
<NonResxWithNoCulture Remove="@(NonResxWithNoCulture)" /> | |
<ResxWithCulture Remove="@(ResxWithCulture)" /> | |
<NonResxWithCulture Remove="@(NonResxWithCulture)" /> | |
<ResxWithNoCulture Include="@(_MixedResourceWithNoCulture)" Condition="'%(WithCulture)'=='false' and ('%(Extension)'=='.resx' or '%(Extension)'=='.restext')" /> | |
<NonResxWithNoCulture Include="@(_MixedResourceWithNoCulture)" Condition="'%(WithCulture)'=='false' and ('%(Extension)'!='.resx' and '%(Extension)'!='.restext')" /> | |
<ResxWithCulture Include="@(_MixedResourceWithCulture)" Condition="'%(WithCulture)'=='true' and ('%(Extension)'=='.resx' or '%(Extension)'=='.restext')" /> | |
<NonResxWithCulture Include="@(_MixedResourceWithCulture)" Condition="'%(WithCulture)'=='true' and ('%(Extension)'!='.resx' and '%(Extension)'!='.restext')" /> | |
<!-- Clean up temporary lists --> | |
<_MixedResourceWithNoCulture Remove="@(_MixedResourceWithNoCulture)" /> | |
<_MixedResourceWithCulture Remove="@(_MixedResourceWithCulture)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
======================================================================= | |
CreateCustomManifestResourceNames | |
Allows custom manifest resource name generation tasks to plug | |
into the build process | |
======================================================================= | |
--> | |
<PropertyGroup> | |
<CreateCustomManifestResourceNamesDependsOn /> | |
</PropertyGroup> | |
<Target Name="CreateCustomManifestResourceNames" DependsOnTargets="$(CreateCustomManifestResourceNamesDependsOn)" /> | |
<!-- | |
============================================================ | |
ResGen | |
Run GenerateResource on the given resx files. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<ResGenDependsOn>ResolveAssemblyReferences;SplitResourcesByCulture;BeforeResGen;CoreResGen;AfterResGen</ResGenDependsOn> | |
<CoreResGenDependsOn>FindReferenceAssembliesForReferences</CoreResGenDependsOn> | |
<UseSourcePath Condition="'$(UseSourcePath)'==''">true</UseSourcePath> | |
<ResGenExecuteAsTool Condition="'$(ResGenExecuteAsTool)'==''">false</ResGenExecuteAsTool> | |
</PropertyGroup> | |
<Target Name="ResGen" DependsOnTargets="$(ResGenDependsOn)" /> | |
<!-- | |
============================================================ | |
BeforeResGen | |
Redefine this target in your project in order to run tasks just before Resgen. | |
============================================================ | |
--> | |
<Target Name="BeforeResGen" /> | |
<!-- | |
============================================================ | |
AfterResGen | |
Redefine this target in your project in order to run tasks just after Resgen. | |
============================================================ | |
--> | |
<Target Name="AfterResGen" /> | |
<!-- | |
============================================================ | |
CoreResGen | |
============================================================ | |
--> | |
<Target Name="CoreResGen" DependsOnTargets="$(CoreResGenDependsOn)"> | |
<ItemGroup> | |
<_Temporary Remove="@(_Temporary)" /> | |
</ItemGroup> | |
<PropertyGroup> | |
<GenerateResourceMSBuildArchitecture Condition="'$(GenerateResourceMSBuildArchitecture)' == ''">$(PlatformTargetAsMSBuildArchitecture)</GenerateResourceMSBuildArchitecture> | |
<ResgenToolPath Condition="'$(ResgenToolPath)' == ''">$(TargetFrameworkSDKToolsDirectory)</ResgenToolPath> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetFrameworkAsMSBuildRuntime)' != '' and '$(GenerateResourceMSBuildArchitecture)' != ''"> | |
<!-- In the general case, we want to fail to run the task if the task host it's requesting doesn't exist, because we'd rather let the | |
user know there's something wrong than just silently generate something that's probably not quite right. However, in a few | |
circumstances, there are tasks that are already aware of runtime / bitness concerns, in which case even if we go ahead and run | |
the more recent version of the task, it should be able to generate something correct. GenerateResource is one such task, so | |
we check for the existence of the targeted task host so that we can use it preferentially, but if it can't be found, we'll fall | |
back to the current task since it's still mostly correct. | |
In particular, we need to do this because otherwise people with Dev10 on a machine that they upgrade to Win8 will be broken: | |
they'll have ResGen from the 7.0A SDK installed, so launching ResGen will still work, but the CLR2 task host is only installed by | |
the 8.0A SDK, which they won't have installed, and thus without this fallback mechanism, their projects targeting v3.5 will | |
suddenly start failing to build.--> | |
<GenerateResourceMSBuildRuntime Condition="'$(GenerateResourceMSBuildRuntime)' == '' and
 $([MSBuild]::DoesTaskHostExist(`$(TargetFrameworkAsMSBuildRuntime)`, `$(GenerateResourceMSBuildArchitecture)`))">$(TargetFrameworkAsMSBuildRuntime)</GenerateResourceMSBuildRuntime> | |
<!-- If the targeted runtime doesn't exist, fall back to current --> | |
<GenerateResourceMSBuildRuntime Condition="'$(GenerateResourceMSBuildRuntime)' == ''">CurrentRuntime</GenerateResourceMSBuildRuntime> | |
</PropertyGroup> | |
<!-- 4.0 task has some new parameters that we want to make use of if we're targeting 4.0 --> | |
<GenerateResource Sources="@(EmbeddedResource)" UseSourcePath="$(UseSourcePath)" References="@(ReferencePathWithRefAssemblies)" AdditionalInputs="$(MSBuildAllProjects)" NeverLockTypeAssemblies="$(GenerateResourceNeverLockTypeAssemblies)" StateFile="$(IntermediateOutputPath)$(MSBuildProjectFile).GenerateResource.Cache" StronglyTypedClassName="%(EmbeddedResource.StronglyTypedClassName)" StronglyTypedFileName="%(EmbeddedResource.StronglyTypedFileName)" StronglyTypedLanguage="%(EmbeddedResource.StronglyTypedLanguage)" StronglyTypedNamespace="%(EmbeddedResource.StronglyTypedNamespace)" StronglyTypedManifestPrefix="%(EmbeddedResource.StronglyTypedManifestPrefix)" PublicClass="%(EmbeddedResource.PublicClass)" OutputResources="@(EmbeddedResource->'$(IntermediateOutputPath)%(ManifestResourceName).resources')" Condition="'%(EmbeddedResource.Type)' == 'Resx' and '%(EmbeddedResource.GenerateResource)' != 'false' and '$(GenerateResourceMSBuildRuntime)' != 'CLR2'" SdkToolsPath="$(ResgenToolPath)" ExecuteAsTool="$(ResGenExecuteAsTool)" EnvironmentVariables="$(ResGenEnvironment)" MSBuildRuntime="$(GenerateResourceMSBuildRuntime)" MSBuildArchitecture="$(GenerateResourceMSBuildArchitecture)"> | |
<Output TaskParameter="FilesWritten" ItemName="FileWrites" /> | |
<Output TaskParameter="StronglyTypedFileName" ItemName="Compile" /> | |
<!-- Gather Sources as an output since it will contain OutputResource metadata indicating the final output resource that it was compiled into --> | |
<Output TaskParameter="Sources" ItemName="_Temporary" /> | |
</GenerateResource> | |
<!-- But we can't use those parameters if we're targeting 3.5, since we're using the 3.5 task --> | |
<GenerateResource Sources="@(EmbeddedResource)" UseSourcePath="$(UseSourcePath)" References="@(ReferencePath)" AdditionalInputs="$(MSBuildAllProjects)" NeverLockTypeAssemblies="$(GenerateResourceNeverLockTypeAssemblies)" StateFile="$(IntermediateOutputPath)$(MSBuildProjectFile).GenerateResource.Cache" StronglyTypedClassName="%(EmbeddedResource.StronglyTypedClassName)" StronglyTypedFileName="%(EmbeddedResource.StronglyTypedFileName)" StronglyTypedLanguage="%(EmbeddedResource.StronglyTypedLanguage)" StronglyTypedNamespace="%(EmbeddedResource.StronglyTypedNamespace)" StronglyTypedManifestPrefix="%(EmbeddedResource.StronglyTypedManifestPrefix)" PublicClass="%(EmbeddedResource.PublicClass)" OutputResources="@(EmbeddedResource->'$(IntermediateOutputPath)%(ManifestResourceName).resources')" MSBuildRuntime="$(GenerateResourceMSBuildRuntime)" MSBuildArchitecture="$(GenerateResourceMSBuildArchitecture)" Condition="'%(EmbeddedResource.Type)' == 'Resx' and '%(EmbeddedResource.GenerateResource)' != 'false' and '$(GenerateResourceMSBuildRuntime)' == 'CLR2'"> | |
<Output TaskParameter="FilesWritten" ItemName="FileWrites" /> | |
<Output TaskParameter="StronglyTypedFileName" ItemName="Compile" /> | |
<!-- Gather Sources as an output since it will contain OutputResource metadata indicating the final output resource that it was compiled into --> | |
<Output TaskParameter="Sources" ItemName="_Temporary" /> | |
</GenerateResource> | |
<ItemGroup> | |
<EmbeddedResource Remove="@(_Temporary)" /> | |
<!-- Add back the Sources list (with OutputResource metadata) that we output from GenerateResource into EmbeddedResource --> | |
<EmbeddedResource Include="@(_Temporary)" /> | |
<_Temporary Remove="@(_Temporary)" /> | |
<!-- EMITTED FOR COMPATIBILITY REASONS ONLY. CONSUME EMBEDDEDRESOURCE INSTEAD --> | |
<ManifestResourceWithNoCulture Include="@(EmbeddedResource->'%(OutputResource)')" Condition="'%(EmbeddedResource.WithCulture)'=='false' and '%(EmbeddedResource.Type)' == 'Resx'"> | |
<EmittedForCompatibilityOnly>true</EmittedForCompatibilityOnly> | |
</ManifestResourceWithNoCulture> | |
<ManifestNonResxWithNoCultureOnDisk Include="@(EmbeddedResource)" Condition="'%(EmbeddedResource.WithCulture)'=='false' and '%(EmbeddedResource.Type)' == 'Non-Resx'"> | |
<EmittedForCompatibilityOnly>true</EmittedForCompatibilityOnly> | |
</ManifestNonResxWithNoCultureOnDisk> | |
<!-- EMITTED FOR COMPATIBILITY REASONS ONLY. CONSUME EMBEDDEDRESOURCE INSTEAD --> | |
<ManifestResourceWithCulture Include="@(EmbeddedResource->'%(OutputResource)')" Condition="'%(EmbeddedResource.WithCulture)'=='true' and '%(EmbeddedResource.Type)' == 'Resx'"> | |
<EmittedForCompatibilityOnly>true</EmittedForCompatibilityOnly> | |
</ManifestResourceWithCulture> | |
<ManifestNonResxWithCultureOnDisk Include="@(EmbeddedResource)" Condition="'%(EmbeddedResource.WithCulture)'=='true' and '%(EmbeddedResource.Type)' == 'Non-Resx'"> | |
<EmittedForCompatibilityOnly>true</EmittedForCompatibilityOnly> | |
</ManifestNonResxWithCultureOnDisk> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
CompileLicxFiles | |
Compile .licx files (containing information about licensed controls used by the application) into .licenses files. | |
[IN] | |
@(_LicxFile) - The list of .licx files in the project (usually there will be just one) | |
[OUT] | |
@(CompiledLicenseFile) - The list of compiled .licenses files (there will be just one) | |
============================================================ | |
--> | |
<PropertyGroup> | |
<CompileLicxFilesDependsOn /> | |
</PropertyGroup> | |
<Target Name="CompileLicxFiles" Condition="'@(_LicxFile)'!=''" DependsOnTargets="$(CompileLicxFilesDependsOn)" Inputs="$(MSBuildAllProjects);@(_LicxFile);@(ReferencePath);@(ReferenceDependencyPaths)" Outputs="$(IntermediateOutputPath)$(TargetFileName).licenses"> | |
<PropertyGroup> | |
<LCMSBuildArchitecture Condition="'$(LCMSBuildArchitecture)' == ''">$(PlatformTargetAsMSBuildArchitecture)</LCMSBuildArchitecture> | |
</PropertyGroup> | |
<LC Sources="@(_LicxFile)" LicenseTarget="$(TargetFileName)" OutputDirectory="$(IntermediateOutputPath)" OutputLicense="$(IntermediateOutputPath)$(TargetFileName).licenses" ReferencedAssemblies="@(ReferencePath);@(ReferenceDependencyPaths)" NoLogo="$(NoLogo)" ToolPath="$(LCToolPath)" SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" EnvironmentVariables="$(LCEnvironment)" MSBuildArchitecture="$(LCMSBuildArchitecture)" TargetFrameworkVersion="$(TargetFrameworkVersion)"> | |
<Output TaskParameter="OutputLicense" ItemName="CompiledLicenseFile" /> | |
<Output TaskParameter="OutputLicense" ItemName="FileWrites" /> | |
</LC> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
ResolveKeySource Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
ResolveKeySource | |
Resolve the strong name key used to sign the assembly as well as the certificate used to | |
sign the ClickOnce manifests. | |
[IN] | |
$(AssemblyOriginatorKeyFile) - The file used to sign the assembly (.snk or .pfx) | |
$(ManifestCertificateThumbprint) - The thumbprint used to locate the certificate in the | |
user's certificate store. | |
$(ManifestKeyFile) - The key file that contains the certificate in case the | |
certificate is not in the user's store. | |
[OUT] | |
$(ResolvedAssemblyKeyFile) - Key used to sign the assembly | |
$(_DeploymentResolvedManifestCertificateThumbprint) - Certificate used to sign the manifests | |
============================================================ | |
--> | |
<Target Name="ResolveKeySource" Condition="$(SignManifests) == 'true' or $(SignAssembly) == 'true'"> | |
<ResolveKeySource KeyFile="$(AssemblyOriginatorKeyFile)" CertificateThumbprint="$(ManifestCertificateThumbprint)" CertificateFile="$(ManifestKeyFile)" SuppressAutoClosePasswordPrompt="$(BuildingInsideVisualStudio)" ShowImportDialogDespitePreviousFailures="$(BuildingProject)" ContinueOnError="!$(BuildingProject)"> | |
<Output TaskParameter="ResolvedKeyFile" PropertyName="KeyOriginatorFile" Condition=" '$(SignAssembly)' == 'true' " /> | |
<Output TaskParameter="ResolvedKeyContainer" PropertyName="KeyContainerName" Condition=" '$(SignAssembly)' == 'true' " /> | |
<Output TaskParameter="ResolvedThumbprint" PropertyName="_DeploymentResolvedManifestCertificateThumbprint" Condition=" '$(SignManifests)' == 'true' " /> | |
</ResolveKeySource> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
Compile Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
Compile | |
============================================================ | |
--> | |
<PropertyGroup> | |
<CompileDependsOn> | |
ResolveReferences; | |
ResolveKeySource; | |
SetWin32ManifestProperties; | |
FindReferenceAssembliesForReferences; | |
_GenerateCompileInputs; | |
BeforeCompile; | |
_TimeStampBeforeCompile; | |
_GenerateCompileDependencyCache; | |
CoreCompile; | |
_TimeStampAfterCompile; | |
AfterCompile; | |
</CompileDependsOn> | |
</PropertyGroup> | |
<Target Name="Compile" DependsOnTargets="$(CompileDependsOn)" /> | |
<!-- | |
============================================================ | |
_GenerateCompileInputs | |
Create the _CoreCompileResourceInputs list of inputs to the CoreCompile target. | |
============================================================ | |
--> | |
<Target Name="_GenerateCompileInputs"> | |
<Warning Condition="'@(ManifestResourceWithNoCulture)'!='' and '%(ManifestResourceWithNoCulture.EmittedForCompatibilityOnly)'==''" Code="MSB9004" Text="ManifestResourceWithNoCulture item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='false', Type='Resx', and optional LogicalName." /> | |
<Warning Condition="'@(ManifestNonResxWithNoCultureOnDisk)'!='' and '%(ManifestNonResxWithNoCultureOnDisk.EmittedForCompatibilityOnly)'==''" Code="MSB9005" Text="ManifestNonResxWithNoCultureOnDisk item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='false', Type='Non-Resx', and optional LogicalName." /> | |
<ItemGroup> | |
<!-- _CoreCompileResourceInputs is the list of TLDA inputs that should trigger CoreCompile, and are listed as inputs to that target --> | |
<_CoreCompileResourceInputs Include="@(EmbeddedResource->'%(OutputResource)')" Condition="'%(EmbeddedResource.WithCulture)' == 'false' and '%(EmbeddedResource.Type)' == 'Resx'" /> | |
<_CoreCompileResourceInputs Include="@(EmbeddedResource)" Condition="'%(EmbeddedResource.WithCulture)' == 'false' and '%(EmbeddedResource.Type)' == 'Non-Resx' " /> | |
<!-- CONSUMED FOR COMPATIBILITY REASONS ONLY. EMIT EMBEDDEDRESOURCE INSTEAD --> | |
<_CoreCompileResourceInputs Include="@(ManifestResourceWithNoCulture)" Condition="'%(ManifestResourceWithNoCulture.EmittedForCompatibilityOnly)'==''"> | |
<Type>Resx</Type> | |
<WithCulture>false</WithCulture> | |
</_CoreCompileResourceInputs> | |
<_CoreCompileResourceInputs Include="@(ManifestNonResxWithNoCultureOnDisk)" Condition="'%(ManifestNonResxWithNoCultureOnDisk.EmittedForCompatibilityOnly)'==''"> | |
<Type>Non-Resx</Type> | |
<WithCulture>false</WithCulture> | |
</_CoreCompileResourceInputs> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
GenerateTargetFrameworkMonikerAttribute | |
Emit the target framework moniker attribute as a code fragment into a temporary source file for the compiler. | |
============================================================ | |
--> | |
<PropertyGroup Condition="'$(TargetFrameworkMoniker)' != ''"> | |
<!-- Do not clean if we are going to default the path to the temp directory --> | |
<TargetFrameworkMonikerAssemblyAttributesFileClean Condition="'$(TargetFrameworkMonikerAssemblyAttributesFileClean)' == '' and '$(TargetFrameworkMonikerAssemblyAttributesPath)' != ''">true</TargetFrameworkMonikerAssemblyAttributesFileClean> | |
<TargetFrameworkMonikerAssemblyAttributesPath Condition="'$(TargetFrameworkMonikerAssemblyAttributesPath)' == ''">$([System.IO.Path]::Combine('$([System.IO.Path]::GetTempPath())','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath> | |
</PropertyGroup> | |
<PropertyGroup> | |
<GenerateTargetFrameworkAttribute Condition="'$(GenerateTargetFrameworkAttribute)' == '' and '$(TargetFrameworkMoniker)' != '' and '$(TargetingClr2Framework)' != 'true'">true</GenerateTargetFrameworkAttribute> | |
</PropertyGroup> | |
<ItemGroup Condition="'$(TargetFrameworkMonikerAssemblyAttributesFileClean)' == 'true'"> | |
<Clean Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" /> | |
</ItemGroup> | |
<Target Name="GenerateTargetFrameworkMonikerAttribute" BeforeTargets="BeforeCompile" DependsOnTargets="PrepareForBuild;GetReferenceAssemblyPaths" Inputs="$(MSBuildToolsPath)\Microsoft.Common.targets" Outputs="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(GenerateTargetFrameworkAttribute)' == 'true'"> | |
<!-- This is a file shared between projects so we have to take care to handle simultaneous writes (by ContinueOnError) | |
and a race between clean from one project and build from another (by not adding to FilesWritten so it doesn't clean) --> | |
<WriteLinesToFile File="$(TargetFrameworkMonikerAssemblyAttributesPath)" Lines="$(TargetFrameworkMonikerAssemblyAttributeText)" Overwrite="true" ContinueOnError="true" Condition="'@(Compile)' != '' and '$(TargetFrameworkMonikerAssemblyAttributeText)' != ''" /> | |
<ItemGroup Condition="'@(Compile)' != '' and '$(TargetFrameworkMonikerAssemblyAttributeText)' != ''"> | |
<Compile Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" /> | |
<!-- Do not put in FileWrites: this is a file shared between projects in %temp%, and cleaning it would create a race between projects during rebuild --> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
GenerateAdditionalSources | |
Emit any specified code fragments into a temporary source file for the compiler. | |
============================================================ | |
--> | |
<PropertyGroup Condition="'$(AssemblyAttributesPath)' != ''"> | |
<GenerateAdditionalSources Condition="'$(GenerateAdditionalSources)' == ''">true</GenerateAdditionalSources> | |
</PropertyGroup> | |
<ItemGroup Condition="'$(AssemblyAttributesPath)' != ''"> | |
<Clean Include="$(AssemblyAttributesPath)" Condition="'$(AssemblyAttributesFileClean)' != 'false'" /> | |
</ItemGroup> | |
<Target Name="GenerateAdditionalSources" BeforeTargets="BeforeCompile" DependsOnTargets="PrepareForBuild;GetReferenceAssemblyPaths" Inputs="$(MSBuildAllProjects)" Outputs="$(AssemblyAttributesPath)" Condition="'@(AssemblyAttributes)' != '' and '$(GenerateAdditionalSources)' == 'true'"> | |
<WriteCodeFragment AssemblyAttributes="@(AssemblyAttributes)" OutputFile="$(AssemblyAttributesPath)" Language="$(Language)"> | |
<Output TaskParameter="OutputFile" ItemName="Compile" /> | |
<Output TaskParameter="OutputFile" ItemName="FileWrites" /> | |
</WriteCodeFragment> | |
</Target> | |
<!-- | |
============================================================ | |
BeforeCompile | |
Redefine this target in your project in order to run tasks just before Compile. | |
============================================================ | |
--> | |
<Target Name="BeforeCompile" /> | |
<!-- | |
============================================================ | |
AfterCompile | |
Redefine this target in your project in order to run tasks just after Compile. | |
============================================================ | |
--> | |
<Target Name="AfterCompile" /> | |
<!-- | |
============================================================ | |
_TimeStampBeforeCompile | |
If post-build events are set to fire "OnOutputUpdated", then take before | |
and after timestamps so that we can compare them. | |
============================================================ | |
--> | |
<Target Name="_TimeStampBeforeCompile" Condition="'$(RunPostBuildEvent)'=='OnOutputUpdated' or ('$(RegisterForComInterop)'=='true' and '$(OutputType)'=='library')"> | |
<PropertyGroup> | |
<_AssemblyTimestampBeforeCompile>%(IntermediateAssembly.ModifiedTime)</_AssemblyTimestampBeforeCompile> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateCompileDependencyCache | |
Generate a file used to track compiler dependencies between incremental build | |
executions. This handles cases where items are added or removed from a glob (e.g. | |
<Compile Include="**\*.cs" />) and can't otherwise be detected with timestamp | |
comparisons. The file contains a hash of compiler inputs that are known to | |
contribute to incremental build inconsistencies. | |
============================================================ | |
--> | |
<Target Name="_GenerateCompileDependencyCache" DependsOnTargets="ResolveAssemblyReferences"> | |
<ItemGroup> | |
<CustomAdditionalCompileInputs Include="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" /> | |
<CoreCompileCache Include="@(Compile->'%(FullPath)')" /> | |
<CoreCompileCache Include="@(ReferencePath->'%(FullPath)')" /> | |
</ItemGroup> | |
<Hash ItemsToHash="@(CoreCompileCache)"> | |
<Output TaskParameter="HashResult" PropertyName="CoreCompileDependencyHash" /> | |
</Hash> | |
<WriteLinesToFile Lines="$(CoreCompileDependencyHash)" File="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" Overwrite="True" WriteOnlyWhenDifferent="True" /> | |
<ItemGroup> | |
<FileWrites Include="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_TimeStampAfterCompile | |
If post-build events are set to fire "OnOutputUpdated", then take before | |
and after timestamps so that we can compare them. | |
============================================================ | |
--> | |
<Target Name="_TimeStampAfterCompile" Condition="'$(RunPostBuildEvent)'=='OnOutputUpdated' or ('$(RegisterForComInterop)'=='true' and '$(OutputType)'=='library')"> | |
<PropertyGroup> | |
<_AssemblyTimestampAfterCompile>%(IntermediateAssembly.ModifiedTime)</_AssemblyTimestampAfterCompile> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
================================================================ | |
_ComputeNonExistentFileProperty | |
There are certain situations in which we want to always run the CoreCompile target (and | |
thus the Csc task), even if the timestamps of the outputs appear to be up-to-date on disk. | |
If we're inside the IDE during design-time, then the Csc/Vbc/Vjc task is simply being used to | |
initialize the host compiler, so we always want to run it. Also, if we're inside the IDE, and | |
the host compiler is responsible for doing the compilation during an actual build, we want to let | |
the host compiler determine whether the output is up-to-date, because there may be source files | |
in the IDE's in-memory buffers that we don't know about. | |
So, we always run the CoreCompile target if we're in the IDE, and either we're in design-time or | |
we're delegating to the host compiler for the actual build. | |
We compare against BuildOutOfProcess != true because we cannot assume that the build process will | |
have set BuildOutOfProcess to true or false. Therefore the default behavior should be to do the | |
legacy behavior seen before BuildingOutOfProcess was introduced if the property is not set. | |
================================================================ | |
--> | |
<Target Name="_ComputeNonExistentFileProperty" Condition="('$(BuildingInsideVisualStudio)' == 'true') and ('$(BuildingOutOfProcess)' != 'true') and (('$(BuildingProject)' == 'false') or ('$(UseHostCompilerIfAvailable)' == 'true'))"> | |
<PropertyGroup> | |
<NonExistentFile>__NonExistentSubDir__\__NonExistentFile__</NonExistentFile> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
GenerateSerializationAssemblies Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<_SGenDllName>$(TargetName).XmlSerializers.dll</_SGenDllName> | |
<_SGenDllCreated>false</_SGenDllCreated> | |
<_SGenGenerateSerializationAssembliesConfig>$(GenerateSerializationAssemblies)</_SGenGenerateSerializationAssembliesConfig> | |
<_SGenGenerateSerializationAssembliesConfig Condition="'$(GenerateSerializationAssemblies)' == ''">Auto</_SGenGenerateSerializationAssembliesConfig> | |
<_SGenGenerateSerializationAssembliesConfig Condition="'$(ConfigurationName)'=='Debug' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto'">Off</_SGenGenerateSerializationAssembliesConfig> | |
<SGenUseProxyTypes Condition="'$(SGenUseProxyTypes)' == ''">true</SGenUseProxyTypes> | |
<SGenUseKeep Condition="'$(SGenUseKeep)'==''">false</SGenUseKeep> | |
<SGenShouldGenerateSerializer Condition="'$(SGenShouldGenerateSerializer)' == ''">true</SGenShouldGenerateSerializer> | |
</PropertyGroup> | |
<!-- | |
============================================================ | |
GenerateSerializationAssemblies | |
Run GenerateSerializationAssemblies on the assembly produced by this build. | |
[IN] | |
@(BuildAssemblyName) - The assembly generated by this build. | |
@(BuildAssemblyPath) - The path where the assembly resides. | |
@(ReferencePath) - The list of references used by this assembly. | |
[OUT] | |
@(SerializationAssembly) - The path to the serialization assembly. Maybe we'll just append to an existing list. | |
============================================================ | |
--> | |
<Target Name="GenerateSerializationAssemblies" Condition="'$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')" DependsOnTargets="AssignTargetPaths;Compile;ResolveKeySource" Inputs="$(MSBuildAllProjects);@(IntermediateAssembly)" Outputs="$(IntermediateOutputPath)$(_SGenDllName)"> | |
<PropertyGroup> | |
<SGenMSBuildArchitecture Condition="'$(SGenMSBuildArchitecture)' == ''">$(PlatformTargetAsMSBuildArchitecture)</SGenMSBuildArchitecture> | |
</PropertyGroup> | |
<SGen BuildAssemblyName="$(TargetFileName)" BuildAssemblyPath="$(IntermediateOutputPath)" References="@(ReferencePath)" ShouldGenerateSerializer="$(SGenShouldGenerateSerializer)" UseProxyTypes="$(SGenUseProxyTypes)" UseKeep="$(SGenUseKeep)" KeyContainer="$(KeyContainerName)" KeyFile="$(KeyOriginatorFile)" DelaySign="$(DelaySign)" ToolPath="$(SGenToolPath)" SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" EnvironmentVariables="$(SGenEnvironment)" MSBuildArchitecture="$(SGenMSBuildArchitecture)" SerializationAssembly="$(IntermediateOutputPath)$(_SGenDllName)" Platform="$(SGenPlatformTarget)" Types="$(SGenSerializationTypes)"> | |
<Output TaskParameter="SerializationAssembly" ItemName="SerializationAssembly" /> | |
</SGen> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
CreateSatelliteAssemblies Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
CreateSatelliteAssemblies | |
Create one satellite assembly for every unique culture in the resources. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<CreateSatelliteAssembliesDependsOn> | |
_GenerateSatelliteAssemblyInputs; | |
ComputeIntermediateSatelliteAssemblies; | |
GenerateSatelliteAssemblies | |
</CreateSatelliteAssembliesDependsOn> | |
</PropertyGroup> | |
<Target Name="CreateSatelliteAssemblies" DependsOnTargets="$(CreateSatelliteAssembliesDependsOn)" /> | |
<!-- | |
============================================================ | |
_GenerateSatelliteAssemblyInputs | |
Create the _SatelliteAssemblyResourceInputs list of inputs to the CreateSatelliteAssemblies target. | |
============================================================ | |
--> | |
<Target Name="_GenerateSatelliteAssemblyInputs"> | |
<Warning Condition="'@(ManifestResourceWithCulture)'!='' and '%(ManifestResourceWithCulture.EmittedForCompatibilityOnly)'==''" Code="MSB9006" Text="ManifestResourceWithCulture item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='true', Type='Resx', and optional LogicalName." /> | |
<Warning Condition="'@(ManifestNonResxWithCultureOnDisk)'!='' and '%(ManifestNonResxWithCultureOnDisk.EmittedForCompatibilityOnly)'==''" Code="MSB9007" Text="ManifestNonResxWithCultureOnDisk item type is deprecated. Emit EmbeddedResource items instead, with metadata WithCulture='true', Type='Non-Resx', and optional LogicalName." /> | |
<ItemGroup> | |
<!-- _SatelliteAssemblyResourceInputs is the list of TLDA inputs that should trigger CreateSatelliteAssemblies, so listed as inputs to that target --> | |
<_SatelliteAssemblyResourceInputs Include="@(EmbeddedResource->'%(OutputResource)')" Condition="'%(EmbeddedResource.WithCulture)' == 'true' and '%(EmbeddedResource.Type)' == 'Resx'" /> | |
<_SatelliteAssemblyResourceInputs Include="@(EmbeddedResource)" Condition="'%(EmbeddedResource.WithCulture)' == 'true' and '%(EmbeddedResource.Type)' == 'Non-Resx'" /> | |
<!-- CONSUMED FOR COMPATIBILITY REASONS ONLY. EMIT EMBEDDEDRESOURCE INSTEAD --> | |
<_SatelliteAssemblyResourceInputs Include="@(ManifestResourceWithCulture)" Condition="'%(ManifestResourceWithCulture.EmittedForCompatibilityOnly)'==''"> | |
<Type>Resx</Type> | |
<WithCulture>true</WithCulture> | |
</_SatelliteAssemblyResourceInputs> | |
<_SatelliteAssemblyResourceInputs Include="@(ManifestNonResxWithCultureOnDisk)" Condition="'%(ManifestNonResxWithCultureOnDisk.EmittedForCompatibilityOnly)'==''"> | |
<Type>Non-Resx</Type> | |
<WithCulture>true</WithCulture> | |
</_SatelliteAssemblyResourceInputs> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
GenerateSatelliteAssemblies | |
Actually run al.exe to create the satellite assemblies. | |
============================================================ | |
--> | |
<Target Name="GenerateSatelliteAssemblies" Inputs="$(MSBuildAllProjects);@(_SatelliteAssemblyResourceInputs);$(IntermediateOutputPath)$(TargetName)$(TargetExt)" Outputs="$(IntermediateOutputPath)%(Culture)\$(TargetName).resources.dll" Condition="'@(_SatelliteAssemblyResourceInputs)' != '' and '$(MSBuildRuntimeType)' != 'Core'"> | |
<MakeDir Directories="@(EmbeddedResource->'$(IntermediateOutputPath)%(Culture)')" /> | |
<AL AlgorithmId="$(Satellite_AlgorithmId)" BaseAddress="$(Satellite_BaseAddress)" CompanyName="$(Satellite_CompanyName)" Configuration="$(Satellite_Configuration)" Copyright="$(Satellite_Copyright)" Culture="%(Culture)" DelaySign="$(DelaySign)" Description="$(Satellite_Description)" EmbedResources="@(_SatelliteAssemblyResourceInputs)" EnvironmentVariables="$(AlEnvironment)" EvidenceFile="$(Satellite_EvidenceFile)" FileVersion="$(Satellite_FileVersion)" Flags="$(Satellite_Flags)" GenerateFullPaths="$(Satellite_GenerateFullPaths)" KeyContainer="$(KeyContainerName)" KeyFile="$(KeyOriginatorFile)" LinkResources="@(Satellite_LinkResource)" MainEntryPoint="$(Satellite_MainEntryPoint)" OutputAssembly="$(IntermediateOutputPath)%(Culture)\$(TargetName).resources.dll" Platform="$(PlatformTarget)" ProductName="$(Satellite_ProductName)" ProductVersion="$(Satellite_ProductVersion)" ResponseFiles="@(AlResponseFile)" SourceModules="@(Satellite_SourceModule)" TargetType="$(Satellite_TargetType)" TemplateFile="$(IntermediateOutputPath)$(TargetName)$(TargetExt)" Title="$(Satellite_Title)" ToolPath="$(AlToolPath)" ToolExe="$(AlToolExe)" SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)" Trademark="$(Satellite_Trademark)" Version="$(Satellite_Version)" Win32Icon="$(Satellite_Win32Icon)" Win32Resource="$(Satellite_Win32Resource)"> | |
<Output TaskParameter="OutputAssembly" ItemName="FileWrites" /> | |
</AL> | |
</Target> | |
<!-- | |
============================================================ | |
ComputeIntermediateSatelliteAssemblies | |
Compute the paths to the intermediate satellite assemblies, | |
with culture attributes so we can copy them to the right place. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<ComputeIntermediateSatelliteAssembliesDependsOn> | |
CreateManifestResourceNames | |
</ComputeIntermediateSatelliteAssembliesDependsOn> | |
</PropertyGroup> | |
<Target Name="ComputeIntermediateSatelliteAssemblies" Condition="@(EmbeddedResource->'%(WithCulture)') != ''" DependsOnTargets="$(ComputeIntermediateSatelliteAssembliesDependsOn)"> | |
<ItemGroup> | |
<IntermediateSatelliteAssembliesWithTargetPath Include="$(IntermediateOutputPath)%(EmbeddedResource.Culture)\$(TargetName).resources.dll" Condition="'%(EmbeddedResource.Culture)' != ''"> | |
<Culture>%(EmbeddedResource.Culture)</Culture> | |
<TargetPath>%(EmbeddedResource.Culture)\$(TargetName).resources.dll</TargetPath> | |
</IntermediateSatelliteAssembliesWithTargetPath> | |
</ItemGroup> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
SetWin32ManifestProperties Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<EmbeddedWin32Manifest>$(Win32Manifest)</EmbeddedWin32Manifest> | |
</PropertyGroup> | |
<!-- | |
============================================================ | |
SetWin32ManifestProperties | |
Set Win32Manifest and EmbeddedManifest properties to be used later in the build. | |
============================================================ | |
--> | |
<Target Name="SetWin32ManifestProperties" Condition="'$(Win32Manifest)'==''" DependsOnTargets="ResolveComReferences;ResolveNativeReferences;_SetExternalWin32ManifestProperties;_SetEmbeddedWin32ManifestProperties" /> | |
<Target Name="_SetExternalWin32ManifestProperties" Condition="'$(GenerateClickOnceManifests)'=='true' or '@(NativeReference)'!='' or '@(ResolvedIsolatedComModules)'!=''"> | |
<PropertyGroup> | |
<!-- set _DeploymentBaseManifest property to the value of $(ApplicationManifest) if the property is set, | |
but use _DeploymentBaseManifestWithTargetPath item-group if the property is not set to support backwards | |
compat with earlier MSBuild versions when manifest files were determined by the item-group. If the newer | |
property is set though, prefer that one be used to specify the manifest. --> | |
<_DeploymentBaseManifest>$(ApplicationManifest)</_DeploymentBaseManifest> | |
<_DeploymentBaseManifest Condition="'$(_DeploymentBaseManifest)'==''">@(_DeploymentBaseManifestWithTargetPath)</_DeploymentBaseManifest> | |
<!-- when using external manifests, always set the NoWin32Manifest property to | |
true if there is no value set in the incoming project file so the | |
compilers that support manifest embedding know not to add | |
a manifest to their built assemblies --> | |
<NoWin32Manifest Condition="'$(NoWin32Manifest)'==''">true</NoWin32Manifest> | |
</PropertyGroup> | |
</Target> | |
<Target Name="_SetEmbeddedWin32ManifestProperties" Condition="'$(GenerateClickOnceManifests)'!='true' and '@(NativeReference)'=='' and '@(ResolvedIsolatedComModules)'==''"> | |
<PropertyGroup> | |
<EmbeddedWin32Manifest>$(ApplicationManifest)</EmbeddedWin32Manifest> | |
<Win32Manifest>$(ApplicationManifest)</Win32Manifest> | |
</PropertyGroup> | |
<GetFrameworkPath Condition="'$(ApplicationManifest)'=='' and '$(NoWin32Manifest)'!='true'"> | |
<Output TaskParameter="FrameworkVersion40Path" PropertyName="_FrameworkVersion40Path" /> | |
</GetFrameworkPath> | |
<PropertyGroup> | |
<EmbeddedWin32Manifest Condition="'$(ApplicationManifest)'=='' and '$(NoWin32Manifest)'!='true' and Exists('$(_FrameworkVersion40Path)\default.win32manifest')">$(_FrameworkVersion40Path)\default.win32manifest</EmbeddedWin32Manifest> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
GenerateManifests Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
GenerateManifests | |
Generates ClickOnce application and deployment manifests or a native manifest. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<GenerateManifestsDependsOn> | |
SetWin32ManifestProperties; | |
GenerateApplicationManifest; | |
GenerateDeploymentManifest | |
</GenerateManifestsDependsOn> | |
</PropertyGroup> | |
<!-- | |
============================================================ | |
_GenerateResolvedDeploymentManifestEntryPoint | |
Use the ResolveManifestFiles to generate the GenerateResolvedDeploymentManifestEntryPoint | |
============================================================ | |
--> | |
<Target Name="_GenerateResolvedDeploymentManifestEntryPoint"> | |
<ItemGroup> | |
<_DeploymentPublishFileOfTypeManifestEntryPoint Include="@(PublishFile)" Condition="'%(FileType)'=='ManifestEntryPoint'" /> | |
</ItemGroup> | |
<ResolveManifestFiles TargetFrameworkVersion="$(TargetFrameworkVersion)" SigningManifests="$(SignManifests)" DeploymentManifestEntryPoint="@(ApplicationManifest)" PublishFiles="@(_DeploymentPublishFileOfTypeManifestEntryPoint)"> | |
<Output TaskParameter="OutputDeploymentManifestEntryPoint" ItemName="_DeploymentResolvedDeploymentManifestEntryPoint" /> | |
</ResolveManifestFiles> | |
</Target> | |
<Target Name="GenerateManifests" Condition="'$(GenerateClickOnceManifests)'=='true' or '@(NativeReference)'!='' or '@(ResolvedIsolatedComModules)'!='' or '$(GenerateAppxManifest)' == 'true'" DependsOnTargets="$(GenerateManifestsDependsOn)" /> | |
<!-- | |
============================================================ | |
GenerateApplicationManifest | |
Generates a ClickOnce or native application manifest. | |
An application manifest specifies declarative application identity, dependency and security information. | |
[IN] | |
$(_DeploymentBaseManifest) - The base app.manifest from project. | |
@(ResolvedIsolatedComModules) - The list of COM references to be isolated as reg-free COM dependencies for native assembly loader. | |
@(_DeploymentManifestFiles) - The list of loose files (content, pdb, xml, etc.) for ClickOnce. | |
@(_DeploymentManifestDependencies) - The list of application dependencies (typically this is the set of assembly dependencies in bin\) for ClickOnce. | |
@(AppConfigWithTargetPath) - App config file, if present. | |
$(_DeploymentManifestType) - Type of manifest to be generated, either "Native" or "ClickOnce". | |
[OUT] | |
@(ApplicationManifest) - Generated native or ClickOnce application manifest, i.e. WindowsApplication1.exe.manifest | |
============================================================ | |
--> | |
<Target Name="GenerateApplicationManifest" DependsOnTargets="
 _DeploymentComputeNativeManifestInfo;
 _DeploymentComputeClickOnceManifestInfo;
 ResolveComReferences;
 ResolveNativeReferences;
 _GenerateResolvedDeploymentManifestEntryPoint" Inputs="
 $(MSBuildAllProjects);
 @(AppConfigWithTargetPath);
 $(_DeploymentBaseManifest);
 @(ResolvedIsolatedComModules);
 @(_DeploymentManifestDependencies);
 @(_DeploymentResolvedManifestEntryPoint);
 @(_DeploymentManifestFiles)" Outputs="@(ApplicationManifest)"> | |
<RequiresFramework35SP1Assembly ReferencedAssemblies="@(Reference)" ErrorReportUrl="$(_DeploymentFormattedErrorReportUrl)" TargetFrameworkVersion="$(TargetFrameworkVersion)" CreateDesktopShortcut="$(CreateDesktopShortcut)" SigningManifests="$(SignManifests)" Assemblies="@(_DeploymentManifestDependencies)" DeploymentManifestEntryPoint="@(_DeploymentResolvedDeploymentManifestEntryPoint)" EntryPoint="@(_DeploymentResolvedManifestEntryPoint)" Files="@(_DeploymentManifestFiles)" SuiteName="$(SuiteName)"> | |
<Output TaskParameter="RequiresMinimumFramework35SP1" PropertyName="_DeploymentRequiresMinimumFramework35SP1" /> | |
</RequiresFramework35SP1Assembly> | |
<GenerateApplicationManifest AssemblyName="$(_DeploymentApplicationManifestIdentity)" AssemblyVersion="$(_DeploymentManifestVersion)" ConfigFile="@(AppConfigWithTargetPath)" ClrVersion="$(ClrVersion)" Dependencies="@(_DeploymentManifestDependencies)" Description="$(Description)" EntryPoint="@(_DeploymentResolvedManifestEntryPoint)" ErrorReportUrl="$(_DeploymentFormattedErrorReportUrl)" FileAssociations="@(FileAssociation)" Files="@(_DeploymentManifestFiles)" HostInBrowser="$(HostInBrowser)" IconFile="@(_DeploymentManifestIconFile)" InputManifest="$(_DeploymentBaseManifest)" IsolatedComReferences="@(ResolvedIsolatedComModules)" ManifestType="$(_DeploymentManifestType)" MaxTargetPath="$(MaxTargetPath)" OutputManifest="@(ApplicationManifest)" OSVersion="$(OSVersion)" Platform="$(PlatformTarget)" Product="$(ProductName)" Publisher="$(PublisherName)" RequiresMinimumFramework35SP1="$(_DeploymentRequiresMinimumFramework35SP1)" SuiteName="$(SuiteName)" SupportUrl="$(_DeploymentFormattedSupportUrl)" TargetCulture="$(TargetCulture)" TargetFrameworkSubset="$(TargetFrameworkSubset)" TargetFrameworkProfile="$(TargetFrameworkProfile)" TargetFrameworkVersion="$(TargetFrameworkVersion)" TrustInfoFile="@(_DeploymentIntermediateTrustInfoFile)" UseApplicationTrust="$(UseApplicationTrust)"> | |
<Output TaskParameter="OutputManifest" ItemName="FileWrites" /> | |
</GenerateApplicationManifest> | |
<PropertyGroup> | |
<_DeploymentCopyApplicationManifest>true</_DeploymentCopyApplicationManifest> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_DeploymentComputeNativeManifestInfo | |
Compute info for native manifest generation | |
============================================================ | |
--> | |
<Target Name="_DeploymentComputeNativeManifestInfo" Condition="'$(GenerateClickOnceManifests)'!='true'"> | |
<!-- Create list of items for manifest generation --> | |
<ResolveManifestFiles NativeAssemblies="@(NativeReferenceFile);@(_DeploymentNativePrerequisite)"> | |
<Output TaskParameter="OutputAssemblies" ItemName="_DeploymentManifestDependencies" /> | |
</ResolveManifestFiles> | |
<PropertyGroup> | |
<_DeploymentManifestType>Native</_DeploymentManifestType> | |
</PropertyGroup> | |
<!-- Obtain manifest version from the built assembly --> | |
<GetAssemblyIdentity AssemblyFiles="@(IntermediateAssembly)"> | |
<Output TaskParameter="Assemblies" ItemName="_IntermediateAssemblyIdentity" /> | |
</GetAssemblyIdentity> | |
<PropertyGroup> | |
<_DeploymentManifestVersion>@(_IntermediateAssemblyIdentity->'%(Version)')</_DeploymentManifestVersion> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_DeploymentComputeClickOnceManifestInfo | |
Compute info for ClickOnce manifest generation | |
============================================================ | |
--> | |
<Target Name="_DeploymentComputeClickOnceManifestInfo" Condition="'$(GenerateClickOnceManifests)'=='true'" DependsOnTargets="
 CleanPublishFolder;
 _DeploymentGenerateTrustInfo"> | |
<!-- Grab just the serialization assemblies for a referenced assembly. There may also be a symbols file in ReferenceRelatedPaths --> | |
<ItemGroup> | |
<_SGenDllsRelatedToCurrentDll Include="@(_ReferenceSerializationAssemblyPaths->'%(FullPath)')" Condition="'%(Extension)' == '.dll'" /> | |
<_SGenDllsRelatedToCurrentDll Include="@(SerializationAssembly->'%(FullPath)')" Condition="'%(Extension)' == '.dll'" /> | |
</ItemGroup> | |
<!-- Flag primary dependencies-certain warnings emitted during application manifest generation apply only to them. --> | |
<ItemGroup> | |
<_DeploymentReferencePaths Include="@(ReferencePath)"> | |
<IsPrimary>true</IsPrimary> | |
</_DeploymentReferencePaths> | |
</ItemGroup> | |
<!-- Copy the application executable from Obj folder to app.publish folder. | |
This is being done to avoid Windows Forms designer memory issues that can arise while operating directly on files located in Obj directory. --> | |
<Copy SourceFiles="@(_DeploymentManifestEntryPoint)" DestinationFolder="$(PublishDir)"> | |
<Output TaskParameter="DestinationFiles" ItemName="_DeploymentClickOnceApplicationExecutable" /> | |
</Copy> | |
<!-- Sign the application executable located in app.publish folder. Signing this file is done to comply with SmartScreen. --> | |
<SignFile CertificateThumbprint="$(_DeploymentResolvedManifestCertificateThumbprint)" TimestampUrl="$(ManifestTimestampUrl)" SigningTarget="@(_DeploymentClickOnceApplicationExecutable)" Condition="'$(_DeploymentResolvedManifestCertificateThumbprint)'!='' and '$(_DeploymentSignClickOnceManifests)'=='true' and '$(TargetExt)' == '.exe'" /> | |
<!-- Create list of items for manifest generation --> | |
<ResolveManifestFiles TargetFrameworkVersion="$(TargetFrameworkVersion)" SigningManifests="$(SignManifests)" EntryPoint="@(_DeploymentClickOnceApplicationExecutable)" ExtraFiles="@(_DebugSymbolsIntermediatePath);$(IntermediateOutputPath)$(TargetName).xml;@(_ReferenceRelatedPaths)" Files="@(ContentWithTargetPath);@(_DeploymentManifestIconFile);@(AppConfigWithTargetPath)" ManagedAssemblies="@(_DeploymentReferencePaths);@(ReferenceDependencyPaths);@(_SGenDllsRelatedToCurrentDll);@(SerializationAssembly)" NativeAssemblies="@(NativeReferenceFile);@(_DeploymentNativePrerequisite)" PublishFiles="@(PublishFile)" SatelliteAssemblies="@(IntermediateSatelliteAssembliesWithTargetPath);@(ReferenceSatellitePaths)" TargetCulture="$(TargetCulture)"> | |
<Output TaskParameter="OutputAssemblies" ItemName="_DeploymentManifestDependencies" /> | |
<Output TaskParameter="OutputFiles" ItemName="_DeploymentManifestFiles" /> | |
<Output TaskParameter="OutputEntryPoint" ItemName="_DeploymentResolvedManifestEntryPoint" /> | |
</ResolveManifestFiles> | |
<PropertyGroup> | |
<_DeploymentManifestType>ClickOnce</_DeploymentManifestType> | |
</PropertyGroup> | |
<!-- Obtain manifest version from ApplicationVersion and ApplicationRevision properties --> | |
<FormatVersion Version="$(ApplicationVersion)" Revision="$(ApplicationRevision)"> | |
<Output TaskParameter="OutputVersion" PropertyName="_DeploymentManifestVersion" /> | |
</FormatVersion> | |
<FormatUrl InputUrl="$(_DeploymentUrl)"> | |
<Output TaskParameter="OutputUrl" PropertyName="_DeploymentFormattedDeploymentUrl" /> | |
</FormatUrl> | |
<FormatUrl InputUrl="$(SupportUrl)"> | |
<Output TaskParameter="OutputUrl" PropertyName="_DeploymentFormattedSupportUrl" /> | |
</FormatUrl> | |
<FormatUrl InputUrl="$(ErrorReportUrl)"> | |
<Output TaskParameter="OutputUrl" PropertyName="_DeploymentFormattedErrorReportUrl" /> | |
</FormatUrl> | |
</Target> | |
<!-- | |
============================================================ | |
_DeploymentGenerateTrustInfo | |
Generates the application permission set for inclusion in the generated ClickOnce application manifest. | |
============================================================ | |
--> | |
<Target Name="_DeploymentGenerateTrustInfo" Condition="'$(TargetZone)'!=''" Inputs="
 $(MSBuildAllProjects);
 $(_DeploymentBaseManifest);
 " Outputs="@(_DeploymentIntermediateTrustInfoFile)"> | |
<GenerateTrustInfo BaseManifest="$(_DeploymentBaseManifest)" ApplicationDependencies="@(ReferencePath);@(ReferenceDependencyPaths)" ExcludedPermissions="$(ExcludedPermissions)" TargetFrameworkMoniker="$(TargetFrameworkMoniker)" TargetZone="$(TargetZone)" TrustInfoFile="@(_DeploymentIntermediateTrustInfoFile)"> | |
<Output TaskParameter="TrustInfoFile" ItemName="FileWrites" /> | |
</GenerateTrustInfo> | |
</Target> | |
<!-- | |
============================================================ | |
GenerateDeploymentManifest | |
Generates a ClickOnce deployment manifest. | |
An deployment manifest specifies declarative application identity and application update information. | |
============================================================ | |
--> | |
<Target Name="GenerateDeploymentManifest" DependsOnTargets="GenerateApplicationManifest" Inputs="
 $(MSBuildAllProjects);
 @(ApplicationManifest)
 " Outputs="@(DeployManifest)"> | |
<GenerateDeploymentManifest AssemblyName="$(_DeploymentDeployManifestIdentity)" AssemblyVersion="$(_DeploymentManifestVersion)" CreateDesktopShortcut="$(CreateDesktopShortcut)" DeploymentUrl="$(_DeploymentFormattedDeploymentUrl)" Description="$(Description)" DisallowUrlActivation="$(DisallowUrlActivation)" EntryPoint="@(_DeploymentResolvedDeploymentManifestEntryPoint)" ErrorReportUrl="$(_DeploymentFormattedErrorReportUrl)" Install="$(Install)" MapFileExtensions="$(MapFileExtensions)" MaxTargetPath="$(MaxTargetPath)" MinimumRequiredVersion="$(_DeploymentBuiltMinimumRequiredVersion)" OutputManifest="@(DeployManifest)" Platform="$(PlatformTarget)" Product="$(ProductName)" Publisher="$(PublisherName)" SuiteName="$(SuiteName)" SupportUrl="$(_DeploymentFormattedSupportUrl)" TargetCulture="$(TargetCulture)" TargetFrameworkVersion="$(TargetFrameworkVersion)" TargetFrameworkMoniker="$(TargetFrameworkMoniker)" TrustUrlParameters="$(TrustUrlParameters)" UpdateEnabled="$(UpdateEnabled)" UpdateInterval="$(_DeploymentBuiltUpdateInterval)" UpdateMode="$(UpdateMode)" UpdateUnit="$(_DeploymentBuiltUpdateIntervalUnits)" Condition="'$(GenerateClickOnceManifests)'=='true'"> | |
<Output TaskParameter="OutputManifest" ItemName="FileWrites" /> | |
</GenerateDeploymentManifest> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
PrepareForRun Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<SkipCopyUnchangedFiles Condition="'$(SkipCopyUnchangedFiles)' == ''">true</SkipCopyUnchangedFiles> | |
<UseCommonOutputDirectory Condition="'$(UseCommonOutputDirectory)' == ''">false</UseCommonOutputDirectory> | |
</PropertyGroup> | |
<!-- | |
============================================================ | |
PrepareForRun | |
Copy the build outputs to the final directory if they have changed. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PrepareForRunDependsOn> | |
CopyFilesToOutputDirectory | |
</PrepareForRunDependsOn> | |
</PropertyGroup> | |
<Target Name="PrepareForRun" DependsOnTargets="$(PrepareForRunDependsOn)" /> | |
<!-- | |
============================================================ | |
CopyFilesToOutputDirectory | |
Copy all build outputs, satellites and other necessary files to the final directory. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<!-- By default we're not using Hard or Symbolic Links to copy to the output directory, and never when building in VS --> | |
<CreateHardLinksForCopyAdditionalFilesIfPossible Condition="'$(BuildingInsideVisualStudio)' == 'true' or '$(CreateHardLinksForCopyAdditionalFilesIfPossible)' == ''">false</CreateHardLinksForCopyAdditionalFilesIfPossible> | |
<CreateSymbolicLinksForCopyAdditionalFilesIfPossible Condition="'$(BuildingInsideVisualStudio)' == 'true' or '$(CreateSymbolicLinksForCopyAdditionalFilesIfPossible)' == ''">false</CreateSymbolicLinksForCopyAdditionalFilesIfPossible> | |
</PropertyGroup> | |
<Target Name="CopyFilesToOutputDirectory" DependsOnTargets="
 ComputeIntermediateSatelliteAssemblies;
 _CopyFilesMarkedCopyLocal;
 _CopySourceItemsToOutputDirectory;
 _CopyAppConfigFile;
 _CopyManifestFiles;
 _CheckForCompileOutputs;
 _SGenCheckForOutputs"> | |
<PropertyGroup> | |
<!-- By default we're not using Hard Links to copy to the output directory, and never when building in VS --> | |
<CreateHardLinksForCopyFilesToOutputDirectoryIfPossible Condition="'$(BuildingInsideVisualStudio)' == 'true' or '$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)' == ''">false</CreateHardLinksForCopyFilesToOutputDirectoryIfPossible> | |
<CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible Condition="'$(BuildingInsideVisualStudio)' == 'true' or '$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)' == ''">false</CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible> | |
</PropertyGroup> | |
<PropertyGroup> | |
<CopyBuildOutputToOutputDirectory Condition="'$(CopyBuildOutputToOutputDirectory)'==''">true</CopyBuildOutputToOutputDirectory> | |
<CopyOutputSymbolsToOutputDirectory Condition="'$(CopyOutputSymbolsToOutputDirectory)'==''">true</CopyOutputSymbolsToOutputDirectory> | |
</PropertyGroup> | |
<!-- Copy the build product (.dll or .exe). --> | |
<Copy SourceFiles="@(IntermediateAssembly)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)" Condition="'$(CopyBuildOutputToOutputDirectory)' == 'true' and '$(SkipCopyBuildProduct)' != 'true'"> | |
<Output TaskParameter="DestinationFiles" ItemName="MainAssembly" /> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
<!-- Copy the reference assembly build product (.dll or .exe). --> | |
<CopyRefAssembly SourcePath="@(IntermediateRefAssembly)" DestinationPath="$(TargetRefPath)" Condition="'$(ProduceReferenceAssembly)' == 'true' and '$(CopyBuildOutputToOutputDirectory)' == 'true' and '$(SkipCopyBuildProduct)' != 'true'"> | |
<Output TaskParameter="DestinationPath" ItemName="ReferenceAssembly" /> | |
<Output TaskParameter="DestinationPath" ItemName="FileWrites" /> | |
</CopyRefAssembly> | |
<Message Importance="High" Text="$(MSBuildProjectName) -> @(MainAssembly->'%(FullPath)')" Condition="'$(CopyBuildOutputToOutputDirectory)' == 'true' and '$(SkipCopyBuildProduct)'!='true'" /> | |
<!-- Copy the additional modules. --> | |
<Copy SourceFiles="@(AddModules)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyAdditionalFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyAdditionalFilesIfPossible)" Condition="'@(AddModules)' != ''"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
<!-- Copy the serialization assembly if it exists. --> | |
<Copy SourceFiles="$(IntermediateOutputPath)$(_SGenDllName)" DestinationFiles="$(OutDir)$(_SGenDllName)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)" Condition="'$(_SGenDllCreated)'=='true'"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
<!-- Copy the debug information file (.pdb), if any --> | |
<Copy SourceFiles="@(_DebugSymbolsIntermediatePath)" DestinationFiles="@(_DebugSymbolsOutputPath)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)" Condition="'$(_DebugSymbolsProduced)'=='true' and '$(SkipCopyingSymbolsToOutputDirectory)' != 'true' and '$(CopyOutputSymbolsToOutputDirectory)'=='true'"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
<!-- Copy the resulting XML documentation file, if any. --> | |
<Copy SourceFiles="@(DocFileItem)" DestinationFiles="@(FinalDocFile)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)" Condition="'$(_DocumentationFileProduced)'=='true'"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
<!-- Copy satellite assemblies. --> | |
<Copy SourceFiles="@(IntermediateSatelliteAssembliesWithTargetPath)" DestinationFiles="@(IntermediateSatelliteAssembliesWithTargetPath->'$(OutDir)%(Culture)\$(TargetName).resources.dll')" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)" Condition="'@(IntermediateSatelliteAssembliesWithTargetPath)' != ''"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
<!-- | |
Copy COM reference wrappers, isolated COM references, COM references included by | |
native (manifest) references, native (manifest) reference files themselves. | |
--> | |
<Copy SourceFiles="@(ReferenceComWrappersToCopyLocal); @(ResolvedIsolatedComModules); @(_DeploymentLooseManifestFile); @(NativeReferenceFile)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyAdditionalFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyAdditionalFilesIfPossible)" Condition="'@(ReferenceComWrappersToCopyLocal)' != '' or '@(ResolvedIsolatedComModules)' != '' or '@(_DeploymentLooseManifestFile)' != '' or '@(NativeReferenceFile)' != '' "> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWritesShareable" /> | |
</Copy> | |
<!-- Copy the build product of WinMDExp. --> | |
<Copy SourceFiles="@(WinMDExpArtifacts)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyFilesToOutputDirectoryIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyFilesToOutputDirectoryIfPossible)" Condition="'$(SkipCopyWinMDArtifact)' != 'true' and '@(WinMDExpArtifacts)' != ''"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
<Output TaskParameter="DestinationFiles" ItemName="FinalWinmdExpArtifacts" /> | |
</Copy> | |
<Message Importance="High" Text="$(MSBuildProjectName) -> $([System.IO.Path]::GetFullPath('$(_WindowsMetadataOutputPath)'))" Condition="'$(SkipCopyWinMDArtifact)' != 'true' and '$(_WindowsMetadataOutputPath)' != ''" /> | |
</Target> | |
<!-- | |
============================================================ | |
_CopyFilesMarkedCopyLocal | |
Copy references that are marked as "CopyLocal" and their dependencies, including .pdbs, .xmls and satellites. | |
============================================================ | |
--> | |
<Target Name="_CopyFilesMarkedCopyLocal" Condition="'@(ReferenceCopyLocalPaths)' != ''"> | |
<PropertyGroup> | |
<!-- By default we're not using Hard Links to copy to the output directory, and never when building in VS --> | |
<CreateHardLinksForCopyLocalIfPossible Condition="'$(BuildingInsideVisualStudio)' == 'true' or '$(CreateHardLinksForCopyLocalIfPossible)' == ''">false</CreateHardLinksForCopyLocalIfPossible> | |
<CreateSymbolicLinksForCopyLocalIfPossible Condition="'$(BuildingInsideVisualStudio)' == 'true' or '$(CreateSymbolicLinksForCopyLocalIfPossible)' == ''">false</CreateSymbolicLinksForCopyLocalIfPossible> | |
</PropertyGroup> | |
<Copy SourceFiles="@(ReferenceCopyLocalPaths)" DestinationFiles="@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForCopyLocalIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForCopyLocalIfPossible)" Condition="'$(UseCommonOutputDirectory)' != 'true'"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWritesShareable" /> | |
<Output TaskParameter="CopiedFiles" ItemName="ReferencesCopiedInThisBuild" /> | |
</Copy> | |
<!-- If this project produces reference assemblies *and* copied (possibly transitive) | |
references on this build, subsequent builds of projects that depend on it must | |
not be considered up to date, so touch this marker file that is considered an | |
input to projects that reference this one. --> | |
<Touch Files="@(CopyUpToDateMarker)" AlwaysCreate="true" Condition="'@(ReferencesCopiedInThisBuild)' != ''" /> | |
</Target> | |
<!-- | |
============================================================ | |
_CopySourceItemsToOutputDirectory | |
============================================================ | |
--> | |
<Target Name="_CopySourceItemsToOutputDirectory" DependsOnTargets="
 GetCopyToOutputDirectoryItems;
 _CopyOutOfDateSourceItemsToOutputDirectory;
 _CopyOutOfDateSourceItemsToOutputDirectoryAlways" /> | |
<!-- | |
============================================================ | |
GetCopyToOutputDirectoryItems | |
Get all project items that may need to be transferred to the output directory. | |
This includes baggage items from transitively referenced projects. It would appear | |
that this target computes full transitive closure of content items for all referenced | |
projects; however that is not the case. It only collects the content items from its | |
immediate children and not children of children. The reason this happens is that | |
the ProjectReferenceWithConfiguration list that is consumed by _SplitProjectReferencesByFileExistence | |
is only populated in the current project and is empty in the children. The empty list | |
causes _MSBuildProjectReferenceExistent to be empty and terminates the recursion. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<GetCopyToOutputDirectoryItemsDependsOn> | |
AssignTargetPaths; | |
_SplitProjectReferencesByFileExistence; | |
_GetProjectReferenceTargetFrameworkProperties | |
</GetCopyToOutputDirectoryItemsDependsOn> | |
</PropertyGroup> | |
<Target Name="GetCopyToOutputDirectoryItems" Returns="@(AllItemsFullPathWithTargetPath)" KeepDuplicateOutputs=" '$(MSBuildDisableGetCopyToOutputDirectoryItemsOptimization)' == '' " DependsOnTargets="$(GetCopyToOutputDirectoryItemsDependsOn)"> | |
<!-- In the general case, clients need very little of the metadata which is generated by invoking this target on this project and its children. For those | |
cases, we can immediately discard the unwanted metadata, reducing memory usage, particularly in very large and interconnected systems of projects. | |
However, if some client does require the original functionality, it is sufficient to set MSBuildDisableGetCopyToOutputDirectoryItemsOptimization to | |
a non-empty value and the original behavior will be restored. --> | |
<PropertyGroup Condition=" '$(MSBuildDisableGetCopyToOutputDirectoryItemsOptimization)' == '' "> | |
<_GCTODIKeepDuplicates>false</_GCTODIKeepDuplicates> | |
<_GCTODIKeepMetadata>CopyToOutputDirectory;TargetPath</_GCTODIKeepMetadata> | |
</PropertyGroup> | |
<!-- Get items from child projects first. --> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="GetCopyToOutputDirectoryItems" BuildInParallel="$(BuildInParallel)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" Condition="'@(_MSBuildProjectReferenceExistent)' != '' and '$(_GetChildProjectCopyToOutputDirectoryItems)' == 'true' and '%(_MSBuildProjectReferenceExistent.Private)' != 'false' and '$(UseCommonOutputDirectory)' != 'true'" ContinueOnError="$(ContinueOnError)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_AllChildProjectItemsWithTargetPath" /> | |
</MSBuild> | |
<!-- Target outputs must be full paths because they will be consumed by a different project. --> | |
<ItemGroup> | |
<_SourceItemsToCopyToOutputDirectoryAlways KeepDuplicates=" '$(_GCTODIKeepDuplicates)' != 'false' " KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(_AllChildProjectItemsWithTargetPath->'%(FullPath)')" Condition="'%(_AllChildProjectItemsWithTargetPath.CopyToOutputDirectory)'=='Always'" /> | |
<_SourceItemsToCopyToOutputDirectory KeepDuplicates=" '$(_GCTODIKeepDuplicates)' != 'false' " KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(_AllChildProjectItemsWithTargetPath->'%(FullPath)')" Condition="'%(_AllChildProjectItemsWithTargetPath.CopyToOutputDirectory)'=='PreserveNewest'" /> | |
</ItemGroup> | |
<!-- Remove items which we will never again use - they just sit around taking up memory otherwise --> | |
<ItemGroup> | |
<_AllChildProjectItemsWithTargetPath Remove="@(_AllChildProjectItemsWithTargetPath)" /> | |
</ItemGroup> | |
<!-- Get items from this project last so that they will be copied last. --> | |
<ItemGroup> | |
<_SourceItemsToCopyToOutputDirectoryAlways KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(ContentWithTargetPath->'%(FullPath)')" Condition="'%(ContentWithTargetPath.CopyToOutputDirectory)'=='Always'" /> | |
<_SourceItemsToCopyToOutputDirectory KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(ContentWithTargetPath->'%(FullPath)')" Condition="'%(ContentWithTargetPath.CopyToOutputDirectory)'=='PreserveNewest'" /> | |
</ItemGroup> | |
<ItemGroup> | |
<_SourceItemsToCopyToOutputDirectoryAlways KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(EmbeddedResource->'%(FullPath)')" Condition="'%(EmbeddedResource.CopyToOutputDirectory)'=='Always'" /> | |
<_SourceItemsToCopyToOutputDirectory KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(EmbeddedResource->'%(FullPath)')" Condition="'%(EmbeddedResource.CopyToOutputDirectory)'=='PreserveNewest'" /> | |
</ItemGroup> | |
<ItemGroup> | |
<_CompileItemsToCopy Include="@(Compile->'%(FullPath)')" Condition="'%(Compile.CopyToOutputDirectory)'=='Always' or '%(Compile.CopyToOutputDirectory)'=='PreserveNewest'" /> | |
</ItemGroup> | |
<AssignTargetPath Files="@(_CompileItemsToCopy)" RootFolder="$(MSBuildProjectDirectory)"> | |
<Output TaskParameter="AssignedFiles" ItemName="_CompileItemsToCopyWithTargetPath" /> | |
</AssignTargetPath> | |
<ItemGroup> | |
<_SourceItemsToCopyToOutputDirectoryAlways KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(_CompileItemsToCopyWithTargetPath)" Condition="'%(_CompileItemsToCopyWithTargetPath.CopyToOutputDirectory)'=='Always'" /> | |
<_SourceItemsToCopyToOutputDirectory KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(_CompileItemsToCopyWithTargetPath)" Condition="'%(_CompileItemsToCopyWithTargetPath.CopyToOutputDirectory)'=='PreserveNewest'" /> | |
</ItemGroup> | |
<ItemGroup> | |
<_SourceItemsToCopyToOutputDirectoryAlways KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(_NoneWithTargetPath->'%(FullPath)')" Condition="'%(_NoneWithTargetPath.CopyToOutputDirectory)'=='Always'" /> | |
<_SourceItemsToCopyToOutputDirectory KeepMetadata="$(_GCTODIKeepMetadata)" Include="@(_NoneWithTargetPath->'%(FullPath)')" Condition="'%(_NoneWithTargetPath.CopyToOutputDirectory)'=='PreserveNewest'" /> | |
</ItemGroup> | |
<ItemGroup> | |
<AllItemsFullPathWithTargetPath Include="@(_SourceItemsToCopyToOutputDirectoryAlways->'%(FullPath)');@(_SourceItemsToCopyToOutputDirectory->'%(FullPath)')" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
GetCopyToPublishDirectoryItems | |
Default implementation of GetCopyToPublishDirectoryItems for projects that do not | |
use Microsoft.NET.Sdk. It simply returns whatever GetCopyToOutputDirectoryItems | |
does with CopyToPublishDirectory implied by CopyToOutputDirectory, which is the | |
same as Microsoft.NET.Sdk default when its CopyToPublishDirectory is not used. | |
Microsoft.NET.Sdk projects will override this to allow the publish output to be | |
customized independently from the build output. | |
Having a default implementation here allows the Microsoft.NET.Sdk Publish target | |
to work when a Microsoft.NET.Sdk-based project references a non-Microsoft.NET.Sdk-based | |
project. | |
============================================================ | |
--> | |
<Target Name="GetCopyToPublishDirectoryItems" DependsOnTargets="GetCopyToOutputDirectoryItems" Returns="@(AllPublishItemsFullPathWithTargetPath)"> | |
<ItemGroup> | |
<AllPublishItemsFullPathWithTargetPath Include="@(AllItemsFullPathWithTargetPath)"> | |
<CopyToPublishDirectory>%(CopyToOutputDirectory)</CopyToPublishDirectory> | |
</AllPublishItemsFullPathWithTargetPath> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_CopyOutOfDateSourceItemsToOutputDirectory | |
Copy files that have the CopyToOutputDirectory attribute set to 'PreserveNewest'. | |
============================================================ | |
--> | |
<Target Name="_CopyOutOfDateSourceItemsToOutputDirectory" Condition=" '@(_SourceItemsToCopyToOutputDirectory)' != '' " Inputs="@(_SourceItemsToCopyToOutputDirectory)" Outputs="@(_SourceItemsToCopyToOutputDirectory->'$(OutDir)%(TargetPath)')"> | |
<!-- | |
Not using SkipUnchangedFiles="true" because the application may want to change | |
one of these files and not have an incremental build replace it. | |
--> | |
<Copy SourceFiles="@(_SourceItemsToCopyToOutputDirectory)" DestinationFiles="@(_SourceItemsToCopyToOutputDirectory->'$(OutDir)%(TargetPath)')" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForAdditionalFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForAdditionalFilesIfPossible)"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
</Target> | |
<!-- | |
============================================================ | |
_CopyOutOfDateSourceItemsToOutputDirectoryAlways | |
Copy files that have the CopyToOutputDirectory attribute set to 'Always'. | |
============================================================ | |
--> | |
<Target Name="_CopyOutOfDateSourceItemsToOutputDirectoryAlways" Condition=" '@(_SourceItemsToCopyToOutputDirectoryAlways)' != '' "> | |
<!-- | |
Not using SkipUnchangedFiles="true" because the application may want to change | |
one of these files and not have an incremental build replace it. | |
--> | |
<Copy SourceFiles="@(_SourceItemsToCopyToOutputDirectoryAlways)" DestinationFiles="@(_SourceItemsToCopyToOutputDirectoryAlways->'$(OutDir)%(TargetPath)')" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForAdditionalFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForAdditionalFilesIfPossible)"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
</Target> | |
<!-- | |
============================================================ | |
_CopyAppConfigFile | |
Copy the application config file. | |
============================================================ | |
--> | |
<Target Name="_CopyAppConfigFile" Condition=" '@(AppConfigWithTargetPath)' != '' " Inputs="@(AppConfigWithTargetPath)" Outputs="@(AppConfigWithTargetPath->'$(OutDir)%(TargetPath)')"> | |
<!-- | |
Copy the application's .config file, if any. | |
Not using SkipUnchangedFiles="true" because the application may want to change | |
the app.config and not have an incremental build replace it. | |
--> | |
<Copy SourceFiles="@(AppConfigWithTargetPath)" DestinationFiles="@(AppConfigWithTargetPath->'$(OutDir)%(TargetPath)')" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForAdditionalFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForAdditionalFilesIfPossible)"> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
</Target> | |
<!-- | |
================================================================ | |
_CopyManifestFiles | |
================================================================ | |
Copy the built manifests (.exe.manifest, .application/.xbap) to the final directory. | |
--> | |
<Target Name="_CopyManifestFiles" Condition=" '$(_DeploymentCopyApplicationManifest)'=='true' or '$(GenerateClickOnceManifests)'=='true' " DependsOnTargets="PrepareForBuild"> | |
<Copy SourceFiles="@(ApplicationManifest)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForAdditionalFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForAdditionalFilesIfPossible)" Condition="'$(GenerateClickOnceManifests)'=='true' or '$(_DeploymentCopyApplicationManifest)'=='true'"> | |
<Output TaskParameter="DestinationFiles" ItemName="_DeploymentMainApplicationManifest" /> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
<Message Importance="Normal" Condition="'$(_DeploymentCopyApplicationManifest)'=='true'" Text="$(MSBuildProjectName) -> @(_DeploymentMainApplicationManifest->'%(FullPath)')" /> | |
<Copy SourceFiles="@(DeployManifest)" DestinationFolder="$(OutDir)" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForAdditionalFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForAdditionalFilesIfPossible)" Condition="'$(GenerateClickOnceManifests)'=='true'"> | |
<Output TaskParameter="DestinationFiles" ItemName="_DeploymentMainDeployManifest" /> | |
<Output TaskParameter="DestinationFiles" ItemName="FileWrites" /> | |
</Copy> | |
<Message Importance="Normal" Condition="'$(GenerateClickOnceManifests)'=='true'" Text="$(MSBuildProjectName) -> @(_DeploymentMainDeployManifest->'%(FullPath)')" /> | |
</Target> | |
<!-- | |
================================================================ | |
_CheckForCompileOutputs | |
Checks each file output from the main "Compile" target to make sure they really exist. | |
If they do, then record them in the clean cache. | |
============================================================ | |
--> | |
<Target Name="_CheckForCompileOutputs"> | |
<!--Record the main compile outputs.--> | |
<ItemGroup> | |
<FileWrites Include="@(IntermediateAssembly)" Condition="Exists('@(IntermediateAssembly)')" /> | |
<FileWrites Include="@(IntermediateRefAssembly)" Condition="'$(ProduceReferenceAssembly)' == 'true' and Exists('@(IntermediateRefAssembly)')" /> | |
</ItemGroup> | |
<!-- Record the .xml if one was produced. --> | |
<PropertyGroup> | |
<_DocumentationFileProduced Condition="!Exists('@(DocFileItem)')">false</_DocumentationFileProduced> | |
</PropertyGroup> | |
<ItemGroup> | |
<FileWrites Include="@(DocFileItem)" Condition="'$(_DocumentationFileProduced)'=='true'" /> | |
</ItemGroup> | |
<!-- Record the .pdb if one was produced. --> | |
<PropertyGroup> | |
<_DebugSymbolsProduced Condition="!Exists('@(_DebugSymbolsIntermediatePath)')">false</_DebugSymbolsProduced> | |
</PropertyGroup> | |
<ItemGroup> | |
<FileWrites Include="@(_DebugSymbolsIntermediatePath)" Condition="'$(_DebugSymbolsProduced)'=='true'" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_SGenCheckForOutputs | |
Checks each file output from the "GenerateSerializationAssemblies" target to make sure they really exist. | |
If they do, then record them in the clean cache. | |
============================================================ | |
--> | |
<Target Name="_SGenCheckForOutputs" Condition="'$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')"> | |
<!-- Record the serializer .dll if one was produced.--> | |
<PropertyGroup> | |
<_SGenDllCreated Condition="Exists('$(IntermediateOutputPath)$(_SGenDllName)')">true</_SGenDllCreated> | |
</PropertyGroup> | |
<ItemGroup> | |
<FileWrites Include="$(IntermediateOutputPath)$(_SGenDllName)" Condition="Exists('$(IntermediateOutputPath)$(_SGenDllName)')" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
UnmanagedRegistration Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
UnmanagedRegistration | |
Registers the main assembly for COM interop. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<UnmanagedRegistrationDependsOn /> | |
</PropertyGroup> | |
<Target Name="UnmanagedRegistration" Condition="'$(RegisterForComInterop)'=='true' and '$(OutputType)'=='library'" DependsOnTargets="$(UnmanagedRegistrationDependsOn)"> | |
<PropertyGroup> | |
<RegisterAssemblyMSBuildArchitecture Condition="'$(RegisterAssemblyMSBuildArchitecture)' == ''">$(PlatformTargetAsMSBuildArchitecture)</RegisterAssemblyMSBuildArchitecture> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(TargetFrameworkAsMSBuildRuntime)' != '' and '$(RegisterAssemblyMSBuildArchitecture)' != ''"> | |
<!-- Falling back to the current runtime if we are targeting CLR2 and the task host doesn't exist will lead to | |
incorrect behavior in some cases, but it's the same incorrect behavior as Visual Studio 2010, and thus better | |
than causing build breaks on upgrade to Win8 the way not doing so would. For more details, see the | |
corresponding comment in GenerateResource. --> | |
<RegisterAssemblyMSBuildRuntime Condition="'$(RegisterAssemblyMSBuildRuntime)' == '' and
 $([MSBuild]::DoesTaskHostExist(`$(TargetFrameworkAsMSBuildRuntime)`, `$(RegisterAssemblyMSBuildArchitecture)`))">$(TargetFrameworkAsMSBuildRuntime)</RegisterAssemblyMSBuildRuntime> | |
<!-- If the targeted runtime doesn't exist, fall back to current --> | |
<RegisterAssemblyMSBuildRuntime Condition="'$(RegisterAssemblyMSBuildRuntime)' == ''">CurrentRuntime</RegisterAssemblyMSBuildRuntime> | |
</PropertyGroup> | |
<RegisterAssembly Assemblies="@(_OutputPathItem->'%(FullPath)$(TargetFileName)')" TypeLibFiles="@(_OutputPathItem->'%(FullPath)$(TargetName).tlb')" AssemblyListFile="@(_UnmanagedRegistrationCache)" CreateCodeBase="true" MSBuildRuntime="$(RegisterAssemblyMSBuildRuntime)" MSBuildArchitecture="$(RegisterAssemblyMSBuildArchitecture)" Condition="!Exists('@(_UnmanagedRegistrationCache)')" /> | |
<ItemGroup> | |
<FileWrites Include="@(_OutputPathItem->'%(FullPath)$(TargetName).tlb')" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
IncrementalClean Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
IncrementalClean | |
Remove files that were produced in a prior build but weren't produced in the current build. | |
The reason is that if, for example, the name of the .exe has changed we want to delete the | |
old copy. | |
Leave the Clean cache file containing only the files produced in the current build. | |
============================================================ | |
--> | |
<Target Name="IncrementalClean" DependsOnTargets="_CleanGetCurrentAndPriorFileWrites"> | |
<!-- Subtract list of files produced in prior builds from list of files produced in this build. --> | |
<ItemGroup> | |
<_CleanOrphanFileWrites Include="@(_CleanPriorFileWrites)" Exclude="@(_CleanCurrentFileWrites)" /> | |
</ItemGroup> | |
<!-- Find all files in the final output directory. --> | |
<FindUnderPath Path="$(OutDir)" Files="@(_CleanOrphanFileWrites)"> | |
<Output TaskParameter="InPath" ItemName="_CleanOrphanFileWritesInOutput" /> | |
</FindUnderPath> | |
<!-- Find all files in the intermediate output directory. --> | |
<FindUnderPath Path="$(IntermediateOutputPath)" Files="@(_CleanOrphanFileWrites)"> | |
<Output TaskParameter="InPath" ItemName="_CleanOrphanFileWritesInIntermediate" /> | |
</FindUnderPath> | |
<!-- Delete the orphaned files. --> | |
<Delete Files="@(_CleanOrphanFileWritesInIntermediate);@(_CleanOrphanFileWritesInOutput)" TreatErrorsAsWarnings="true"> | |
<Output TaskParameter="DeletedFiles" ItemName="_CleanOrphanFilesDeleted" /> | |
</Delete> | |
<!-- Create a list of everything that wasn't deleted or was outside | |
the current final output and intermediate output directories. --> | |
<ItemGroup> | |
<_CleanRemainingFileWritesAfterIncrementalClean Include="@(_CleanPriorFileWrites);@(_CleanCurrentFileWrites)" Exclude="@(_CleanOrphanFilesDeleted)" /> | |
</ItemGroup> | |
<!-- Remove duplicates. --> | |
<RemoveDuplicates Inputs="@(_CleanRemainingFileWritesAfterIncrementalClean)"> | |
<Output TaskParameter="Filtered" ItemName="_CleanUniqueRemainingFileWritesAfterIncrementalClean" /> | |
</RemoveDuplicates> | |
<!-- Write new list of current files back to disk, replacing the existing list.--> | |
<WriteLinesToFile File="$(IntermediateOutputPath)$(CleanFile)" Lines="@(_CleanUniqueRemainingFileWritesAfterIncrementalClean)" Condition="'@(_CleanUnfilteredPriorFileWrites)'!='@(_CleanUniqueRemainingFileWritesAfterIncrementalClean)'" Overwrite="true" /> | |
</Target> | |
<!-- | |
============================================================ | |
_CleanGetCurrentAndPriorFileWrites | |
Get the list of files built in the current build and in prior builds. | |
============================================================ | |
--> | |
<Target Name="_CleanGetCurrentAndPriorFileWrites" DependsOnTargets="_CheckForCompileOutputs;_SGenCheckForOutputs"> | |
<!-- Read the list of files produced by a prior builds from disk. --> | |
<ReadLinesFromFile File="$(IntermediateOutputPath)$(CleanFile)"> | |
<Output TaskParameter="Lines" ItemName="_CleanUnfilteredPriorFileWrites" /> | |
</ReadLinesFromFile> | |
<!-- | |
Convert the list of references to the absolute paths so we can make valid comparisons | |
across two lists | |
--> | |
<ConvertToAbsolutePath Paths="@(_ResolveAssemblyReferenceResolvedFiles)"> | |
<Output TaskParameter="AbsolutePaths" ItemName="_ResolveAssemblyReferenceResolvedFilesAbsolute" /> | |
</ConvertToAbsolutePath> | |
<!-- | |
Subtract any resolved assembly files from *prior* file writes because deleting | |
these would break subsequent builds because the assemblies would be unresolvable. | |
--> | |
<ItemGroup> | |
<_CleanPriorFileWrites Include="@(_CleanUnfilteredPriorFileWrites)" Exclude="@(_ResolveAssemblyReferenceResolvedFilesAbsolute)" /> | |
</ItemGroup> | |
<!-- | |
Of shareable files, keep only those that are in the project's directory. | |
We never clean shareable files outside of the project directory because | |
the build may be to a common output directory and other projects may need | |
them. | |
Only subtract the outputs from ResolveAssemblyReferences target because that's the | |
only "Resolve" target that tries to resolve assemblies directly from the output | |
directory. | |
--> | |
<FindUnderPath Path="$(MSBuildProjectDirectory)" Files="@(FileWritesShareable)" UpdateToAbsolutePaths="true"> | |
<Output TaskParameter="InPath" ItemName="FileWrites" /> | |
</FindUnderPath> | |
<!-- Find all files in the final output directory. --> | |
<FindUnderPath Path="$(OutDir)" Files="@(FileWrites)" UpdateToAbsolutePaths="true"> | |
<Output TaskParameter="InPath" ItemName="_CleanCurrentFileWritesInOutput" /> | |
</FindUnderPath> | |
<!-- Find all files in the intermediate output directory. --> | |
<FindUnderPath Path="$(IntermediateOutputPath)" Files="@(FileWrites)" UpdateToAbsolutePaths="true"> | |
<Output TaskParameter="InPath" ItemName="_CleanCurrentFileWritesInIntermediate" /> | |
</FindUnderPath> | |
<!-- | |
Subtract any resolved assembly files from *current* file writes because deleting | |
these would break subsequent builds because the assemblies would be unresolvable. | |
Only subtract the outputs from ResolveAssemblyReferences target because that's the | |
only "Resolve" target that tries to resolve assemblies directly from the output | |
directory. | |
--> | |
<ItemGroup> | |
<_CleanCurrentFileWritesWithNoReferences Include="@(_CleanCurrentFileWritesInOutput);@(_CleanCurrentFileWritesInIntermediate)" Exclude="@(_ResolveAssemblyReferenceResolvedFilesAbsolute)" /> | |
</ItemGroup> | |
<!-- Remove duplicates from files produced in this build. --> | |
<RemoveDuplicates Inputs="@(_CleanCurrentFileWritesWithNoReferences)"> | |
<Output TaskParameter="Filtered" ItemName="_CleanCurrentFileWrites" /> | |
</RemoveDuplicates> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
Clean Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
Clean | |
Delete all intermediate and final build outputs. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<CleanDependsOn> | |
BeforeClean; | |
UnmanagedUnregistration; | |
CoreClean; | |
CleanReferencedProjects; | |
CleanPublishFolder; | |
AfterClean | |
</CleanDependsOn> | |
</PropertyGroup> | |
<Target Name="Clean" Condition=" '$(_InvalidConfigurationWarning)' != 'true' " DependsOnTargets="$(CleanDependsOn)" /> | |
<!-- | |
============================================================ | |
BeforeClean | |
Redefine this target in your project in order to run tasks just before Clean. | |
============================================================ | |
--> | |
<Target Name="BeforeClean" /> | |
<!-- | |
============================================================ | |
AfterClean | |
Redefine this target in your project in order to run tasks just after Clean. | |
============================================================ | |
--> | |
<Target Name="AfterClean" /> | |
<!-- | |
============================================================ | |
CleanReferencedProjects | |
Call Clean target on all Referenced Projects. | |
============================================================ | |
--> | |
<Target Name="CleanReferencedProjects" DependsOnTargets="PrepareProjectReferences"> | |
<!-- | |
When building the project directly from the command-line, clean those referenced projects | |
that exist on disk. For IDE builds and command-line .SLN builds, the solution build manager | |
takes care of this. | |
--> | |
<MSBuild Projects="@(_MSBuildProjectReferenceExistent)" Targets="Clean" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration); %(_MSBuildProjectReferenceExistent.SetPlatform); %(_MSBuildProjectReferenceExistent.SetTargetFramework)" BuildInParallel="$(BuildInParallel)" Condition="'$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != ''" ContinueOnError="$(ContinueOnError)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)" /> | |
</Target> | |
<!-- | |
============================================================ | |
CoreClean | |
============================================================ | |
--> | |
<PropertyGroup> | |
<CoreCleanDependsOn /> | |
</PropertyGroup> | |
<Target Name="CoreClean" DependsOnTargets="$(CoreCleanDependsOn)"> | |
<!-- First clean any explicitly specified cleanable files. | |
Declare items of this type if you want Clean to delete them. --> | |
<Delete Files="@(Clean)" TreatErrorsAsWarnings="true" /> | |
<!-- Read in list of files that were written to disk in past builds. --> | |
<ReadLinesFromFile File="$(IntermediateOutputPath)$(CleanFile)"> | |
<Output TaskParameter="Lines" ItemName="_CleanPriorFileWrites" /> | |
</ReadLinesFromFile> | |
<!-- Find all files in the final output directory. --> | |
<FindUnderPath Path="$(OutDir)" Files="@(_CleanPriorFileWrites)"> | |
<Output TaskParameter="InPath" ItemName="_CleanPriorFileWritesInOutput" /> | |
</FindUnderPath> | |
<!-- Find all files in the intermediate output directory. --> | |
<FindUnderPath Path="$(IntermediateOutputPath)" Files="@(_CleanPriorFileWrites)"> | |
<Output TaskParameter="InPath" ItemName="_CleanPriorFileWritesInIntermediate" /> | |
</FindUnderPath> | |
<!-- Delete those files. --> | |
<Delete Files="@(_CleanPriorFileWritesInOutput);@(_CleanPriorFileWritesInIntermediate)" TreatErrorsAsWarnings="true"> | |
<Output TaskParameter="DeletedFiles" ItemName="_CleanPriorFileWritesDeleted" /> | |
</Delete> | |
<!-- Create a list of everything that wasn't deleted. --> | |
<ItemGroup> | |
<_CleanRemainingFileWritesAfterClean Include="@(_CleanPriorFileWrites)" Exclude="@(_CleanPriorFileWritesDeleted)" /> | |
</ItemGroup> | |
<!-- Remove duplicates. --> | |
<RemoveDuplicates Inputs="@(_CleanRemainingFileWritesAfterClean)"> | |
<Output TaskParameter="Filtered" ItemName="_CleanUniqueRemainingFileWrites" /> | |
</RemoveDuplicates> | |
<!-- Make sure the directory exists. --> | |
<MakeDir Directories="$(IntermediateOutputPath)" /> | |
<!-- Write new list of current files back to disk. --> | |
<WriteLinesToFile File="$(IntermediateOutputPath)$(CleanFile)" Lines="@(_CleanUniqueRemainingFileWrites)" Overwrite="true" /> | |
</Target> | |
<!-- | |
============================================================ | |
_CleanRecordFileWrites | |
Save the list of all files written to disk so that it can be used for "Clean" later. | |
Files written in prior builds are not removed from Clean cache. | |
============================================================ | |
--> | |
<Target Name="_CleanRecordFileWrites" DependsOnTargets="_CleanGetCurrentAndPriorFileWrites"> | |
<!-- | |
Merge list of files from prior builds with the current build and then | |
remove duplicates. | |
--> | |
<RemoveDuplicates Inputs="@(_CleanPriorFileWrites);@(_CleanCurrentFileWrites)"> | |
<Output TaskParameter="Filtered" ItemName="_CleanUniqueFileWrites" /> | |
</RemoveDuplicates> | |
<!-- Make sure the directory exists. --> | |
<MakeDir Directories="$(IntermediateOutputPath)" /> | |
<!-- Write merged file list back to disk, replacing existing contents. --> | |
<WriteLinesToFile File="$(IntermediateOutputPath)$(CleanFile)" Lines="@(_CleanUniqueFileWrites)" Overwrite="true" /> | |
</Target> | |
<!-- | |
============================================================ | |
CleanPublishFolder | |
============================================================ | |
--> | |
<Target Name="CleanPublishFolder"> | |
<RemoveDir Directories="$(PublishDir)" Condition="'$(PublishDir)'=='$(OutputPath)app.publish\' and Exists('$(PublishDir)')" /> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
PostBuildEvent Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
PostBuildEvent | |
Run the post-build event. This step is driven by two parameters: | |
(1) The $(RunPostBuildEvent) property is set by the user through the IDE and can be one of four values. | |
- OnBuildSuccess: In this case, every step of the build must succeed for the post-build step to run. | |
- <Blank>: This is the same as OnBuildSuccess. | |
- OnOutputUpdated: In this case, the post-build step will run only if the main output assembly was | |
actually updated. | |
- Always: The post-build step is always run. | |
(2) The $(_AssemblyTimestampBeforeCompile) and $(_AssemblyTimestampAfterCompile) values are | |
set by the _TimeStampBeforeCompile and _TimeStampAfterCompile targets. If the assembly was actually | |
rebuilt during this build, then the two values will be different. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PostBuildEventDependsOn /> | |
</PropertyGroup> | |
<Target Name="PostBuildEvent" Condition="'$(PostBuildEvent)' != '' and ('$(RunPostBuildEvent)' != 'OnOutputUpdated' or '$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)')" DependsOnTargets="$(PostBuildEventDependsOn)"> | |
<Exec WorkingDirectory="$(OutDir)" Command="$(PostBuildEvent)" /> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
Publish Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
Publish | |
This target is only called when doing ClickOnce publishing outside the IDE, which implicitly builds before publishing. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PublishDependsOn Condition="'$(PublishableProject)'=='true'"> | |
SetGenerateManifests; | |
Build; | |
PublishOnly | |
</PublishDependsOn> | |
<PublishDependsOn Condition="'$(PublishableProject)'!='true'"> | |
_DeploymentUnpublishable | |
</PublishDependsOn> | |
</PropertyGroup> | |
<Target Name="Publish" DependsOnTargets="$(PublishDependsOn)" /> | |
<!-- | |
============================================================ | |
_DeploymentUnpublishable | |
This target is used to block an attempt to ClickOnce publish a non-publishable project, such as a ClassLibrary, when building outside the IDE. | |
============================================================ | |
--> | |
<Target Name="_DeploymentUnpublishable"> | |
<Message Text="Skipping unpublishable project." /> | |
</Target> | |
<!-- | |
============================================================ | |
SetGenerateManifests | |
This target simply assures the GenerateClickOnceManifests property is set whenever the publish target is invoked. | |
============================================================ | |
--> | |
<Target Name="SetGenerateManifests"> | |
<Error Condition="'$(OutputType)'!='winexe' and '$(OutputType)'!='exe' and '$(OutputType)'!='appcontainerexe'" Text="Publish is only valid for 'Windows Application' or 'Console Application' project types." /> | |
<Error Condition="'$(_DeploymentSignClickOnceManifests)'=='true' and '$(ManifestCertificateThumbprint)'=='' and '$(ManifestKeyFile)'==''" Text="A signing key is required in order to publish this project. Please specify a ManifestKeyFile or ManifestCertificateThumbprint value. Publishing from Visual Studio will automatically configure a signing key for this project." /> | |
<PropertyGroup> | |
<GenerateClickOnceManifests>true</GenerateClickOnceManifests> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
PublishOnly | |
The "PublishOnly" target is intended for ClickOnce publishing inside the IDE, where the build has already been done | |
by the BuildManager. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PublishOnlyDependsOn> | |
SetGenerateManifests; | |
PublishBuild; | |
BeforePublish; | |
GenerateManifests; | |
CopyFilesToOutputDirectory; | |
_CopyFilesToPublishFolder; | |
_DeploymentGenerateBootstrapper; | |
ResolveKeySource; | |
_DeploymentSignClickOnceDeployment; | |
AfterPublish | |
</PublishOnlyDependsOn> | |
</PropertyGroup> | |
<Target Name="PublishOnly" DependsOnTargets="$(PublishOnlyDependsOn)" /> | |
<!-- | |
============================================================ | |
BeforePublish | |
Redefine this target in your project in order to run tasks just before Publish. | |
============================================================ | |
--> | |
<Target Name="BeforePublish" /> | |
<!-- | |
============================================================ | |
AfterPublish | |
Redefine this target in your project in order to run tasks just after Publish. | |
============================================================ | |
--> | |
<Target Name="AfterPublish" /> | |
<!-- | |
============================================================ | |
PublishBuild | |
Defines the set of targets that publishing is directly dependent on. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<PublishBuildDependsOn> | |
BuildOnlySettings; | |
PrepareForBuild; | |
ResolveReferences; | |
PrepareResources; | |
ResolveKeySource; | |
GenerateSerializationAssemblies; | |
CreateSatelliteAssemblies; | |
</PublishBuildDependsOn> | |
</PropertyGroup> | |
<Target Name="PublishBuild" DependsOnTargets="$(PublishBuildDependsOn)" /> | |
<!-- | |
============================================================ | |
_CopyFilesToPublishFolder | |
============================================================ | |
--> | |
<Target Name="_CopyFilesToPublishFolder"> | |
<!-- Compute name of application folder, which includes the assembly name plus formatted application version. | |
The application version is formatted to use "_" in place of "." chars (i.e. "1_0_0_0" instead of "1.0.0.0"). | |
This is done because some servers misinterpret "." as a file extension. --> | |
<FormatVersion Version="$(ApplicationVersion)" Revision="$(ApplicationRevision)" FormatType="Path"> | |
<Output TaskParameter="OutputVersion" PropertyName="_DeploymentApplicationVersionFragment" /> | |
</FormatVersion> | |
<PropertyGroup> | |
<_DeploymentApplicationFolderName>Application Files\$(AssemblyName)_$(_DeploymentApplicationVersionFragment)</_DeploymentApplicationFolderName> | |
<_DeploymentApplicationDir>$(PublishDir)$(_DeploymentApplicationFolderName)\</_DeploymentApplicationDir> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- By default we're not using Hard or Symbolic Links to copy to the publish directory, and never when building in VS --> | |
<CreateHardLinksForPublishFilesIfPossible Condition="'$(BuildingInsideVisualStudio)' == 'true' or '$(CreateHardLinksForPublishFilesIfPossible)' == ''">false</CreateHardLinksForPublishFilesIfPossible> | |
<CreateSymbolicLinksForPublishFilesIfPossible Condition="'$(BuildingInsideVisualStudio)' == 'true' or '$(CreateSymbolicLinksForPublishFilesIfPossible)' == ''">false</CreateSymbolicLinksForPublishFilesIfPossible> | |
</PropertyGroup> | |
<!-- Copy files to publish folder --> | |
<Copy SourceFiles="@(_ApplicationManifestFinal);
 @(_DeploymentResolvedManifestEntryPoint);
 @(_DeploymentManifestFiles);
 @(ReferenceComWrappersToCopyLocal);
 @(ResolvedIsolatedComModules);
 @(_DeploymentLooseManifestFile)" DestinationFiles="@(_ApplicationManifestFinal->'$(_DeploymentApplicationDir)%(TargetPath)');
 @(_DeploymentManifestEntryPoint->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)');
 @(_DeploymentManifestFiles->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)');
 @(ReferenceComWrappersToCopyLocal->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)');
 @(ResolvedIsolatedComModules->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)');
 @(_DeploymentLooseManifestFile->'$(_DeploymentApplicationDir)%(FileName)%(Extension)$(_DeploymentFileMappingExtension)')" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" UseHardlinksIfPossible="$(CreateHardLinksForPublishFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForPublishFilesIfPossible)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" /> | |
<Copy SourceFiles="@(_DeploymentManifestDependencies)" DestinationFiles="@(_DeploymentManifestDependencies->'$(_DeploymentApplicationDir)%(TargetPath)$(_DeploymentFileMappingExtension)')" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForPublishFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForPublishFilesIfPossible)" Condition="'%(_DeploymentManifestDependencies.DependencyType)'=='Install'" /> | |
<Copy SourceFiles="@(_ReferenceScatterPaths)" DestinationFiles="@(_ReferenceScatterPaths->'$(_DeploymentApplicationDir)%(Filename)%(Extension)$(_DeploymentFileMappingExtension)')" SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" OverwriteReadOnlyFiles="$(OverwriteReadOnlyFiles)" Retries="$(CopyRetryCount)" RetryDelayMilliseconds="$(CopyRetryDelayMilliseconds)" UseHardlinksIfPossible="$(CreateHardLinksForPublishFilesIfPossible)" UseSymboliclinksIfPossible="$(CreateSymbolicLinksForPublishFilesIfPossible)" /> | |
<FormatUrl InputUrl="$(_DeploymentApplicationUrl)"> | |
<Output TaskParameter="OutputUrl" PropertyName="_DeploymentFormattedApplicationUrl" /> | |
</FormatUrl> | |
<FormatUrl InputUrl="$(_DeploymentComponentsUrl)"> | |
<Output TaskParameter="OutputUrl" PropertyName="_DeploymentFormattedComponentsUrl" /> | |
</FormatUrl> | |
</Target> | |
<!-- | |
============================================================ | |
_DeploymentGenerateBootstrapper | |
============================================================ | |
--> | |
<Target Name="_DeploymentGenerateBootstrapper"> | |
<!-- Build setup.exe bootstrapper and copy referenced packages --> | |
<GenerateBootstrapper ApplicationFile="$(TargetDeployManifestFileName)" ApplicationName="$(AssemblyName)" ApplicationUrl="$(_DeploymentFormattedApplicationUrl)" BootstrapperItems="@(BootstrapperPackage)" ComponentsLocation="$(BootstrapperComponentsLocation)" ComponentsUrl="$(_DeploymentFormattedComponentsUrl)" Culture="$(TargetCulture)" FallbackCulture="$(FallbackCulture)" OutputPath="$(PublishDir)" SupportUrl="$(_DeploymentFormattedSupportUrl)" Path="$(GenerateBootstrapperSdkPath)" VisualStudioVersion="$(VisualStudioVersion)" Condition="'$(BootstrapperEnabled)'=='true'" /> | |
</Target> | |
<!-- | |
============================================================ | |
_DeploymentSignClickOnceDeployment | |
============================================================ | |
--> | |
<Target Name="_DeploymentSignClickOnceDeployment"> | |
<!-- Sign manifests and the bootstrapper --> | |
<SignFile CertificateThumbprint="$(_DeploymentResolvedManifestCertificateThumbprint)" TimestampUrl="$(ManifestTimestampUrl)" SigningTarget="$(_DeploymentApplicationDir)$(_DeploymentTargetApplicationManifestFileName)" TargetFrameworkVersion="$(TargetFrameworkVersion)" Condition="'$(_DeploymentSignClickOnceManifests)'=='true'" /> | |
<!-- Update entry point path in deploy manifest --> | |
<UpdateManifest ApplicationPath="$(_DeploymentApplicationFolderName)\$(_DeploymentTargetApplicationManifestFileName)" TargetFrameworkVersion="$(TargetFrameworkVersion)" ApplicationManifest="$(_DeploymentApplicationDir)$(_DeploymentTargetApplicationManifestFileName)" InputManifest="$(OutDir)$(TargetDeployManifestFileName)" OutputManifest="$(PublishDir)$(TargetDeployManifestFileName)"> | |
<Output TaskParameter="OutputManifest" ItemName="PublishedDeployManifest" /> | |
</UpdateManifest> | |
<SignFile CertificateThumbprint="$(_DeploymentResolvedManifestCertificateThumbprint)" TimestampUrl="$(ManifestTimestampUrl)" SigningTarget="$(PublishDir)$(TargetDeployManifestFileName)" TargetFrameworkVersion="$(TargetFrameworkVersion)" Condition="'$(_DeploymentSignClickOnceManifests)'=='true'" /> | |
<SignFile CertificateThumbprint="$(_DeploymentResolvedManifestCertificateThumbprint)" TimestampUrl="$(ManifestTimestampUrl)" SigningTarget="$(PublishDir)\setup.exe" Condition="'$(BootstrapperEnabled)'=='true' and '$(_DeploymentSignClickOnceManifests)'=='true'" /> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
AllProjectOutputGroups Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
AllProjectOutputGroups | |
The targets below drive output groups, which provide generic information about a | |
project's inputs (e.g., content files, compilation sources, etc.) and built outputs | |
(e.g., built EXE/DLL, PDB, XML documentation files, etc.) | |
Each target may produce two kinds of items: outputs and dependencies. Outputs are | |
items from the current project; dependencies are items that are brought into the | |
current project as a result of referencing other projects or components. | |
For both outputs and dependencies, the Include attribute | |
specifies the location of the output/dependency; it must be a full path. Any number | |
of additional attributes may be placed on an output/dependency item. | |
============================================================ | |
--> | |
<Target Name="AllProjectOutputGroups" DependsOnTargets="
 BuiltProjectOutputGroup;
 DebugSymbolsProjectOutputGroup;
 DocumentationProjectOutputGroup;
 SatelliteDllsProjectOutputGroup;
 SourceFilesProjectOutputGroup;
 ContentFilesProjectOutputGroup;
 SGenFilesOutputGroup" /> | |
<!-- | |
This is the key output for the BuiltProjectOutputGroup and is meant to be read directly from the IDE. | |
Reading an item is faster than invoking a target. | |
--> | |
<ItemGroup Condition=" '$(OutputType)' != 'winmdobj' "> | |
<BuiltProjectOutputGroupKeyOutput Include="@(IntermediateAssembly->'%(FullPath)')"> | |
<IsKeyOutput>true</IsKeyOutput> | |
<FinalOutputPath>$(TargetPath)</FinalOutputPath> | |
<TargetPath>$(TargetFileName)</TargetPath> | |
<COM2REG Condition="'$(RegisterForComInterop)'=='true' and '$(OutputType)'=='library'">true</COM2REG> | |
</BuiltProjectOutputGroupKeyOutput> | |
</ItemGroup> | |
<ItemGroup Condition=" '$(OutputType)' == 'winmdobj' "> | |
<WinMDExpOutputWindowsMetadataFileItem Include="$(_IntermediateWindowsMetadataPath)" Condition="'$(_IntermediateWindowsMetadataPath)' != ''" /> | |
<BuiltProjectOutputGroupKeyOutput Include="@(WinMDExpOutputWindowsMetadataFileItem->'%(FullPath)')"> | |
<IsKeyOutput>true</IsKeyOutput> | |
<FinalOutputPath>$(TargetPath)</FinalOutputPath> | |
<TargetPath>$(TargetFileName)</TargetPath> | |
</BuiltProjectOutputGroupKeyOutput> | |
</ItemGroup> | |
<!-- | |
============================================================ | |
BuiltProjectOutputGroup | |
============================================================ | |
--> | |
<PropertyGroup> | |
<BuiltProjectOutputGroupDependsOn>PrepareForBuild</BuiltProjectOutputGroupDependsOn> | |
<AddAppConfigToBuildOutputs Condition="('$(AddAppConfigToBuildOutputs)'=='') and ('$(OutputType)'!='library' and '$(OutputType)'!='winmdobj')">true</AddAppConfigToBuildOutputs> | |
</PropertyGroup> | |
<Target Name="BuiltProjectOutputGroup" Returns="@(BuiltProjectOutputGroupOutput)" DependsOnTargets="$(BuiltProjectOutputGroupDependsOn)"> | |
<ItemGroup> | |
<_BuiltProjectOutputGroupOutputIntermediate Include="@(BuiltProjectOutputGroupKeyOutput)" /> | |
</ItemGroup> | |
<!-- This item represents the app.config file --> | |
<ItemGroup> | |
<_BuiltProjectOutputGroupOutputIntermediate Include="$(AppConfig)" Condition="'$(AddAppConfigToBuildOutputs)'=='true'"> | |
<FinalOutputPath>$(TargetDir)$(TargetFileName).config</FinalOutputPath> | |
<TargetPath>$(TargetFileName).config</TargetPath> | |
<!-- For compatibility with 2.0 --> | |
<OriginalItemSpec>$(AppConfig)</OriginalItemSpec> | |
</_BuiltProjectOutputGroupOutputIntermediate> | |
</ItemGroup> | |
<ItemGroup> | |
<_IsolatedComReference Include="@(COMReference)" Condition=" '%(COMReference.Isolated)' == 'true' " /> | |
<_IsolatedComReference Include="@(COMFileReference)" Condition=" '%(COMFileReference.Isolated)' == 'true' " /> | |
</ItemGroup> | |
<!-- This item represents the native manifest, example: WindowsApplication1.exe.manifest or Native.ClassLibrary1.manifest --> | |
<ItemGroup> | |
<_BuiltProjectOutputGroupOutputIntermediate Include="$(OutDir)$(_DeploymentTargetApplicationManifestFileName)" Condition="'@(NativeReference)'!='' or '@(_IsolatedComReference)'!=''"> | |
<TargetPath>$(_DeploymentTargetApplicationManifestFileName)</TargetPath> | |
<!-- For compatibility with 2.0 --> | |
<OriginalItemSpec>$(OutDir)$(_DeploymentTargetApplicationManifestFileName)</OriginalItemSpec> | |
</_BuiltProjectOutputGroupOutputIntermediate> | |
</ItemGroup> | |
<!-- Convert intermediate items into final items; this way we can get the full path for each item --> | |
<ItemGroup> | |
<BuiltProjectOutputGroupOutput Include="@(_BuiltProjectOutputGroupOutputIntermediate->'%(FullPath)')"> | |
<!-- For compatibility with 2.0 --> | |
<OriginalItemSpec Condition="'%(_BuiltProjectOutputGroupOutputIntermediate.OriginalItemSpec)' == ''">%(_BuiltProjectOutputGroupOutputIntermediate.FullPath)</OriginalItemSpec> | |
</BuiltProjectOutputGroupOutput> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
DebugSymbolsProjectOutputGroup | |
This target performs population of the Debug Symbols project output group. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<DebugSymbolsProjectOutputGroupDependsOn /> | |
</PropertyGroup> | |
<ItemGroup Condition="'$(_DebugSymbolsProduced)' != 'false' and '$(OutputType)' != 'winmdobj'"> | |
<DebugSymbolsProjectOutputGroupOutput Include="@(_DebugSymbolsIntermediatePath->'%(FullPath)')"> | |
<FinalOutputPath>@(_DebugSymbolsOutputPath->'%(FullPath)')</FinalOutputPath> | |
<TargetPath>@(_DebugSymbolsIntermediatePath->'%(Filename)%(Extension)')</TargetPath> | |
</DebugSymbolsProjectOutputGroupOutput> | |
</ItemGroup> | |
<ItemGroup Condition="'$(_DebugSymbolsProduced)' != 'false' and '$(OutputType)' == 'winmdobj'"> | |
<WinMDExpOutputPdbItem Include="$(WinMDExpOutputPdb)" Condition="'$(WinMDExpOutputPdb)' != ''" /> | |
<WinMDExpFinalOutputPdbItem Include="$(_WinMDDebugSymbolsOutputPath)" Condition="'$(_WinMDDebugSymbolsOutputPath)' != ''" /> | |
<DebugSymbolsProjectOutputGroupOutput Include="@(WinMDExpOutputPdbItem->'%(FullPath)')"> | |
<FinalOutputPath>@(WinMDExpFinalOutputPdbItem->'%(FullPath)')</FinalOutputPath> | |
<TargetPath>@(WinMDExpOutputPdbItem->'%(Filename)%(Extension)')</TargetPath> | |
</DebugSymbolsProjectOutputGroupOutput> | |
</ItemGroup> | |
<Target Name="DebugSymbolsProjectOutputGroup" Returns="@(DebugSymbolsProjectOutputGroupOutput)" DependsOnTargets="$(DebugSymbolsProjectOutputGroupDependsOn)" /> | |
<!-- | |
============================================================ | |
DocumentationProjectOutputGroup | |
This target performs population of the Documentation project output group. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<DocumentationProjectOutputGroupDependsOn /> | |
</PropertyGroup> | |
<ItemGroup Condition="'$(DocumentationFile)'!='' and '$(OutputType)' != 'winmdobj'"> | |
<DocumentationProjectOutputGroupOutput Include="@(DocFileItem->'%(FullPath)')"> | |
<FinalOutputPath>@(FinalDocFile->'%(FullPath)')</FinalOutputPath> | |
<IsKeyOutput>true</IsKeyOutput> | |
<TargetPath>@(DocFileItem->'%(Filename)%(Extension)')</TargetPath> | |
</DocumentationProjectOutputGroupOutput> | |
</ItemGroup> | |
<ItemGroup Condition="'$(DocumentationFile)' != '' and '$(OutputType)' == 'winmdobj'"> | |
<WinMDOutputDocumentationFileItem Include="$(WinMDOutputDocumentationFile)" Condition="'$(WinMDOutputDocumentationFile)' != ''" /> | |
<WinMDExpFinalOutputDocItem Include="$(_WinMDDocFileOutputPath)" Condition="'$(_WinMDDocFileOutputPath)' != ''" /> | |
<DocumentationProjectOutputGroupOutput Include="@(WinMDOutputDocumentationFileItem->'%(FullPath)')"> | |
<FinalOutputPath>@(WinMDExpFinalOutputDocItem->'%(FullPath)')</FinalOutputPath> | |
<TargetPath>@(WinMDOutputDocumentationFileItem->'%(Filename)%(Extension)')</TargetPath> | |
</DocumentationProjectOutputGroupOutput> | |
</ItemGroup> | |
<Target Name="DocumentationProjectOutputGroup" Returns="@(DocumentationProjectOutputGroupOutput)" DependsOnTargets="$(DocumentationProjectOutputGroupDependsOn)" /> | |
<!-- | |
============================================================ | |
SatelliteDllsProjectOutputGroup | |
This target performs population of the Satellite Files project output group. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<SatelliteDllsProjectOutputGroupDependsOn>PrepareForBuild;PrepareResourceNames</SatelliteDllsProjectOutputGroupDependsOn> | |
</PropertyGroup> | |
<Target Name="SatelliteDllsProjectOutputGroup" Returns="@(SatelliteDllsProjectOutputGroupOutput)" DependsOnTargets="$(SatelliteDllsProjectOutputGroupDependsOn)"> | |
<ItemGroup> | |
<SatelliteDllsProjectOutputGroupOutputIntermediate Include="$(IntermediateOutputPath)%(EmbeddedResource.Culture)\$(TargetName).resources.dll" Condition="'%(EmbeddedResource.WithCulture)' == 'true'"> | |
<TargetPath>%(EmbeddedResource.Culture)\$(TargetName).resources.dll</TargetPath> | |
<Culture>%(EmbeddedResource.Culture)</Culture> | |
</SatelliteDllsProjectOutputGroupOutputIntermediate> | |
</ItemGroup> | |
<!-- Convert intermediate items into final items; this way we can get the full path for each item. --> | |
<ItemGroup> | |
<SatelliteDllsProjectOutputGroupOutput Include="@(SatelliteDllsProjectOutputGroupOutputIntermediate->'%(FullPath)')"> | |
<FinalOutputPath Condition=" '%(SatelliteDllsProjectOutputGroupOutputIntermediate.FinalOutputPath)' == '' ">$(TargetDir)%(SatelliteDllsProjectOutputGroupOutputIntermediate.TargetPath)</FinalOutputPath> | |
<!-- For compatibility with 2.0 --> | |
<OriginalItemSpec>%(SatelliteDllsProjectOutputGroupOutputIntermediate.Identity)</OriginalItemSpec> | |
</SatelliteDllsProjectOutputGroupOutput> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
SourceFilesProjectOutputGroup | |
This target performs population of the Source Files project output group. | |
Source files are items in the project whose type is "Compile" and "EmbeddedResource". | |
============================================================ | |
--> | |
<PropertyGroup> | |
<SourceFilesProjectOutputGroupDependsOn>PrepareForBuild;AssignTargetPaths</SourceFilesProjectOutputGroupDependsOn> | |
</PropertyGroup> | |
<Target Name="SourceFilesProjectOutputGroup" Returns="@(SourceFilesProjectOutputGroupOutput)" DependsOnTargets="$(SourceFilesProjectOutputGroupDependsOn)"> | |
<AssignTargetPath Files="@(Compile)" RootFolder="$(MSBuildProjectDirectory)"> | |
<Output TaskParameter="AssignedFiles" ItemName="_CompileWithTargetPath" /> | |
</AssignTargetPath> | |
<ItemGroup> | |
<!-- First we deal with Compile, EmbeddedResource and AppConfig --> | |
<SourceFilesProjectOutputGroupOutput Include="@(_CompileWithTargetPath->'%(FullPath)');@(EmbeddedResource->'%(FullPath)');@(_LicxFile->'%(FullPath)');@(AppConfigWithTargetPath->'%(FullPath)')" /> | |
<!-- Include the project file --> | |
<SourceFilesProjectOutputGroupOutput Include="$(MSBuildProjectFullPath)"> | |
<!-- For compatibility with 2.0 --> | |
<OriginalItemSpec>$(MSBuildProjectFullPath)</OriginalItemSpec> | |
<TargetPath>$(ProjectFileName)</TargetPath> | |
</SourceFilesProjectOutputGroupOutput> | |
</ItemGroup> | |
</Target> | |
<!-- Get just the compile items --> | |
<Target Name="GetCompile" Returns="@(Compile)" /> | |
<!-- | |
============================================================ | |
ContentFilesProjectOutputGroup | |
This target performs population of the Content Files project output group. | |
Content files are items in the project whose type is "Content". | |
============================================================ | |
--> | |
<PropertyGroup> | |
<ContentFilesProjectOutputGroupDependsOn>PrepareForBuild;AssignTargetPaths</ContentFilesProjectOutputGroupDependsOn> | |
</PropertyGroup> | |
<Target Name="ContentFilesProjectOutputGroup" Returns="@(ContentFilesProjectOutputGroupOutput)" DependsOnTargets="$(ContentFilesProjectOutputGroupDependsOn)"> | |
<!-- Convert items into final items; this way we can get the full path for each item. --> | |
<ItemGroup> | |
<ContentFilesProjectOutputGroupOutput Include="@(ContentWithTargetPath->'%(FullPath)')" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
SGenFilesOutputGroup | |
This target performs population of the GenerateSerializationAssemblies Files project output group. | |
GenerateSerializationAssemblies files are those generated by the GenerateSerializationAssemblies target and task. | |
============================================================ | |
--> | |
<PropertyGroup> | |
<SGenFilesOutputGroupDependsOn /> | |
</PropertyGroup> | |
<ItemGroup Condition="'$(_SGenGenerateSerializationAssembliesConfig)' == 'On' or ('@(WebReferenceUrl)'!='' and '$(_SGenGenerateSerializationAssembliesConfig)' == 'Auto')"> | |
<SGenFilesOutputGroupOutput Include="@(_OutputPathItem->'%(FullPath)$(_SGenDllName)')"> | |
<FinalOutputPath>@(_OutputPathItem->'%(FullPath)$(_SGenDllName)')</FinalOutputPath> | |
<TargetPath>$(_SGenDllName)</TargetPath> | |
</SGenFilesOutputGroupOutput> | |
</ItemGroup> | |
<Target Name="SGenFilesOutputGroup" Returns="@(SGenFilesOutputGroupOutput)" DependsOnTargets="$(SGenFilesOutputGroupDependsOn)" /> | |
<!-- | |
============================================================ | |
SDKRelated Output groups | |
These targets are to gather information from the SDKs. | |
============================================================ | |
--> | |
<!-- Get the resolved SDK reference items --> | |
<Target Name="GetResolvedSDKReferences" DependsOnTargets="ResolveSDKReferences" Returns="@(ResolvedSDKReference)" /> | |
<!-- | |
============================================================ | |
PriFilesOutputGroup | |
This target performs population of the pri files output group | |
============================================================ | |
--> | |
<Target Name="PriFilesOutputGroup" Condition="'@(_ReferenceRelatedPaths)' != ''" DependsOnTargets="BuildOnlySettings;PrepareForBuild;AssignTargetPaths;ResolveReferences" Returns="@(PriFilesOutputGroupOutput)"> | |
<!-- This item represents dependent pri file's --> | |
<ItemGroup> | |
<PriFilesOutputGroupOutput Include="@(_ReferenceRelatedPaths->'%(FullPath)')" Condition="'%(Extension)' == '.pri'" /> | |
</ItemGroup> | |
</Target> | |
<PropertyGroup> | |
<SDKRedistOutputGroupDependsOn>ResolveSDKReferences;ExpandSDKReferences</SDKRedistOutputGroupDependsOn> | |
</PropertyGroup> | |
<!-- | |
============================================================ | |
SDKRedistOutputGroup | |
This target gathers the Redist folders from the SDKs which have been resolved. | |
============================================================ | |
--> | |
<Target Name="SDKRedistOutputGroup" Returns="@(SDKRedistOutputGroupOutput)" DependsOnTargets="$(SDKRedistOutputGroupDependsOn)"> | |
<!-- This list starts with the least specific files to the most specific so that later files can overwrite earlier files--> | |
<ItemGroup> | |
<SDKRedistOutputGroupOutput Include="@(ResolvedRedistFiles)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
*********************************************************************************************** | |
*********************************************************************************************** | |
AllProjectOutputGroupsDependencies Section | |
*********************************************************************************************** | |
*********************************************************************************************** | |
--> | |
<!-- | |
============================================================ | |
AllProjectOutputGroupsDependencies | |
============================================================ | |
--> | |
<Target Name="AllProjectOutputGroupsDependencies" DependsOnTargets="
 BuiltProjectOutputGroupDependencies;
 DebugSymbolsProjectOutputGroupDependencies;
 SatelliteDllsProjectOutputGroupDependencies;
 DocumentationProjectOutputGroupDependencies;
 SGenFilesOutputGroupDependencies" /> | |
<!-- | |
============================================================ | |
BuiltProjectOutputGroupDependencies | |
This target performs population of the Built project output group dependencies. | |
============================================================ | |
--> | |
<Target Name="BuiltProjectOutputGroupDependencies" DependsOnTargets="BuildOnlySettings;PrepareForBuild;AssignTargetPaths;ResolveReferences" Returns="@(BuiltProjectOutputGroupDependency)"> | |
<ItemGroup> | |
<BuiltProjectOutputGroupDependency Include="@(ReferencePath->'%(FullPath)');
 @(ReferenceDependencyPaths->'%(FullPath)');
 @(NativeReferenceFile->'%(FullPath)');
 @(_DeploymentLooseManifestFile->'%(FullPath)');
 @(ResolvedIsolatedComModules->'%(FullPath)')" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
DebugSymbolsProjectOutputGroupDependencies | |
This target performs population of the dependencies for the debug symbols project output group. | |
============================================================ | |
--> | |
<Target Name="DebugSymbolsProjectOutputGroupDependencies" Condition="'$(DebugSymbols)'!='false'" DependsOnTargets="BuildOnlySettings;PrepareForBuild;AssignTargetPaths;ResolveReferences" Returns="@(DebugSymbolsProjectOutputGroupDependency)"> | |
<!-- This item represents dependent PDB's --> | |
<ItemGroup> | |
<DebugSymbolsProjectOutputGroupDependency Include="@(_ReferenceRelatedPaths->'%(FullPath)')" Condition="'%(Extension)' == '$(_DebugFileExt)'" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
SatelliteDllsProjectOutputGroupDependencies | |
This target performs population of the dependencies for the satellite files project output group. | |
============================================================ | |
--> | |
<Target Name="SatelliteDllsProjectOutputGroupDependencies" DependsOnTargets="BuildOnlySettings;PrepareForBuild;AssignTargetPaths;ResolveReferences" Returns="@(SatelliteDllsProjectOutputGroupDependency)"> | |
<!-- This item represents dependent satellites --> | |
<ItemGroup> | |
<SatelliteDllsProjectOutputGroupDependency Include="@(ReferenceSatellitePaths->'%(FullPath)')" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
DocumentationProjectOutputGroupDependencies | |
This target performs population of the dependencies for the documentation project output group. | |
============================================================ | |
--> | |
<Target Name="DocumentationProjectOutputGroupDependencies" Condition="'$(DocumentationFile)'!=''" DependsOnTargets="BuildOnlySettings;PrepareForBuild;AssignTargetPaths;ResolveReferences" Returns="@(DocumentationProjectOutputGroupDependency)"> | |
<!-- This item represents dependent XMLs --> | |
<ItemGroup> | |
<DocumentationProjectOutputGroupDependency Include="@(_ReferenceRelatedPaths->'%(FullPath)')" Condition="'%(Extension)' == '.xml'" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
SGenFilesOutputGroupDependencies | |
This target performs population of the dependencies for the GenerateSerializationAssemblies project output group. | |
============================================================ | |
--> | |
<Target Name="SGenFilesOutputGroupDependencies" DependsOnTargets="BuildOnlySettings;PrepareForBuild;AssignTargetPaths;ResolveReferences" Returns="@(SGenFilesOutputGroupDependency)"> | |
<!-- This item represents sgen xml serializer dll's --> | |
<ItemGroup> | |
<SGenFilesOutputGroupDependency Include="@(_ReferenceSerializationAssemblyPaths->'%(FullPath)')" Condition="'%(Extension)' == '.dll'" /> | |
</ItemGroup> | |
</Target> | |
<PropertyGroup> | |
<CodeAnalysisTargets Condition="'$(CodeAnalysisTargets)'==''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeAnalysis\Microsoft.CodeAnalysis.targets</CodeAnalysisTargets> | |
</PropertyGroup> | |
<!--<Import Project="$(CodeAnalysisTargets)" Condition="Exists('$(CodeAnalysisTargets)')" />--> | |
<!--<Import Project="$(ReportingServicesTargets)" Condition="Exists('$(ReportingServicesTargets)')" />--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildToolsPath)\Microsoft.NETFramework.targets" Condition="('$(TargetFrameworkIdentifier)' == '' or '$(TargetFrameworkIdentifier)' == '.NETFramework') and ('$(TargetRuntime)' == 'Managed')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.NETFramework.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NetFramework.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file contains .net framework specific properties, items and targets. They are factored into a Microsoft.NETFramework.targets and Microsoft.NetFramework.props | |
these two files are used to encapsulate the multi-targeting and framework specific build process. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<!-- | |
In VS 2010 SP1 and VS 2012, both supported for asset compatibility, the MSBuild installed | |
as part of them did not enforce using the local ToolsVersion (4.0) in all cases, but instead | |
just used whatever ToolsVersion was in the project file if it existed on the machine, and | |
only forced 4.0 if that ToolsVersion did not exist. | |
Moving forward, we do want to enforce a single acting ToolsVersion per version of Visual Studio, | |
but in order to approximate this behavior on VS 2010 SP1 and VS 2012 as well, we've redirected | |
the targets: If we're building using 4.X MSBuild (which doesn't define the new reserved | |
property, MSBuildAssemblyVersion), we'll point right back at the 4.0 targets, which still exist | |
as part of the .NET Framework. Only if we're using the new MSBuild will we point to the current | |
targets. | |
--> | |
<Choose> | |
<When Condition="'$(MSBuildAssemblyVersion)' == ''"> | |
<PropertyGroup> | |
<NetFrameworkTargetsPath>$(MSBuildFrameworkToolsPath)\Microsoft.NETFramework.targets</NetFrameworkTargetsPath> | |
</PropertyGroup> | |
</When> | |
<Otherwise> | |
<PropertyGroup> | |
<NetFrameworkTargetsPath>$(MSBuildToolsPath)\Microsoft.NETFramework.CurrentVersion.targets</NetFrameworkTargetsPath> | |
</PropertyGroup> | |
</Otherwise> | |
</Choose> | |
<PropertyGroup Condition="'$(MSBuildAssemblyVersion)' == ''"> | |
<!-- | |
Overrides for the Microsoft.NETFramework.targets extension targets. Used to make sure that only the imports we specify | |
(hard-coded to 4.0 locations) are used, not the 12.0 locations that would be used by default. | |
--> | |
<ImportByWildcardBefore40MicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkTargets)' == ''">$(ImportByWildcardBeforeMicrosoftNetFrameworkTargets)</ImportByWildcardBefore40MicrosoftNetFrameworkTargets> | |
<ImportByWildcardBefore40MicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkTargets)' == ''">true</ImportByWildcardBefore40MicrosoftNetFrameworkTargets> | |
<ImportByWildcardAfter40MicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkTargets)' == ''">$(ImportByWildcardAfterMicrosoftNetFrameworkTargets)</ImportByWildcardAfter40MicrosoftNetFrameworkTargets> | |
<ImportByWildcardAfter40MicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkTargets)' == ''">true</ImportByWildcardAfter40MicrosoftNetFrameworkTargets> | |
<ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets)' == ''">$(ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets)</ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets> | |
<ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets)' == ''">true</ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets> | |
<ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets)' == ''">$(ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets)</ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets> | |
<ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets)' == ''">true</ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets> | |
<ImportByWildcardBeforeMicrosoftNetFrameworkTargets>false</ImportByWildcardBeforeMicrosoftNetFrameworkTargets> | |
<ImportByWildcardAfterMicrosoftNetFrameworkTargets>false</ImportByWildcardAfterMicrosoftNetFrameworkTargets> | |
<ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets>false</ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets> | |
<ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets>false</ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets> | |
</PropertyGroup> | |
<!--<ImportGroup Condition="'$(MSBuildAssemblyVersion)' == ''">--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportBefore\*" Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportBefore')" />--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportBefore\*" Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportBefore')" />--> | |
<!--</ImportGroup>--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(NetFrameworkTargetsPath)"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.NETFramework.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NETFramework.CurrentVersion.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file contains .net framework specific properties, items and targets. They are factored into a Microsoft.NETFramework.targets and Microsoft.NetFramework.props | |
these two files are used to encapsulate the multi-targeting and framework specific build process. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<ImportByWildcardBeforeMicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardBeforeMicrosoftNetFrameworkTargets)' == ''">true</ImportByWildcardBeforeMicrosoftNetFrameworkTargets> | |
<ImportByWildcardAfterMicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardAfterMicrosoftNetFrameworkTargets)' == ''">true</ImportByWildcardAfterMicrosoftNetFrameworkTargets> | |
<ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets)' == ''">true</ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets> | |
<ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets)' == ''">true</ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.targets\ImportBefore\*" Condition="'$(ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.targets\ImportBefore')" />--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.targets\ImportBefore\*" Condition="'$(ImportByWildcardBeforeMicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.targets\ImportBefore')" />--> | |
<PropertyGroup> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
</PropertyGroup> | |
<Target Name="GetFrameworkPaths" DependsOnTargets="$(GetFrameworkPathsDependsOn)"> | |
<!-- For backwards compatibility of targets who replaced this target we cannot move these values outside the target even though they | |
now only depend on statically availiable values--> | |
<ItemGroup> | |
<_TargetFramework40DirectoryItem Include="$(MSBuildFrameworkToolsRoot)v4.0.30319" /> | |
<_TargetFramework35DirectoryItem Include="$(MSBuildFrameworkToolsRoot)v3.5" /> | |
<_TargetFramework30DirectoryItem Include="$(MSBuildFrameworkToolsRoot)v3.0" /> | |
<_TargetFramework20DirectoryItem Include="$(MSBuildFrameworkToolsRoot)v2.0.50727" /> | |
<_TargetedFrameworkDirectoryItem Condition="'$(TargetFrameworkVersion)' == 'v2.0'" Include="@(_TargetFramework20DirectoryItem)" /> | |
<_TargetedFrameworkDirectoryItem Condition="'$(TargetFrameworkVersion)' == 'v3.0' OR '$(TargetFrameworkVersion)' == 'v3.5'" Include="$(MSBuildFrameworkToolsRoot)\$(TargetFrameworkVersion)" /> | |
<_TargetedFrameworkDirectoryItem Condition="'@(_TargetedFrameworkDirectoryItem)' == ''" Include="@(_TargetFramework40DirectoryItem)" /> | |
</ItemGroup> | |
<ItemGroup> | |
<_CombinedTargetFrameworkDirectoriesItem Condition=" '$(TargetFrameworkVersion)' == 'v4.0' " Include="@(_TargetFramework40DirectoryItem)" /> | |
<_CombinedTargetFrameworkDirectoriesItem Condition=" '$(TargetFrameworkVersion)' == 'v3.5'" Include="@(_TargetFramework35DirectoryItem)" /> | |
<_CombinedTargetFrameworkDirectoriesItem Condition=" '$(TargetFrameworkVersion)' == 'v3.0' or '$(TargetFrameworkVersion)' == 'v3.5'" Include="@(_TargetFramework30DirectoryItem)" /> | |
<_CombinedTargetFrameworkDirectoriesItem Condition=" '$(TargetFrameworkVersion)' == 'v2.0' or '$(TargetFrameworkVersion)' == 'v3.0' or '$(TargetFrameworkVersion)' == 'v3.5'" Include="@(_TargetFramework20DirectoryItem)" /> | |
<_CombinedTargetFrameworkDirectoriesItem Condition=" '@(_CombinedTargetFrameworkDirectoriesItem)' == ''" Include="@(_TargetedFrameworkDirectoryItem)" /> | |
</ItemGroup> | |
<PropertyGroup> | |
<TargetFrameworkDirectory>@(_CombinedTargetFrameworkDirectoriesItem)</TargetFrameworkDirectory> | |
<TargetFrameworkSDKDirectory>$(FrameworkSDKRoot)</TargetFrameworkSDKDirectory> | |
</PropertyGroup> | |
<ItemGroup> | |
<_TargetFrameworkSDKDirectoryItem Include="$(TargetFrameworkSDKDirectory)" /> | |
</ItemGroup> | |
</Target> | |
<PropertyGroup> | |
<ResolveReferencesDependsOn> | |
$(ResolveReferencesDependsOn); | |
ImplicitlyExpandDesignTimeFacades | |
</ResolveReferencesDependsOn> | |
<ImplicitlyExpandDesignTimeFacadesDependsOn> | |
$(ImplicitlyExpandDesignTimeFacadesDependsOn); | |
GetReferenceAssemblyPaths | |
</ImplicitlyExpandDesignTimeFacadesDependsOn> | |
</PropertyGroup> | |
<!-- Implicitly references all portable design-time facades if the user is referencing a System.Runtime-based portable library --> | |
<Target Name="ImplicitlyExpandDesignTimeFacades" Condition="'$(ImplicitlyExpandDesignTimeFacades)' == 'true'" DependsOnTargets="$(ImplicitlyExpandDesignTimeFacadesDependsOn)"> | |
<PropertyGroup> | |
<!-- Does one of our dependencies reference a System.Runtime-based portable library? --> | |
<_HasReferenceToSystemRuntime Condition="'$(DependsOnSystemRuntime)' == 'true'">true</_HasReferenceToSystemRuntime> | |
<_HasReferenceToSystemRuntime Condition="'%(_ResolvedProjectReferencePaths.TargetPlatformIdentifier)' == 'Portable'">true</_HasReferenceToSystemRuntime> | |
<_HasReferenceToSystemRuntime Condition="'%(_ResolvedProjectReferencePaths.TargetFrameworkIdentifier)' == '.NETStandard' and '%(_ResolvedProjectReferencePaths.TargetFrameworkVersion)' < '2.0'">true</_HasReferenceToSystemRuntime> | |
</PropertyGroup> | |
<ItemGroup Condition="'$(_HasReferenceToSystemRuntime)' == 'true'"> | |
<_DesignTimeFacadeAssemblies Include="%(DesignTimeFacadeDirectories.Identity)*.dll" /> | |
<_DesignTimeFacadeAssemblies_Names Include="@(_DesignTimeFacadeAssemblies->'%(FileName)')"> | |
<OriginalIdentity>%(_DesignTimeFacadeAssemblies.Identity)</OriginalIdentity> | |
</_DesignTimeFacadeAssemblies_Names> | |
<_ReferencePath_Names Include="@(ReferencePath->'%(FileName)')"> | |
<OriginalIdentity>%(ReferencePath.Identity)</OriginalIdentity> | |
</_ReferencePath_Names> | |
<_DesignTimeFacadeAssemblies_Names Remove="@(_ReferencePath_Names)" /> | |
<ReferencePath Include="@(_DesignTimeFacadeAssemblies_Names->'%(OriginalIdentity)')"> | |
<WinMDFile>false</WinMDFile> | |
<CopyLocal>false</CopyLocal> | |
<ResolvedFrom>ImplicitlyExpandDesignTimeFacades</ResolvedFrom> | |
</ReferencePath> | |
<_ResolveAssemblyReferenceResolvedFiles Include="@(ReferencePath)" Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandDesignTimeFacades'" /> | |
</ItemGroup> | |
<Message Importance="Low" Text="Including @(ReferencePath)" Condition="'%(ReferencePath.ResolvedFrom)' == 'ImplicitlyExpandDesignTimeFacades'" /> | |
</Target> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildToolsPath)\Microsoft.WinFX.targets" Condition="'$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetCompactFramework)' != 'true' and Exists('$(MSBuildToolsPath)\Microsoft.WinFX.targets')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.WinFX.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
With MSBuild 12, we've changed MSBuildToolsPath to for the first time point to a directory | |
outside of the .NET Framework. As a result of this, there were several targets files, of which | |
this was one, that were being referenced as out of MSBuildToolsPath that are now no longer there. | |
Thus, we are shimming those targets files so that they do still appear in MSBuildToolsPath, so that | |
consumers of them are not broken, but since the targets files themselves are still part of .NET, | |
the shim will internally simply redirect to the real copy of the targets file in the .NET Framework. | |
--> | |
<!--<Import Project="$(MSBuildFrameworkToolsPath)\Microsoft.WinFx.targets" Condition="Exists('$(MSBuildFrameworkToolsPath)\Microsoft.WinFx.targets')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.NETFramework.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildToolsPath)\Microsoft.Data.Entity.targets" Condition="'$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetFrameworkVersion)' != 'v3.0' and Exists('$(MSBuildToolsPath)\Microsoft.Data.Entity.targets')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Data.Entity.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
With MSBuild 12, we've changed MSBuildToolsPath to for the first time point to a directory | |
outside of the .NET Framework. As a result of this, there were several targets files, of which | |
this was one, that were being referenced as out of MSBuildToolsPath that are now no longer there. | |
Thus, we are shimming those targets files so that they do still appear in MSBuildToolsPath, so that | |
consumers of them are not broken, but since the targets files themselves are still part of .NET, | |
the shim will internally simply redirect to the real copy of the targets file in the .NET Framework. | |
--> | |
<!--<Import Project="$(MSBuildFrameworkToolsPath)\Microsoft.Data.Entity.targets" Condition="Exists('$(MSBuildFrameworkToolsPath)\Microsoft.Data.Entity.targets')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.NETFramework.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.targets\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.targets\ImportAfter')" />--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.targets\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.NETFramework.targets\ImportAfter')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.NETFramework.targets | |
============================================================================================================================================ | |
--> | |
<!--<ImportGroup Condition="'$(MSBuildAssemblyVersion)' == ''">--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportAfter\*" Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportAfter')" />--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportAfter')" />--> | |
<!--</ImportGroup>--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<PropertyGroup> | |
<ImportXamlTargets Condition="'$(ImportXamlTargets)'=='' and ('$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetFrameworkVersion)' != 'v3.5') and Exists('$(MSBuildToolsPath)\Microsoft.Xaml.targets')">true</ImportXamlTargets> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildToolsPath)\Microsoft.Xaml.targets" Condition="('$(ImportXamlTargets)' == 'true')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Xaml.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
With MSBuild 12, we've changed MSBuildToolsPath to for the first time point to a directory | |
outside of the .NET Framework. As a result of this, there were several targets files, of which | |
this was one, that were being referenced as out of MSBuildToolsPath that are now no longer there. | |
Thus, we are shimming those targets files so that they do still appear in MSBuildToolsPath, so that | |
consumers of them are not broken, but since the targets files themselves are still part of .NET, | |
the shim will internally simply redirect to the real copy of the targets file in the .NET Framework. | |
--> | |
<!-- In the original Microsoft.Xaml.targets this is mapped to MSBuildBinPath, which is no longer | |
the .NET Framework directory and thus will no longer be the right answer. Override it to point | |
to the correct .NET Framework location. --> | |
<PropertyGroup> | |
<XamlBuildTaskPath Condition="'$(XamlBuildTaskPath)' == ''">$(MSBuildToolsPath64)</XamlBuildTaskPath> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildFrameworkToolsPath)\Microsoft.Xaml.targets" Condition="Exists('$(MSBuildFrameworkToolsPath)\Microsoft.Xaml.targets')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!-- imports Microsoft.WorkflowBuildExtensions.targets only if TargetFrameworkVersion is v4.5 or above or TargetFrameworkfVersion specified does not conform to the format of vX.X[.X.X] --> | |
<!-- Underlying assumption is that there shouldn't be any other versions between v4.0.* and v4.5 --> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildToolsPath)\Microsoft.WorkflowBuildExtensions.targets" Condition="('$(TargetFrameworkVersion)' != 'v2.0' and '$(TargetFrameworkVersion)' != 'v3.5' and (!$([System.String]::IsNullOrEmpty('$(TargetFrameworkVersion)')) and !$(TargetFrameworkVersion.StartsWith('v4.0')))) and Exists('$(MSBuildToolsPath)\Microsoft.WorkflowBuildExtensions.targets')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.WorkflowBuildExtensions.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.WorkflowBuildExtensions.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<!-- | |
With MSBuild 12, we've changed MSBuildToolsPath to for the first time point to a directory | |
outside of the .NET Framework. As a result of this, there were several targets files, of which | |
this was one, that were being referenced as out of MSBuildToolsPath that are now no longer there. | |
Thus, we are shimming those targets files so that they do still appear in MSBuildToolsPath, so that | |
consumers of them are not broken, but since the targets files themselves are still part of .NET, | |
the shim will internally simply redirect to the real copy of the targets file in the .NET Framework. | |
--> | |
<!--<Import Project="$(MSBuildFrameworkToolsPath)\Microsoft.WorkflowBuildExtensions.targets" Condition="Exists('$(MSBuildFrameworkToolsPath)\Microsoft.WorkflowBuildExtensions.targets')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!-- This import is temporary and will be removed once it is moved into the silverlight targets --> | |
<!--<Import Project="$(MSBuildToolsPath)\Microsoft.WinFX.targets" Condition="'$(TargetFrameworkIdentifier)' == 'Silverlight' and Exists('$(MSBuildToolsPath)\Microsoft.WinFX.targets')" />--> | |
<PropertyGroup> | |
<MsTestToolsTargets Condition="'$(MsTestToolsTargets)'==''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TeamTest\Microsoft.TeamTest.targets</MsTestToolsTargets> | |
</PropertyGroup> | |
<!--<Import Project="$(MsTestToolsTargets)" Condition="Exists('$(MsTestToolsTargets)')" />--> | |
<!-- App packaging support --> | |
<!-- | |
Following two targets are needed to be present in every project being built | |
because the app packaging targets recursively scan all projects referenced | |
from projects that generate app packages for them. | |
--> | |
<Target Name="CleanAppxPackage" /> | |
<Target Name="GetPackagingOutputs" /> | |
<PropertyGroup> | |
<MsAppxPackageTargets Condition="'$(MsAppxPackageTargets)'==''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\AppxPackage\Microsoft.AppXPackage.Targets</MsAppxPackageTargets> | |
</PropertyGroup> | |
<PropertyGroup> | |
<CommonMonoTargetsPath Condition="'$(CommonMonoTargetsPath)' == ''">Microsoft.Common.Mono.targets</CommonMonoTargetsPath> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(CommonMonoTargetsPath)" Condition="'$(MSBuildRuntimeType)' == 'Mono'"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.Mono.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.Common.Mono.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
This file defines the steps in the standard build process specific for C# .NET projects. | |
For example, it contains the step that actually calls the C# compiler. The remainder | |
of the build process is defined in Microsoft.Common.targets, which is imported by | |
this file. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<Target Name="ResolveNativeReferences" /> | |
<Target Name="GenerateManifests" /> | |
<PropertyGroup> | |
<GenerateManifestsDependsOn /> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!--<Import Project="$(MsAppxPackageTargets)" Condition="'$(WindowsAppContainer)' == 'true' and Exists('$(MsAppxPackageTargets)')" />--> | |
<!-- This import is temporary and will be removed once it is moved into the silverlight targets --> | |
<!--<Import Project="$(MSBuildToolsPath)\Microsoft.Data.Entity.targets" Condition="'$(TargetFrameworkIdentifier)' == 'Silverlight' and Exists('$(MSBuildToolsPath)\Microsoft.Data.Entity.targets')" />--> | |
<!--<Import Project="$(CustomAfterMicrosoftCommonTargets)" Condition="'$(CustomAfterMicrosoftCommonTargets)' != '' and Exists('$(CustomAfterMicrosoftCommonTargets)')" />--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.Common.Mono.After.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.Common.Mono.After.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<UsingTask TaskName="Mono.Build.Tasks.FilterDeniedAssemblies" AssemblyFile="$(MSBuildExtensionsPath)\Mono.Build.Tasks.dll" /> | |
<PropertyGroup> | |
<FilterDeniedAssemblies Condition="$(FilterDeniedAssemblies) == ''">false</FilterDeniedAssemblies> | |
</PropertyGroup> | |
<Target Name="FilterDeniedAssemblyReferences" BeforeTargets="ResolveAssemblyReferences" Condition="'$(FilterDeniedAssemblies)' == 'true'"> | |
<FilterDeniedAssemblies References="@(Reference)" SearchPaths="$(TargetFrameworkDirectory);$(DesignTimeFacadeDirectories)"> | |
<Output TaskParameter="DeniedReferencesThatCouldNotBeFixed" ItemName="DeniedReferencesThatCouldNotBeFixed" /> | |
<Output TaskParameter="FilteredReferences" ItemName="FilteredReferences" /> | |
</FilterDeniedAssemblies> | |
<ItemGroup> | |
<Reference Remove="@(Reference)" /> | |
<Reference Include="@(FilteredReferences)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.NET.Build.Extensions.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NET.Build.Extensions.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (c) .NET Foundation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
<MicrosoftNETBuildExtensionsTargets Condition="'$(MicrosoftNETBuildExtensionsTargets)' == ''">$(MSBuildExtensionsPath)\Microsoft\Microsoft.NET.Build.Extensions\Microsoft.NET.Build.Extensions.targets</MicrosoftNETBuildExtensionsTargets> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MicrosoftNETBuildExtensionsTargets)" Condition="Exists('$(MicrosoftNETBuildExtensionsTargets)')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NET.Build.Extensions.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (c) .NET Foundation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
<_TargetFrameworkVersionWithoutV>$(TargetFrameworkVersion)</_TargetFrameworkVersionWithoutV> | |
<_TargetFrameworkVersionWithoutV Condition="$(TargetFrameworkVersion.StartsWith('v'))">$(TargetFrameworkVersion.Substring(1))</_TargetFrameworkVersionWithoutV> | |
<MicrosoftNETBuildExtensionsTasksAssembly Condition="'$(MicrosoftNETBuildExtensionsTasksAssembly)' == '' AND '$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)\tools\netcoreapp1.0\Microsoft.NET.Build.Extensions.Tasks.dll</MicrosoftNETBuildExtensionsTasksAssembly> | |
<MicrosoftNETBuildExtensionsTasksAssembly Condition="'$(MicrosoftNETBuildExtensionsTasksAssembly)' == ''">$(MSBuildThisFileDirectory)\tools\net46\Microsoft.NET.Build.Extensions.Tasks.dll</MicrosoftNETBuildExtensionsTasksAssembly> | |
<!-- Include conflict resolution targets for NETFramework and allow other frameworks to opt-in --> | |
<ResolveAssemblyConflicts Condition="'$(ResolveAssemblyConflicts)' == '' AND '$(TargetFrameworkIdentifier)' == '.NETFramework'">true</ResolveAssemblyConflicts> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="Microsoft.NET.Build.Extensions.NETFramework.targets" Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.NETFramework.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NET.Build.Extensions.NETFramework.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (c) .NET Foundation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
<!-- Add NETStandard references if targetframeworkversion supports netstandard2.0 (net461 or later) --> | |
<ImplicitlyExpandNETStandardFacades Condition="'$(ImplicitlyExpandNETStandardFacades)' == '' AND '$(_TargetFrameworkVersionWithoutV)' >= '4.6.1'">true</ImplicitlyExpandNETStandardFacades> | |
</PropertyGroup> | |
<UsingTask TaskName="GetDependsOnNETStandard" AssemblyFile="$(MicrosoftNETBuildExtensionsTasksAssembly)" /> | |
<UsingTask TaskName="NETBuildExtensionsError" AssemblyFile="$(MicrosoftNETBuildExtensionsTasksAssembly)" /> | |
<Target Name="ImplicitlyExpandNETStandardFacades" Condition="'$(ImplicitlyExpandNETStandardFacades)' == 'true'" BeforeTargets="_HandlePackageFileConflicts;ResolveAssemblyReferences"> | |
<ItemGroup> | |
<_CandidateNETStandardReferences Include="@(Reference);@(_ResolvedProjectReferencePaths)" /> | |
<_InboxNETStandardFolders Include="$(TargetFrameworkDirectory)" /> | |
</ItemGroup> | |
<!-- determine if NETStandard.dll is supported inbox for this TargetFramework --> | |
<PropertyGroup Condition="'$(NETStandardInbox)' == ''"> | |
<NETStandardInbox Condition="Exists('%(_InboxNETStandardFolders.Identity)\netstandard.dll')">true</NETStandardInbox> | |
</PropertyGroup> | |
<!-- determine if any references depend on NETStandard --> | |
<!-- Check metadata of _ResolvedProjectReferencePaths items. This handles the case where we are doing a design-time build and a referenced project | |
hasn't been built yet, so there is no corresponding assembly on disk for the GetDependsOnNETStandard task to examine. | |
More context: https://github.com/dotnet/sdk/issues/1403 | |
--> | |
<PropertyGroup Condition="'$(DependsOnNETStandard)' == '' AND '$(NETStandardInbox)' != 'true'"> | |
<DependsOnNETStandard Condition="('%(_ResolvedProjectReferencePaths.TargetFrameworkIdentifier)' == '.NETStandard') And ('%(_ResolvedProjectReferencePaths.TargetFrameworkVersion)' >= '1.5')">true</DependsOnNETStandard> | |
</PropertyGroup> | |
<GetDependsOnNETStandard Condition="'$(DependsOnNETStandard)' == '' AND '$(NETStandardInbox)' != 'true' AND '@(_CandidateNETStandardReferences)' != ''" References="@(_CandidateNETStandardReferences)"> | |
<Output TaskParameter="DependsOnNETStandard" PropertyName="DependsOnNETStandard" /> | |
</GetDependsOnNETStandard> | |
<!-- prevent using an older SDK version with NETStandard2.0 references --> | |
<PropertyGroup> | |
<_UsingOldSDK Condition="'$(UsingMicrosoftNETSdk)' != 'true' AND ('$(TargetFramework)' != '' OR '$(TargetFrameworks)' != '')">true</_UsingOldSDK> | |
</PropertyGroup> | |
<NETBuildExtensionsError Condition="'$(DependsOnNETStandard)' == 'true' AND '$(NETStandardInbox)' != 'true' AND '$(_UsingOldSDK)' == 'true'" ResourceName="UnsupportedSDKVersionForNetStandard20" /> | |
<!-- if any reference depends on netstandard and it is not inbox, add references and implementation assemblies for netstandard2.0 --> | |
<ItemGroup Condition="'$(DependsOnNETStandard)' == 'true' AND '$(NETStandardInbox)' != 'true'"> | |
<_NETStandardLibraryNETFrameworkReference Condition="'$(_TargetFrameworkVersionWithoutV)' >= '4.7'" Include="$(MSBuildThisFileDirectory)\net47\ref\*.dll" /> | |
<_NETStandardLibraryNETFrameworkReference Condition="'$(_TargetFrameworkVersionWithoutV)' >= '4.6.2'" Include="$(MSBuildThisFileDirectory)\net462\ref\*.dll" Exclude="@(_NETStandardLibraryNETFrameworkReference->'$(MSBuildThisFileDirectory)\net462\ref\%(FileName).dll')" /> | |
<_NETStandardLibraryNETFrameworkReference Condition="'$(_TargetFrameworkVersionWithoutV)' >= '4.6.1'" Include="$(MSBuildThisFileDirectory)\net461\ref\*.dll" Exclude="@(_NETStandardLibraryNETFrameworkReference->'$(MSBuildThisFileDirectory)\net461\ref\%(FileName).dll')" /> | |
<_NETStandardLibraryNETFrameworkLib Condition="'$(_TargetFrameworkVersionWithoutV)' >= '4.7'" Include="$(MSBuildThisFileDirectory)\net47\lib\*.dll" /> | |
<_NETStandardLibraryNETFrameworkLib Condition="'$(_TargetFrameworkVersionWithoutV)' >= '4.6.2'" Include="$(MSBuildThisFileDirectory)\net462\lib\*.dll" Exclude="@(_NETStandardLibraryNETFrameworkLib->'$(MSBuildThisFileDirectory)\net462\lib\%(FileName).dll')" /> | |
<_NETStandardLibraryNETFrameworkLib Condition="'$(_TargetFrameworkVersionWithoutV)' >= '4.6.1'" Include="$(MSBuildThisFileDirectory)\net461\lib\*.dll" Exclude="@(_NETStandardLibraryNETFrameworkLib->'$(MSBuildThisFileDirectory)\net461\lib\%(FileName).dll')" /> | |
<!-- Remove simple name references if we're directly providing a reference assembly to the compiler. For example, | |
consider a project with a Reference Include="System.Net.Http" or "System.IO.Compression", which are both in | |
_NETStandardLibraryNETFrameworkReference. | |
Simple references can also come from NuGet framework assemblies, hence this statement should occur after | |
including all computed references, thus this target is scheduled after references have been raised by NuGet | |
targets. --> | |
<Reference Remove="%(_NETStandardLibraryNETFrameworkReference.FileName)" /> | |
<Reference Include="@(_NETStandardLibraryNETFrameworkReference)"> | |
<Private>false</Private> | |
</Reference> | |
<ReferenceCopyLocalPaths Include="@(_NETStandardLibraryNETFrameworkLib)"> | |
<Private>false</Private> | |
</ReferenceCopyLocalPaths> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets | |
============================================================================================================================================ | |
--> | |
<!-- Only import ConflictResolution targets for non-SDK projects, SDK projects have ConflictResolution built in --> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="Microsoft.NET.Build.Extensions.ConflictResolution.targets" Condition="'$(ResolveAssemblyConflicts)' == 'true' AND '$(UsingMicrosoftNETSdk)' != 'true'"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.ConflictResolution.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NET.Build.Extensions.ConflictResolution.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (c) .NET Foundation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(DisableHandlePackageFileConflicts)' != 'true'"> | |
<!-- Non-SDK using project.json or PackageReference, run after references are read from the lock/assets file --> | |
<_HandlePackageFileConflictsAfter>ResolveNuGetPackageAssets</_HandlePackageFileConflictsAfter> | |
<!-- In case ResolveNuGetPackageAssets is not run (eg: packages.config), ensure we run before targets that consume references --> | |
<_HandlePackageFileConflictsBefore>ResolveAssemblyReferences</_HandlePackageFileConflictsBefore> | |
</PropertyGroup> | |
<UsingTask TaskName="ResolvePackageFileConflicts" AssemblyFile="$(MicrosoftNETBuildExtensionsTasksAssembly)" /> | |
<Target Name="_HandlePackageFileConflicts" BeforeTargets="$(_HandlePackageFileConflictsBefore)" AfterTargets="$(_HandlePackageFileConflictsAfter)"> | |
<ResolvePackageFileConflicts References="@(Reference)" ReferenceCopyLocalPaths="@(ReferenceCopyLocalPaths)" PlatformManifests="@(PackageConflictPlatformManifests)" PreferredPackages="$(PackageConflictPreferredPackages)"> | |
<Output TaskParameter="ReferencesWithoutConflicts" ItemName="_ReferencesWithoutConflicts" /> | |
<Output TaskParameter="ReferenceCopyLocalPathsWithoutConflicts" ItemName="_ReferenceCopyLocalPathsWithoutConflicts" /> | |
<Output TaskParameter="Conflicts" ItemName="_ConflictPackageFiles" /> | |
</ResolvePackageFileConflicts> | |
<!-- Replace Reference / ReferenceCopyLocalPaths with the filtered lists. | |
We must remove all and include rather than just remove since removal is based | |
only on ItemSpec and duplicate ItemSpecs may exist with different metadata | |
(eg: HintPath) --> | |
<ItemGroup> | |
<Reference Remove="@(Reference)" /> | |
<Reference Include="@(_ReferencesWithoutConflicts)" /> | |
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" /> | |
<ReferenceCopyLocalPaths Include="@(_ReferenceCopyLocalPathsWithoutConflicts)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/Microsoft/Microsoft.NET.Build.Extensions/Microsoft.NET.Build.Extensions.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.NET.Build.Extensions.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.NuGet.ImportAfter.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
Microsoft.NuGet.ImportAfter.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (c) .NET Foundation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<NuGetTargets Condition="'$(NuGetTargets)'==''">$(MSBuildExtensionsPath)\Microsoft\NuGet\Microsoft.NuGet.targets</NuGetTargets> | |
</PropertyGroup> | |
<!--<Import Project="$(NuGetTargets)" Condition="Exists('$(NuGetTargets)')" />--> | |
<!-- Import NuGet.targets for Restore --> | |
<PropertyGroup> | |
<NuGetRestoreTargets Condition="'$(NuGetRestoreTargets)'==''">$(MSBuildExtensionsPath)\NuGet.targets</NuGetRestoreTargets> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(NuGetRestoreTargets)" Condition="Exists('$(NuGetRestoreTargets)')"> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/NuGet.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
NuGet.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
Copyright (c) .NET Foundation. All rights reserved. | |
*********************************************************************************************** | |
This target file contains the NuGet Restore target for walking the project and reference graph | |
and restoring dependencies from the graph. | |
Ways to use this targets file: | |
1. Invoke it directly and provide project file paths using $(RestoreGraphProjectInput). | |
2. With a solution this may be used as a target in the metaproj. | |
3. Import the targets file from a project. | |
Restore flow summary: | |
1. Top level projects (entry points) are determined. | |
2. Each project and all of its project references are walked recursively. | |
3. The project is evaluated for each $(TargetFramework). Items are created | |
for project properties and dependencies. Each item is marked | |
with the project it came from so that it can be matched up later. | |
4. All restore items generated by the walk are grouped together by | |
project and convert into a project spec. | |
The result file contains: | |
1. A list of projects to restore. | |
2. The complete closure of all projects referenced (Includes project references that are not being restored directly). | |
3. Package and project dependencies for each project. | |
4. DotnetCliTool references | |
--> | |
<PropertyGroup> | |
<!-- Mark that this target file has been loaded. --> | |
<IsRestoreTargetsFileLoaded>true</IsRestoreTargetsFileLoaded> | |
<!-- Load NuGet.Build.Tasks.dll, this can be overridden to use a different version with $(RestoreTaskAssemblyFile) --> | |
<RestoreTaskAssemblyFile Condition=" '$(RestoreTaskAssemblyFile)' == '' ">NuGet.Build.Tasks.dll</RestoreTaskAssemblyFile> | |
<!-- Do not hide errors and warnings by default --> | |
<HideWarningsAndErrors Condition=" '$(HideWarningsAndErrors)' == '' ">false</HideWarningsAndErrors> | |
<!-- Recurse by default --> | |
<RestoreRecursive Condition=" '$(RestoreRecursive)' == '' ">true</RestoreRecursive> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> | |
<!-- RuntimeIdentifier compatibility check --> | |
<ValidateRuntimeIdentifierCompatibility Condition=" '$(ValidateRuntimeIdentifierCompatibility)' == '' ">false</ValidateRuntimeIdentifierCompatibility> | |
<!-- Error handling while walking projects --> | |
<RestoreContinueOnError Condition=" '$(RestoreContinueOnError)' == '' ">WarnAndContinue</RestoreContinueOnError> | |
</PropertyGroup> | |
<PropertyGroup> | |
<!-- Generate a restore graph for each entry point project. --> | |
<_GenerateRestoreGraphProjectEntryInputProperties> | |
RestoreUseCustomAfterTargets=$(RestoreUseCustomAfterTargets); | |
NuGetRestoreTargets=$(MSBuildThisFileFullPath); | |
BuildProjectReferences=false; | |
ExcludeRestorePackageImports=true; | |
</_GenerateRestoreGraphProjectEntryInputProperties> | |
<!-- Standalone mode | |
This is used by NuGet.exe to inject targets into the project that will be | |
walked next. In normal /t:Restore mode this causes a duplicate import | |
since NuGet.targets it loaded as part of MSBuild, there is should be | |
skipped. --> | |
<_GenerateRestoreGraphProjectEntryInputProperties Condition=" '$(RestoreUseCustomAfterTargets)' == 'true' "> | |
$(_GenerateRestoreGraphProjectEntryInputProperties); | |
CustomAfterMicrosoftCommonCrossTargetingTargets=$(MSBuildThisFileFullPath); | |
CustomAfterMicrosoftCommonTargets=$(MSBuildThisFileFullPath); | |
</_GenerateRestoreGraphProjectEntryInputProperties> | |
</PropertyGroup> | |
<!-- Tasks --> | |
<UsingTask TaskName="NuGet.Build.Tasks.RestoreTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.WriteRestoreGraphTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.GetRestoreProjectJsonPathTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.GetRestoreProjectReferencesTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.GetRestorePackageReferencesTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.GetRestoreDotnetCliToolsTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.GetProjectTargetFrameworksTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.GetRestoreSolutionProjectsTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.GetRestoreSettingsTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<UsingTask TaskName="NuGet.Build.Tasks.WarnForInvalidProjectsTask" AssemblyFile="$(RestoreTaskAssemblyFile)" /> | |
<!-- | |
============================================================ | |
Restore | |
Main entry point for restoring packages | |
============================================================ | |
--> | |
<Target Name="Restore" DependsOnTargets="_GenerateRestoreGraph"> | |
<!-- Drop any duplicate items --> | |
<RemoveDuplicates Inputs="@(_RestoreGraphEntry)"> | |
<Output TaskParameter="Filtered" ItemName="_RestoreGraphEntryFiltered" /> | |
</RemoveDuplicates> | |
<!-- Call restore --> | |
<RestoreTask RestoreGraphItems="@(_RestoreGraphEntryFiltered)" RestoreDisableParallel="$(RestoreDisableParallel)" RestoreNoCache="$(RestoreNoCache)" RestoreIgnoreFailedSources="$(RestoreIgnoreFailedSources)" RestoreRecursive="$(RestoreRecursive)" RestoreForce="$(RestoreForce)" HideWarningsAndErrors="$(HideWarningsAndErrors)" /> | |
</Target> | |
<!-- | |
============================================================ | |
GenerateRestoreGraphFile | |
Writes the output of _GenerateRestoreGraph to disk | |
============================================================ | |
--> | |
<Target Name="GenerateRestoreGraphFile" DependsOnTargets="_GenerateRestoreGraph"> | |
<!-- Validate --> | |
<Error Condition="$(RestoreGraphOutputPath) == ''" Text="Missing RestoreGraphOutputPath property!" /> | |
<!-- Drop any duplicate items --> | |
<RemoveDuplicates Inputs="@(_RestoreGraphEntry)"> | |
<Output TaskParameter="Filtered" ItemName="_RestoreGraphEntryFiltered" /> | |
</RemoveDuplicates> | |
<!-- Write file --> | |
<WriteRestoreGraphTask RestoreGraphItems="@(_RestoreGraphEntryFiltered)" RestoreGraphOutputPath="$(RestoreGraphOutputPath)" RestoreRecursive="$(RestoreRecursive)" /> | |
</Target> | |
<!-- | |
============================================================ | |
_LoadRestoreGraphEntryPoints | |
Find project entry points and load them into items. | |
============================================================ | |
--> | |
<Target Name="_LoadRestoreGraphEntryPoints" Returns="@(RestoreGraphProjectInputItems)"> | |
<!-- Allow overriding items with RestoreGraphProjectInput --> | |
<ItemGroup Condition=" @(RestoreGraphProjectInputItems) == '' "> | |
<RestoreGraphProjectInputItems Include="$(RestoreGraphProjectInput)" /> | |
</ItemGroup> | |
<!-- Project case --> | |
<ItemGroup Condition=" $(MSBuildProjectFullPath.EndsWith('.metaproj')) != 'true' AND @(RestoreGraphProjectInputItems) == '' "> | |
<RestoreGraphProjectInputItems Include="$(MSBuildProjectFullPath)" /> | |
</ItemGroup> | |
<!-- Solution case --> | |
<GetRestoreSolutionProjectsTask Condition=" $(MSBuildProjectFullPath.EndsWith('.metaproj')) == 'true' AND @(RestoreGraphProjectInputItems) == '' " ProjectReferences="@(ProjectReference)" SolutionFilePath="$(MSBuildProjectFullPath)"> | |
<Output TaskParameter="OutputProjectReferences" ItemName="RestoreGraphProjectInputItems" /> | |
</GetRestoreSolutionProjectsTask> | |
</Target> | |
<!-- | |
============================================================ | |
_FilterRestoreGraphProjectInputItems" | |
Filter out unsupported project entry points. | |
============================================================ | |
--> | |
<Target Name="_FilterRestoreGraphProjectInputItems" DependsOnTargets="_LoadRestoreGraphEntryPoints" Returns="@(FilteredRestoreGraphProjectInputItems)"> | |
<PropertyGroup> | |
<RestoreProjectFilterMode Condition=" '$(RestoreProjectFilterMode)' == '' ">exclusionlist</RestoreProjectFilterMode> | |
</PropertyGroup> | |
<!-- Filter to a list of known supported types --> | |
<ItemGroup Condition=" '$(RestoreProjectFilterMode)' == 'inclusionlist' "> | |
<_FilteredRestoreGraphProjectInputItemsTmp Include="@(RestoreGraphProjectInputItems)" Condition=" '%(RestoreGraphProjectInputItems.Extension)' == '.csproj' Or
 '%(RestoreGraphProjectInputItems.Extension)' == '.vbproj' Or
 '%(RestoreGraphProjectInputItems.Extension)' == '.fsproj' Or
 '%(RestoreGraphProjectInputItems.Extension)' == '.nuproj' Or
 '%(RestoreGraphProjectInputItems.Extension)' == '.msbuildproj' Or
 '%(RestoreGraphProjectInputItems.Extension)' == '.vcxproj' " /> | |
</ItemGroup> | |
<!-- Filter out disallowed types --> | |
<ItemGroup Condition=" '$(RestoreProjectFilterMode)' == 'exclusionlist' "> | |
<_FilteredRestoreGraphProjectInputItemsTmp Include="@(RestoreGraphProjectInputItems)" Condition=" '%(RestoreGraphProjectInputItems.Extension)' != '.metaproj'
 AND '%(RestoreGraphProjectInputItems.Extension)' != '.shproj'
 AND '%(RestoreGraphProjectInputItems.Extension)' != '.vcxitems'
 AND '%(RestoreGraphProjectInputItems.Extension)' != '' " /> | |
</ItemGroup> | |
<!-- No filtering --> | |
<ItemGroup Condition=" '$(RestoreProjectFilterMode)' != 'exclusionlist' AND '$(RestoreProjectFilterMode)' != 'inclusionlist' "> | |
<_FilteredRestoreGraphProjectInputItemsTmp Include="@(RestoreGraphProjectInputItems)" /> | |
</ItemGroup> | |
<!-- Remove duplicates --> | |
<RemoveDuplicates Inputs="@(_FilteredRestoreGraphProjectInputItemsTmp)"> | |
<Output TaskParameter="Filtered" ItemName="FilteredRestoreGraphProjectInputItemsWithoutDuplicates" /> | |
</RemoveDuplicates> | |
<!-- Remove projects that do not support restore. --> | |
<MsBuild Projects="@(FilteredRestoreGraphProjectInputItemsWithoutDuplicates)" Targets="_IsProjectRestoreSupported" ContinueOnError="$(RestoreContinueOnError)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="FilteredRestoreGraphProjectInputItems" /> | |
</MsBuild> | |
<!-- Warn for projects that do not support restore. --> | |
<WarnForInvalidProjectsTask Condition=" '$(DisableWarnForInvalidRestoreProjects)' != 'true' " AllProjects="@(FilteredRestoreGraphProjectInputItemsWithoutDuplicates)" ValidProjects="@(FilteredRestoreGraphProjectInputItems)" /> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateRestoreGraph | |
Entry point for creating the project to project restore graph. | |
============================================================ | |
--> | |
<Target Name="_GenerateRestoreGraph" DependsOnTargets="_FilterRestoreGraphProjectInputItems;_GetAllRestoreProjectPathItems" Returns="@(_RestoreGraphEntry)"> | |
<Message Text="Generating dg file" Importance="low" /> | |
<Message Text="%(_RestoreProjectPathItems.Identity)" Importance="low" /> | |
<!-- Use all projects if RestoreRecursive is true. Otherwise use only the top level projects. --> | |
<ItemGroup> | |
<_GenerateRestoreGraphProjectEntryInput Include="@(FilteredRestoreGraphProjectInputItems)" Condition=" '$(RestoreRecursive)' != 'true' " /> | |
<_GenerateRestoreGraphProjectEntryInput Include="@(_RestoreProjectPathItems)" Condition=" '$(RestoreRecursive)' == 'true' " /> | |
</ItemGroup> | |
<!-- Process top level projects. --> | |
<MsBuild Projects="@(_GenerateRestoreGraphProjectEntryInput)" Targets="_GenerateRestoreGraphProjectEntry" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_RestoreGraphEntry" /> | |
</MsBuild> | |
<!-- Generate a spec for every project including dependencies. --> | |
<MsBuild Projects="@(_RestoreProjectPathItems)" Targets="_GenerateProjectRestoreGraph" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_RestoreGraphEntry" /> | |
</MsBuild> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateRestoreGraphProjectEntry | |
Top level entry point within a project. | |
============================================================ | |
--> | |
<Target Name="_GenerateRestoreGraphProjectEntry" DependsOnTargets="_GenerateRestoreSpecs;_GenerateDotnetCliToolReferenceSpecs" Returns="@(_RestoreGraphEntry)"> | |
<!-- Returns restore graph entries for the project and all dependencies --> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateRestoreSpecs | |
Mark entry points for restore. | |
============================================================ | |
--> | |
<Target Name="_GenerateRestoreSpecs" DependsOnTargets="_GetRestoreProjectStyle" Returns="@(_RestoreGraphEntry)"> | |
<Message Text="Restore entry point $(MSBuildProjectFullPath)" Importance="low" /> | |
<!-- Mark entry point --> | |
<ItemGroup Condition=" '$(RestoreProjects)' == '' OR '$(RestoreProjects)' == 'true' "> | |
<_RestoreGraphEntry Include="$([System.Guid]::NewGuid())" Condition=" '$(RestoreProjectStyle)' != 'Unknown' "> | |
<Type>RestoreSpec</Type> | |
<ProjectUniqueName>$(MSBuildProjectFullPath)</ProjectUniqueName> | |
</_RestoreGraphEntry> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateDotnetCliToolReferenceSpecs | |
Collect DotnetCliToolReferences | |
============================================================ | |
--> | |
<Target Name="_GenerateDotnetCliToolReferenceSpecs" DependsOnTargets="_GetRestoreSettings" Returns="@(_RestoreGraphEntry)"> | |
<PropertyGroup> | |
<DotnetCliToolTargetFramework Condition=" '$(DotnetCliToolTargetFramework)' == '' ">netcoreapp1.0</DotnetCliToolTargetFramework> | |
</PropertyGroup> | |
<!-- Write out tool references --> | |
<GetRestoreDotnetCliToolsTask Condition=" '$(RestoreDotnetCliToolReferences)' == '' OR '$(RestoreDotnetCliToolReferences)' == 'true' " ProjectPath="$(MSBuildProjectFullPath)" ToolFramework="$(DotnetCliToolTargetFramework)" RestorePackagesPath="$(_OutputPackagesPath)" RestoreFallbackFolders="$(_OutputFallbackFolders)" RestoreSources="$(_OutputSources)" RestoreConfigFilePaths="$(_OutputConfigFilePaths)" DotnetCliToolReferences="@(DotnetCliToolReference)"> | |
<Output TaskParameter="RestoreGraphItems" ItemName="_RestoreGraphEntry" /> | |
</GetRestoreDotnetCliToolsTask> | |
</Target> | |
<!-- | |
============================================================ | |
_GetProjectJsonPath | |
Discover the project.json path if one exists for the project. | |
============================================================ | |
--> | |
<Target Name="_GetProjectJsonPath" Returns="$(_CurrentProjectJsonPath)"> | |
<!-- Get project.json path --> | |
<!-- Skip this if the project style is already set. --> | |
<GetRestoreProjectJsonPathTask ProjectPath="$(MSBuildProjectFullPath)" Condition=" '$(RestoreProjectStyle)' == 'ProjectJson' OR '$(RestoreProjectStyle)' == '' "> | |
<Output TaskParameter="ProjectJsonPath" PropertyName="_CurrentProjectJsonPath" /> | |
</GetRestoreProjectJsonPathTask> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestoreProjectStyle | |
Determine the project restore type. | |
============================================================ | |
--> | |
<Target Name="_GetRestoreProjectStyle" DependsOnTargets="_GetProjectJsonPath" Returns="$(RestoreProjectStyle)"> | |
<!-- This may be overridden by setting RestoreProjectStyle in the project. --> | |
<PropertyGroup> | |
<!-- If any PackageReferences exist treat it as PackageReference. This has priority over project.json. --> | |
<RestoreProjectStyle Condition=" '$(RestoreProjectStyle)' == '' AND @(PackageReference) != '' ">PackageReference</RestoreProjectStyle> | |
<!-- If this is not a PackageReference project check if project.json or projectName.project.json exists. --> | |
<RestoreProjectStyle Condition=" '$(RestoreProjectStyle)' == '' AND '$(_CurrentProjectJsonPath)' != '' ">ProjectJson</RestoreProjectStyle> | |
<!-- This project is either a packages.config project or one that does not use NuGet at all. --> | |
<RestoreProjectStyle Condition=" '$(RestoreProjectStyle)' == '' ">Unknown</RestoreProjectStyle> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestoreTargetFrameworksOutput | |
Read target frameworks from the project. | |
============================================================ | |
--> | |
<Target Name="_GetRestoreTargetFrameworksOutput" DependsOnTargets="_GetRestoreProjectStyle" Returns="@(_RestoreTargetFrameworksOutputFiltered)"> | |
<PropertyGroup> | |
<_RestoreProjectFramework /> | |
</PropertyGroup> | |
<!-- For project.json projects target frameworks will be read from project.json. --> | |
<GetProjectTargetFrameworksTask Condition=" '$(RestoreProjectStyle)' != 'ProjectJson' " ProjectPath="$(MSBuildProjectFullPath)" TargetFrameworks="$(TargetFrameworks)" TargetFramework="$(TargetFramework)" TargetFrameworkMoniker="$(TargetFrameworkMoniker)" TargetPlatformIdentifier="$(TargetPlatformIdentifier)" TargetPlatformVersion="$(TargetPlatformVersion)" TargetPlatformMinVersion="$(TargetPlatformMinVersion)"> | |
<Output TaskParameter="ProjectTargetFrameworks" PropertyName="_RestoreProjectFramework" /> | |
</GetProjectTargetFrameworksTask> | |
<ItemGroup Condition=" '$(_RestoreProjectFramework)' != '' "> | |
<_RestoreTargetFrameworksOutputFiltered Include="$(_RestoreProjectFramework.Split(';'))" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestoreTargetFrameworksAsItems | |
Get the set of $(TargetFramework) and $(TargetFrameworks) | |
values that should be used for inner builds. | |
============================================================ | |
--> | |
<Target Name="_GetRestoreTargetFrameworksAsItems" DependsOnTargets="_GetRestoreProjectStyle;_GetRestoreTargetFrameworksOutput" Returns="@(_RestoreTargetFrameworkItems)"> | |
<PropertyGroup> | |
<_RestoreTargetFrameworkItemsHasValues Condition=" '$(TargetFramework)' != '' OR '$(TargetFrameworks)' != '' ">true</_RestoreTargetFrameworkItemsHasValues> | |
</PropertyGroup> | |
<!-- Only return values for NETCore PackageReference projects --> | |
<ItemGroup Condition=" '$(RestoreProjectStyle)' == 'PackageReference' AND '$(_RestoreTargetFrameworkItemsHasValues)' == 'true' "> | |
<_RestoreTargetFrameworkItems Include="@(_RestoreTargetFrameworksOutputFiltered)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestoreSettings | |
============================================================ | |
--> | |
<Target Name="_GetRestoreSettings" DependsOnTargets="_GetRestoreProjectStyle;_GetRestoreSettingsOverrides;_GetRestoreTargetFrameworksAsItems" Returns="$(_OutputSources);$(_OutputPackagesPath);$(_OutputFallbackFolders);$(_OutputConfigFilePaths)"> | |
<!-- Read additional sources and fallback folders for each framework --> | |
<MSBuild Condition=" '$(RestoreProjectStyle)' == 'PackageReference' " Projects="$(MSBuildProjectFullPath)" Targets="_GetRestoreSettingsPerFramework" Properties="TargetFramework=%(_RestoreTargetFrameworkItems.Identity);
 %(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_RestoreSettingsPerFramework" /> | |
</MSBuild> | |
<!-- For transitive project styles, we rely on evaluating all the settings and including them in the dg spec to faciliate no-op restore--> | |
<GetRestoreSettingsTask Condition=" '$(RestoreProjectStyle)' == 'PackageReference' OR '$(RestoreProjectStyle)' == 'ProjectJson' " ProjectUniqueName="$(MSBuildProjectFullPath)" RestoreSources="$(RestoreSources)" RestorePackagesPath="$(RestorePackagesPath)" RestoreFallbackFolders="$(RestoreFallbackFolders)" RestoreConfigFile="$(RestoreConfigFile)" RestoreSolutionDirectory="$(RestoreSolutionDirectory)" RestoreSettingsPerFramework="@(_RestoreSettingsPerFramework)" RestorePackagesPathOverride="$(_RestorePackagesPathOverride)" RestoreSourcesOverride="$(_RestoreSourcesOverride)" RestoreFallbackFoldersOverride="$(_RestoreFallbackFoldersOverride)" MSBuildStartupDirectory="$(MSBuildStartupDirectory)"> | |
<Output TaskParameter="OutputSources" PropertyName="_OutputSources" /> | |
<Output TaskParameter="OutputPackagesPath" PropertyName="_OutputPackagesPath" /> | |
<Output TaskParameter="OutputFallbackFolders" PropertyName="_OutputFallbackFolders" /> | |
<Output TaskParameter="OutputConfigFilePaths" PropertyName="_OutputConfigFilePaths" /> | |
</GetRestoreSettingsTask> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestoreSettingsPerFramework | |
Generate items with framework specific settings. | |
============================================================ | |
--> | |
<Target Name="_GetRestoreSettingsPerFramework" Returns="@(_RestoreSettingsPerFramework)"> | |
<ItemGroup> | |
<_RestoreSettingsPerFramework Include="$([System.Guid]::NewGuid())"> | |
<RestoreAdditionalProjectSources>$(RestoreAdditionalProjectSources)</RestoreAdditionalProjectSources> | |
<RestoreAdditionalProjectFallbackFolders>$(RestoreAdditionalProjectFallbackFolders)</RestoreAdditionalProjectFallbackFolders> | |
<RestoreAdditionalProjectFallbackFoldersExcludes>$(RestoreAdditionalProjectFallbackFoldersExcludes)</RestoreAdditionalProjectFallbackFoldersExcludes> | |
</_RestoreSettingsPerFramework> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateRestoreProjectSpec | |
Generate a restore project spec for the current project. | |
============================================================ | |
--> | |
<Target Name="_GenerateRestoreProjectSpec" DependsOnTargets="_GetRestoreProjectStyle;_GetRestoreTargetFrameworksOutput;_GetRestoreSettings" Returns="@(_RestoreGraphEntry)"> | |
<!-- Determine the restore output path --> | |
<PropertyGroup Condition=" '$(RestoreProjectStyle)' == 'PackageReference' OR '$(RestoreProjectStyle)' == 'ProjectJson' "> | |
<RestoreOutputPath Condition=" '$(RestoreOutputPath)' == '' ">$(BaseIntermediateOutputPath)</RestoreOutputPath> | |
</PropertyGroup> | |
<ConvertToAbsolutePath Paths="$(RestoreOutputPath)" Condition=" '$(RestoreProjectStyle)' == 'PackageReference' OR '$(RestoreProjectStyle)' == 'ProjectJson'"> | |
<Output TaskParameter="AbsolutePaths" PropertyName="RestoreOutputAbsolutePath" /> | |
</ConvertToAbsolutePath> | |
<!-- | |
Determine project name for the assets file. | |
Highest priority: PackageId | |
If PackageId does not exist use: AssemblyName | |
If AssemblyName does not exist fallback to the project file name without the extension: $(MSBuildProjectName) | |
For non-NETCore projects use only: $(MSBuildProjectName) | |
--> | |
<PropertyGroup> | |
<_RestoreProjectName>$(MSBuildProjectName)</_RestoreProjectName> | |
<_RestoreProjectName Condition=" '$(RestoreProjectStyle)' == 'PackageReference' AND '$(AssemblyName)' != '' ">$(AssemblyName)</_RestoreProjectName> | |
<_RestoreProjectName Condition=" '$(RestoreProjectStyle)' == 'PackageReference' AND '$(PackageId)' != '' ">$(PackageId)</_RestoreProjectName> | |
</PropertyGroup> | |
<!-- | |
Determine project version for .NETCore projects | |
Default to 1.0.0 | |
Use Version if it exists | |
Override with PackageVersion if it exists (same as pack) | |
--> | |
<PropertyGroup Condition=" '$(RestoreProjectStyle)' == 'PackageReference' "> | |
<_RestoreProjectVersion>1.0.0</_RestoreProjectVersion> | |
<_RestoreProjectVersion Condition=" '$(Version)' != '' ">$(Version)</_RestoreProjectVersion> | |
<_RestoreProjectVersion Condition=" '$(PackageVersion)' != '' ">$(PackageVersion)</_RestoreProjectVersion> | |
</PropertyGroup> | |
<!-- Determine if this will use cross targeting --> | |
<PropertyGroup Condition=" '$(RestoreProjectStyle)' == 'PackageReference' AND '$(TargetFrameworks)' != '' "> | |
<_RestoreCrossTargeting>true</_RestoreCrossTargeting> | |
</PropertyGroup> | |
<!-- Determine if ContentFiles should be written by NuGet --> | |
<PropertyGroup Condition=" '$(RestoreProjectStyle)' == 'PackageReference' AND '$(_RestoreSkipContentFileWrite)' == '' "> | |
<_RestoreSkipContentFileWrite Condition=" '$(TargetFrameworks)' == '' AND '$(TargetFramework)' == '' ">true</_RestoreSkipContentFileWrite> | |
</PropertyGroup> | |
<!-- Write properties for the top level entry point --> | |
<ItemGroup Condition=" '$(RestoreProjectStyle)' == 'PackageReference' "> | |
<_RestoreGraphEntry Include="$([System.Guid]::NewGuid())"> | |
<Type>ProjectSpec</Type> | |
<Version>$(_RestoreProjectVersion)</Version> | |
<ProjectUniqueName>$(MSBuildProjectFullPath)</ProjectUniqueName> | |
<ProjectPath>$(MSBuildProjectFullPath)</ProjectPath> | |
<ProjectName>$(_RestoreProjectName)</ProjectName> | |
<Sources>$(_OutputSources)</Sources> | |
<FallbackFolders>$(_OutputFallbackFolders)</FallbackFolders> | |
<PackagesPath>$(_OutputPackagesPath)</PackagesPath> | |
<ProjectStyle>$(RestoreProjectStyle)</ProjectStyle> | |
<OutputPath>$(RestoreOutputAbsolutePath)</OutputPath> | |
<TargetFrameworks>@(_RestoreTargetFrameworksOutputFiltered)</TargetFrameworks> | |
<RuntimeIdentifiers>$(RuntimeIdentifiers);$(RuntimeIdentifier)</RuntimeIdentifiers> | |
<RuntimeSupports>$(RuntimeSupports)</RuntimeSupports> | |
<CrossTargeting>$(_RestoreCrossTargeting)</CrossTargeting> | |
<RestoreLegacyPackagesDirectory>$(RestoreLegacyPackagesDirectory)</RestoreLegacyPackagesDirectory> | |
<ValidateRuntimeAssets>$(ValidateRuntimeIdentifierCompatibility)</ValidateRuntimeAssets> | |
<SkipContentFileWrite>$(_RestoreSkipContentFileWrite)</SkipContentFileWrite> | |
<ConfigFilePaths>$(_OutputConfigFilePaths)</ConfigFilePaths> | |
<TreatWarningsAsErrors>$(TreatWarningsAsErrors)</TreatWarningsAsErrors> | |
<WarningsAsErrors>$(WarningsAsErrors)</WarningsAsErrors> | |
<NoWarn>$(NoWarn)</NoWarn> | |
</_RestoreGraphEntry> | |
</ItemGroup> | |
<!-- Use project.json --> | |
<ItemGroup Condition=" '$(RestoreProjectStyle)' == 'ProjectJson' "> | |
<_RestoreGraphEntry Include="$([System.Guid]::NewGuid())"> | |
<Type>ProjectSpec</Type> | |
<ProjectUniqueName>$(MSBuildProjectFullPath)</ProjectUniqueName> | |
<ProjectPath>$(MSBuildProjectFullPath)</ProjectPath> | |
<ProjectName>$(_RestoreProjectName)</ProjectName> | |
<Sources>$(_OutputSources)</Sources> | |
<OutputPath>$(RestoreOutputAbsolutePath)</OutputPath> | |
<FallbackFolders>$(_OutputFallbackFolders)</FallbackFolders> | |
<PackagesPath>$(_OutputPackagesPath)</PackagesPath> | |
<ProjectJsonPath>$(_CurrentProjectJsonPath)</ProjectJsonPath> | |
<ProjectStyle>$(RestoreProjectStyle)</ProjectStyle> | |
<ConfigFilePaths>$(_OutputConfigFilePaths)</ConfigFilePaths> | |
</_RestoreGraphEntry> | |
</ItemGroup> | |
<!-- Non-NuGet type --> | |
<ItemGroup Condition=" '$(RestoreProjectStyle)' == 'Unknown' "> | |
<_RestoreGraphEntry Include="$([System.Guid]::NewGuid())"> | |
<Type>ProjectSpec</Type> | |
<ProjectUniqueName>$(MSBuildProjectFullPath)</ProjectUniqueName> | |
<ProjectPath>$(MSBuildProjectFullPath)</ProjectPath> | |
<ProjectName>$(_RestoreProjectName)</ProjectName> | |
<ProjectStyle>$(RestoreProjectStyle)</ProjectStyle> | |
<TargetFrameworks>@(_RestoreTargetFrameworksOutputFiltered)</TargetFrameworks> | |
</_RestoreGraphEntry> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateRestoreDependencies | |
Generate items for package and project references. | |
============================================================ | |
--> | |
<Target Name="_GenerateRestoreDependencies" DependsOnTargets="_GetRestoreProjectStyle;_GetRestoreTargetFrameworksAsItems" Returns="@(_RestoreGraphEntry)"> | |
<!-- Get project and package references --> | |
<!-- Evaluate for each framework --> | |
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="_GenerateProjectRestoreGraphPerFramework" Properties="TargetFramework=%(_RestoreTargetFrameworkItems.Identity);
 %(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_RestoreGraphEntry" /> | |
</MSBuild> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateProjectRestoreGraph | |
Recursively walk project to project references. | |
============================================================ | |
--> | |
<Target Name="_GenerateProjectRestoreGraph" DependsOnTargets="
 _GetRestoreProjectStyle;
 _GetRestoreTargetFrameworksOutput;
 _GenerateRestoreProjectSpec;
 _GenerateRestoreDependencies" Returns="@(_RestoreGraphEntry)"> | |
<!-- Output from dependency targets --> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateProjectRestoreGraphPerFramework | |
Walk dependencies using $(TargetFramework) | |
============================================================ | |
--> | |
<Target Name="_GenerateProjectRestoreGraphPerFramework" DependsOnTargets="_GetRestoreProjectStyle" Returns="@(_RestoreGraphEntry)"> | |
<!-- Write out project references --> | |
<GetRestoreProjectReferencesTask ProjectUniqueName="$(MSBuildProjectFullPath)" ProjectReferences="@(ProjectReference)" TargetFrameworks="$(TargetFramework)" ParentProjectPath="$(MSBuildProjectFullPath)"> | |
<Output TaskParameter="RestoreGraphItems" ItemName="_RestoreGraphEntry" /> | |
</GetRestoreProjectReferencesTask> | |
<!-- Write out package references for NETCore --> | |
<GetRestorePackageReferencesTask Condition=" '$(RestoreProjectStyle)' == 'PackageReference' " ProjectUniqueName="$(MSBuildProjectFullPath)" PackageReferences="@(PackageReference)" TargetFrameworks="$(TargetFramework)"> | |
<Output TaskParameter="RestoreGraphItems" ItemName="_RestoreGraphEntry" /> | |
</GetRestorePackageReferencesTask> | |
<PropertyGroup> | |
<_CombinedFallbacks>$(PackageTargetFallback);$(AssetTargetFallback)</_CombinedFallbacks> | |
</PropertyGroup> | |
<!-- Write out target framework information --> | |
<ItemGroup Condition=" '$(RestoreProjectStyle)' == 'PackageReference' AND '$(_CombinedFallbacks)' != '' "> | |
<_RestoreGraphEntry Include="$([System.Guid]::NewGuid())"> | |
<Type>TargetFrameworkInformation</Type> | |
<ProjectUniqueName>$(MSBuildProjectFullPath)</ProjectUniqueName> | |
<PackageTargetFallback>$(PackageTargetFallback)</PackageTargetFallback> | |
<AssetTargetFallback>$(AssetTargetFallback)</AssetTargetFallback> | |
<TargetFramework>$(TargetFramework)</TargetFramework> | |
</_RestoreGraphEntry> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateRestoreProjectPathItemsPerFramework | |
Get absolute paths for all project references. | |
============================================================ | |
--> | |
<Target Name="_GenerateRestoreProjectPathItemsPerFramework" Returns="@(_RestoreProjectPathItems)"> | |
<!-- Get the absolute paths to all projects --> | |
<ConvertToAbsolutePath Paths="@(ProjectReference)"> | |
<Output TaskParameter="AbsolutePaths" PropertyName="_RestoreGraphAbsoluteProjectPaths" /> | |
</ConvertToAbsolutePath> | |
<ItemGroup> | |
<_RestoreProjectPathItems Include="$(_RestoreGraphAbsoluteProjectPaths)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateRestoreProjectPathItems | |
Get all project references regardless of framework | |
============================================================ | |
--> | |
<Target Name="_GenerateRestoreProjectPathItems" DependsOnTargets="_GetRestoreTargetFrameworksOutput;_GetRestoreTargetFrameworksAsItems" Returns="@(_CurrentRestoreProjectPathItems)"> | |
<!-- Get all project references for the current project --> | |
<MSBuild Projects="$(MSBuildProjectFullPath)" Targets="_GenerateRestoreProjectPathItemsPerFramework" ContinueOnError="$(RestoreContinueOnError)" Properties="TargetFramework=%(_RestoreTargetFrameworkItems.Identity);
 %(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_CurrentRestoreProjectPathItemsOutputs" /> | |
</MSBuild> | |
<!-- Drop any duplicate items --> | |
<RemoveDuplicates Inputs="@(_CurrentRestoreProjectPathItemsOutputs)"> | |
<Output TaskParameter="Filtered" ItemName="_CurrentRestoreProjectPathItems" /> | |
</RemoveDuplicates> | |
</Target> | |
<!-- | |
============================================================ | |
_GenerateRestoreProjectPathWalk | |
Recursively walk projects | |
============================================================ | |
--> | |
<Target Name="_GenerateRestoreProjectPathWalk" DependsOnTargets="_GenerateRestoreProjectPathItems;_GetRestoreTargetFrameworksAsItems" Returns="@(_RestoreProjectPathItems)"> | |
<!-- Walk project references --> | |
<MSBuild Projects="@(_CurrentRestoreProjectPathItems)" Targets="_GenerateRestoreProjectPathWalk" ContinueOnError="$(RestoreContinueOnError)" Properties="TargetFramework=%(_RestoreTargetFrameworkItems.Identity);
 %(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_GenerateRestoreProjectPathWalkOutputs" /> | |
</MSBuild> | |
<!-- Include the current project in the result --> | |
<ItemGroup> | |
<_GenerateRestoreProjectPathWalkOutputs Include="$(MSBuildProjectFullPath)" /> | |
</ItemGroup> | |
<!-- Remove duplicates --> | |
<RemoveDuplicates Inputs="@(_GenerateRestoreProjectPathWalkOutputs)"> | |
<Output TaskParameter="Filtered" ItemName="_RestoreProjectPathItems" /> | |
</RemoveDuplicates> | |
</Target> | |
<!-- | |
============================================================ | |
_GetAllRestoreProjectPathItems | |
Get the full list of known projects. | |
This includes all child projects from all target frameworks. | |
============================================================ | |
--> | |
<Target Name="_GetAllRestoreProjectPathItems" DependsOnTargets="_FilterRestoreGraphProjectInputItems" Returns="@(_RestoreProjectPathItems)"> | |
<!-- Walk projects --> | |
<MsBuild Projects="@(FilteredRestoreGraphProjectInputItems)" Targets="_GenerateRestoreProjectPathWalk" ContinueOnError="$(RestoreContinueOnError)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_RestoreProjectPathItemsOutputs" /> | |
</MsBuild> | |
<!-- Remove duplicates --> | |
<RemoveDuplicates Inputs="@(_RestoreProjectPathItemsOutputs)"> | |
<Output TaskParameter="Filtered" ItemName="_RestoreProjectPathItemsWithoutDupes" /> | |
</RemoveDuplicates> | |
<!-- Remove projects that do not support restore. --> | |
<MsBuild Projects="@(_RestoreProjectPathItemsWithoutDupes)" Targets="_IsProjectRestoreSupported" ContinueOnError="$(RestoreContinueOnError)" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);
 $(_GenerateRestoreGraphProjectEntryInputProperties)" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" ItemName="_RestoreProjectPathItems" /> | |
</MsBuild> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestoreSettingsOverrides | |
Get global property overrides that should be resolved | |
against the current working directory instead of the project. | |
This is done by calling into NuGet.targets in a new scope, | |
project properties will not be returned by the calls below. | |
============================================================ | |
--> | |
<Target Name="_GetRestoreSettingsOverrides" Returns="$(_RestorePackagesPathOverride);$(_GetRestoreSourcesOverride);$(_GetRestoreFallbackFoldersOverride)"> | |
<!-- RestorePackagesPathOverride --> | |
<MsBuild Condition=" '$(RestorePackagesPath)' != '' " Projects="$(MSBuildThisFileFullPath)" Targets="_GetRestorePackagesPathOverride" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" PropertyName="_RestorePackagesPathOverride" /> | |
</MsBuild> | |
<!-- RestoreSourcesOverride --> | |
<MsBuild Condition=" '$(RestoreSources)' != '' " Projects="$(MSBuildThisFileFullPath)" Targets="_GetRestoreSourcesOverride" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" PropertyName="_RestoreSourcesOverride" /> | |
</MsBuild> | |
<!-- RestoreFallbackFoldersOverride --> | |
<MsBuild Condition=" '$(RestoreFallbackFolders)' != '' " Projects="$(MSBuildThisFileFullPath)" Targets="_GetRestoreFallbackFoldersOverride" Properties="%(_MSBuildProjectReferenceExistent.SetConfiguration);
 %(_MSBuildProjectReferenceExistent.SetPlatform);" RemoveProperties="%(_MSBuildProjectReferenceExistent.GlobalPropertiesToRemove)"> | |
<Output TaskParameter="TargetOutputs" PropertyName="_RestoreFallbackFoldersOverride" /> | |
</MsBuild> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestorePackagesPathOverride | |
============================================================ | |
--> | |
<Target Name="_GetRestorePackagesPathOverride" Returns="$(_RestorePackagesPathOverride)"> | |
<PropertyGroup> | |
<_RestorePackagesPathOverride>$(RestorePackagesPath)</_RestorePackagesPathOverride> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestoreSourcesOverride | |
============================================================ | |
--> | |
<Target Name="_GetRestoreSourcesOverride" Returns="$(_RestoreSourcesOverride)"> | |
<PropertyGroup> | |
<_RestoreSourcesOverride>$(RestoreSources)</_RestoreSourcesOverride> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_GetRestoreFallbackFoldersOverride | |
============================================================ | |
--> | |
<Target Name="_GetRestoreFallbackFoldersOverride" Returns="$(_RestoreFallbackFoldersOverride)"> | |
<PropertyGroup> | |
<_RestoreFallbackFoldersOverride>$(RestoreFallbackFolders)</_RestoreFallbackFoldersOverride> | |
</PropertyGroup> | |
</Target> | |
<!-- | |
============================================================ | |
_IsProjectRestoreSupported | |
Verify restore targets exist in the project. | |
============================================================ | |
--> | |
<Target Name="_IsProjectRestoreSupported" Returns="@(_ValidProjectsForRestore)"> | |
<ItemGroup> | |
<_ValidProjectsForRestore Include="$(MSBuildProjectFullPath)" /> | |
</ItemGroup> | |
</Target> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/xbuild/15.0/Microsoft.Common.targets/ImportAfter/Microsoft.NuGet.ImportAfter.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.CurrentVersion.targets | |
============================================================================================================================================ | |
--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfterMicrosoftCommonTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.targets\ImportAfter')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Library/Frameworks/Mono.framework/Versions/5.4.1/lib/mono/msbuild/15.0/bin/Microsoft.Common.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
Prepare to import project extensions which usually come from packages. Package management systems will create a file at: | |
$(MSBuildProjectExtensionsPath)\$(MSBuildProjectFile).<SomethingUnique>.targets | |
Each package management system should use a unique moniker to avoid collisions. It is a wild-card import so the package | |
management system can write out multiple files but the order of the import is alphabetic because MSBuild sorts the list. | |
--> | |
<PropertyGroup> | |
<ImportProjectExtensionTargets Condition="'$(ImportProjectExtensionTargets)' == ''">true</ImportProjectExtensionTargets> | |
</PropertyGroup> | |
<!--<Import Project="$(MSBuildProjectExtensionsPath)$(MSBuildProjectFile).*.targets" Condition="'$(ImportProjectExtensionTargets)' == 'true' and exists('$(MSBuildProjectExtensionsPath)')" />--> | |
<PropertyGroup> | |
<ImportDirectoryBuildTargets Condition="'$(ImportDirectoryBuildTargets)' == ''">true</ImportDirectoryBuildTargets> | |
</PropertyGroup> | |
<!-- | |
Determine the path to the directory build targets file if the user did not disable $(ImportDirectoryBuildTargets) and | |
they did not already specify an absolute path to use via $(DirectoryBuildTargetsPath) | |
--> | |
<PropertyGroup Condition="'$(ImportDirectoryBuildTargets)' == 'true' and '$(DirectoryBuildTargetsPath)' == ''"> | |
<_DirectoryBuildTargetsFile Condition="'$(_DirectoryBuildTargetsFile)' == ''">Directory.Build.targets</_DirectoryBuildTargetsFile> | |
<_DirectoryBuildTargetsBasePath Condition="'$(_DirectoryBuildTargetsBasePath)' == ''">$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildProjectDirectory), '$(_DirectoryBuildTargetsFile)'))</_DirectoryBuildTargetsBasePath> | |
<DirectoryBuildTargetsPath Condition="'$(_DirectoryBuildTargetsBasePath)' != '' and '$(_DirectoryBuildTargetsFile)' != ''">$([System.IO.Path]::Combine('$(_DirectoryBuildTargetsBasePath)', '$(_DirectoryBuildTargetsFile)'))</DirectoryBuildTargetsPath> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(ImportDirectoryBuildTargets)' == 'true' and exists('$(DirectoryBuildTargetsPath)')"> | |
<MSBuildAllProjects>$(MSBuildAllProjects);$(DirectoryBuildTargetsPath)</MSBuildAllProjects> | |
</PropertyGroup> | |
<!--<Import Project="$(DirectoryBuildTargetsPath)" Condition="'$(ImportDirectoryBuildTargets)' == 'true' and exists('$(DirectoryBuildTargetsPath)')" />--> | |
<!--<ImportGroup Condition="'$(MSBuildAssemblyVersion)' == ''">--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.props\ImportAfter\*" Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkProps)' == 'true' and exists('$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.props\ImportAfter')" />--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.props\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkProps)' == 'true' and exists('$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.props\ImportAfter')" />--> | |
<!--</ImportGroup>--> | |
<!--<ImportGroup Condition="'$(MSBuildAssemblyVersion)' == ''">--> | |
<!--<Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.Common.targets\ImportAfter\*" Condition="'$(ImportByWildcardAfter40MicrosoftCommonTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\4.0\Microsoft.Common.targets\ImportAfter')" />--> | |
<!--<Import Project="$(MSBuildUserExtensionsPath)\4.0\Microsoft.Common.targets\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftCommonTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\4.0\Microsoft.Common.targets\ImportAfter')" />--> | |
<!--</ImportGroup>--> | |
<!-- Fix up FrameworkPathOverride, which is primarily used to determine the location of mscorlib.dll in the | |
(relatively uncommon) situation where the reference assemblies, in which it's usually found, are not | |
installed. --> | |
<PropertyGroup Condition="'$(MSBuildAssemblyVersion)' == ''"> | |
<FrameworkPathOverride Condition="!Exists('$(FrameworkPathOverride)\mscorlib.dll')">$(MSBuildFrameworkToolsPath)</FrameworkPathOverride> | |
</PropertyGroup> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/Proto/net40/bin/Microsoft.FSharp.Targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================ | |
GenerateTargetFrameworkMonikerAttribute | |
Emit the target framework moniker attribute as a code | |
fragment into a temporary source file for the compiler. | |
============================================================ | |
--> | |
<!-- | |
============================================================ | |
Override _GenerateCompileDependencyCache | |
Workaround for Issue #3824 and #3739 | |
MsBuild does some optimisations around CompileInputs | |
The project system erroneously uses this to determine whether | |
to notify language services of CommandLine Information changes. | |
C# accidently changes it's file lists every build ... and so | |
gets the notifications. | |
F# doesn't ... so we don't get CL notifications following rebuilds | |
or build. | |
This workaround is basically to adds the current time (in ticks) | |
into the hash of CoreCompileInputs.cache at design time so that | |
we always appear to have different options and overcome the | |
brokencache behaviour. | |
Both msbuild and the project-system will fix their code at which time | |
this can go away. | |
============================================================ | |
--> | |
<Target Name="_GenerateCompileDependencyCache" DependsOnTargets="ResolveAssemblyReferences" Condition="'$(DesignTimeBuild)' == 'true'"> | |
<ItemGroup> | |
<CustomAdditionalCompileInputs Include="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" /> | |
<CoreCompileCache Remove="@(Compile)" /> | |
<CoreCompileCache Include="@(ReferencePath)" /> | |
<CoreCompileCache Include="$([System.DateTime]::Now.Ticks)" /> | |
</ItemGroup> | |
<Hash ItemsToHash="@(CoreCompileCache)"> | |
<Output TaskParameter="HashResult" PropertyName="CoreCompileDependencyHash" /> | |
</Hash> | |
<WriteLinesToFile Lines="$(CoreCompileDependencyHash)" File="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" Overwrite="True" WriteOnlyWhenDifferent="True" /> | |
<ItemGroup> | |
<FileWrites Include="$(IntermediateOutputPath)$(MSBuildProjectFile).CoreCompileInputs.cache" /> | |
</ItemGroup> | |
</Target> | |
<Target Name="GenerateTargetFrameworkMonikerAttribute" BeforeTargets="BeforeCompile" DependsOnTargets="PrepareForBuild;GetReferenceAssemblyPaths" Inputs="$(MSBuildThisFileFullPath)" Outputs="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(GenerateTargetFrameworkAttribute)' == 'true'"> | |
<PropertyGroup> | |
<!-- This attribute is only available in mscorlib v4 and later --> | |
<AdditionalSourcesText Condition="'$(TargetFrameworkMoniker)' != '' and '$(TargetingClr2Framework)' != 'true'"> | |
$(AdditionalSourcesText) | |
namespace Microsoft.BuildSettings | |
[<System.Runtime.Versioning.TargetFrameworkAttribute("$(TargetFrameworkMoniker)", FrameworkDisplayName="$(TargetFrameworkMonikerDisplayName)")>] | |
do () | |
</AdditionalSourcesText> | |
</PropertyGroup> | |
<!-- This is a file shared between projects so we have to take care to handle simultaneous writes (by ContinueOnError) | |
and a race between clean from one project and build from another (by not adding to FilesWritten so it doesn't clean) --> | |
<WriteLinesToFile File="$(TargetFrameworkMonikerAssemblyAttributesPath)" Lines="$(AdditionalSourcesText)" Condition="'$(AdditionalSourcesText)' != ''" ContinueOnError="true" Overwrite="true" /> | |
<ItemGroup> | |
<CompileBefore Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(AdditionalSourcesText)' != '' AND ('$(OutputType)' == 'Exe' OR '$(OutputType)' == 'WinExe')" /> | |
<CompileAfter Include="$(TargetFrameworkMonikerAssemblyAttributesPath)" Condition="'$(AdditionalSourcesText)' != '' AND '$(OutputType)' != 'Exe' AND '$(OutputType)' != 'WinExe'" /> | |
</ItemGroup> | |
</Target> | |
<!--<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter\*" Condition="'$(ImportByWildcardAfterMicrosoftFSharpTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\$(MSBuildThisFile)\ImportAfter')" />--> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/FSharpSource.targets | |
============================================================================================================================================ | |
--> | |
<!-- Hook up .NET Core to enable solution refresh of packages --> | |
<PropertyGroup Condition="'$(TargetDotnetProfile)'=='coreclr'"> | |
<!-- Implicitly needed by packageresolve.targets. Should file a bug for a better error message here --> | |
<PackagesDir>$(NUGET_PACKAGES)</PackagesDir> | |
<NuGetToolPath Condition="'$(NuGetToolPath)' == ''">$(FSharpSourcesRoot)\..\.nuget\</NuGetToolPath> | |
<NuGetConfigCommandLine>-ConfigFile "$(NuGetConfigFile)"</NuGetConfigCommandLine> | |
<NugetRestoreCommand>"$(NuGetToolPath)NuGet.exe install -OutputDirectory "$(PackagesDir)" -Config "$(NuGetToolPath)..\NuGet.Config"</NugetRestoreCommand> | |
<DnuRestoreCommand>"$(NuGetToolPath)NuGet.exe" restore -OutputDirectory "$(PackagesDir)" -Config "$(NuGetToolPath)..\NuGet.Config"</DnuRestoreCommand> | |
<!-- Current version of .NET Core does not support all semantics used in our packages, | |
so we ignore the pre-calculation in the lock file and calculate asset applicability in the build task --> | |
<NuGetIngoreLockFile>true</NuGetIngoreLockFile> | |
</PropertyGroup> | |
<!--<Import Project="..\Tools\Build.Common.Targets" Condition="'$(TargetDotnetProfile)'=='coreclr'" />--> | |
<PropertyGroup> | |
<RootNamespace /> | |
<DocumentationFile>$(OutputPath)$(AssemblyName).xml</DocumentationFile> | |
</PropertyGroup> | |
<PropertyGroup> | |
<PackageLicenceUrl Condition="'$(PackageLicenceUrl)' == ''">https://github.com/Microsoft/visualfsharp/blob/master/License.txt</PackageLicenceUrl> | |
<PackageProjectUrl Condition="'$(PackageProjectUrl)' == ''">https://github.com/Microsoft/visualfsharp</PackageProjectUrl> | |
<PackageVersion Condition="'$(PackageVersion)' == ''">$(NuGetPerBuildPreReleaseVersion)</PackageVersion> | |
<PackageAuthors Condition="'$(PackageAuthors)' == ''">Microsoft</PackageAuthors> | |
<PackageTags Condition="'$(PackageTags)' == ''">Visual F# Compiler FSharp coreclr functional programming</PackageTags> | |
</PropertyGroup> | |
<!-- This build step copies files to the output folder while replacing build variables in the text of those file. --> | |
<PropertyGroup> | |
<CompileDependsOn>$(CompileDependsOn);CopyAndSubstituteTextFiles</CompileDependsOn> | |
</PropertyGroup> | |
<Target Name="CopyAndSubstituteTextFiles" Inputs="@(CopyAndSubstituteText)" Outputs="@(CopyAndSubstituteText->'$(OutDir)%(TargetFilename)')"> | |
<Exec Command=""$([System.IO.Path]::GetFullPath('$(FsiToolPath)\$(FsiToolExe)'))" --exec "$(MSBuildThisFileDirectory)scripts/subst.fsx" --in:"%(CopyAndSubstituteText.FullPath)" --out:"$(OutDir)%(CopyAndSubstituteText.TargetFilename)" --pattern1:"%(CopyAndSubstituteText.Pattern1)" --replacement1:"%(CopyAndSubstituteText.Replacement1)" --pattern2:"%(CopyAndSubstituteText.Pattern2)" --replacement2:"%(CopyAndSubstituteText.Replacement2)" " Condition="'$(OS)' != 'Unix'" /> | |
<Exec Command="mono $([System.IO.Path]::GetFullPath('$(FsiToolPath)\$(FsiToolExe)')) --exec "$(MSBuildThisFileDirectory)scripts/subst.fsx" --in:"%(CopyAndSubstituteText.FullPath)" --out:"$(OutDir)%(CopyAndSubstituteText.TargetFilename)" --pattern1:"%(CopyAndSubstituteText.Pattern1)" --replacement1:"%(CopyAndSubstituteText.Replacement1)" --pattern2:"%(CopyAndSubstituteText.Pattern2)" --replacement2:"%(CopyAndSubstituteText.Replacement2)" " Condition="'$(OS)' == 'Unix'" /> | |
<!-- Make sure it will get cleaned --> | |
<CreateItem Include="$(OutDir)%(CopyAndSubstituteText.TargetFilename)"> | |
<Output TaskParameter="Include" ItemName="FileWrites" /> | |
</CreateItem> | |
</Target> | |
<!--<Import Project="$(FSharpSourcesRoot)\scripts\fssrgen.targets" Condition="'$(Configuration)' == 'Proto'" />--> | |
<!--<Import Project="Microbuild.Settings.targets" Condition="'$(UseMicroBuild)' == 'true'" />--> | |
<Target Name="dotnetrestore" BeforeTargets="Build" Condition=" '$(TargetDotnetProfile)' == 'coreclr' "> | |
<Exec Command="$(MSBuildThisFileDirectory)..\.nuget\nuget.exe restore -PackagesDirectory $(PackagesDir) -Config $(MSBuildThisFileDirectory)..\NuGet.Config project.json" /> | |
</Target> | |
<Target Name="dotnetrestore" BeforeTargets="Build" Condition=" '$(DOTNET_PUBLISH)' == 'true' "> | |
<SetEnvVar Name="NUGET_PACKAGES" Value="$(NUGET_PACKAGES)" /> | |
<Exec Command="$(MSBuildThisFileDirectory)..\Tools\dotnetcli\dotnet.exe restore --configfile $(MSBuildThisFileDirectory)..\NuGet.Config project.json" /> | |
</Target> | |
<Target Name="dotnetpublish" AfterTargets="Build" Condition=" '$(DOTNET_PUBLISH)' == 'true' "> | |
<SetEnvVar Name="NUGET_PACKAGES" Value="$(NUGET_PACKAGES)" /> | |
<Exec Command="$(MSBuildThisFileDirectory)..\Tools\dotnetcli\dotnet.exe --verbose publish --no-build project.json -r $(DOTNET_PUBLISH_PLATFORM) -c $(Configuration) -o $(DOTNET_PUBLISH_PATH)" /> | |
</Target> | |
<Target Name="dotnetpublishfsccompiler" AfterTargets="CopyFilesToOutputDirectory" Condition=" '$(DOTNET_PUBLISH_FSC)' == 'true' "> | |
<SetEnvVar Name="NUGET_PACKAGES" Value="$(NUGET_PACKAGES)" /> | |
<Exec Command="$(MSBuildThisFileDirectory)..\Tools\dotnetcli\dotnet.exe restore DeployCompiler\fsc\project.json" /> | |
<Exec Command="$(MSBuildThisFileDirectory)..\Tools\dotnetcli\dotnet.exe --verbose publish --no-build DeployCompiler\fsc\project.json -r $(DOTNET_PUBLISH_PLATFORM) -c $(Configuration) -o $(DOTNET_PUBLISH_FSC_PATH)" /> | |
</Target> | |
<Target Name="dotnetpublishfsicompiler" AfterTargets="CopyFilesToOutputDirectory" Condition=" '$(DOTNET_PUBLISH_FSI)' == 'true' "> | |
<SetEnvVar Name="NUGET_PACKAGES" Value="$(NUGET_PACKAGES)" /> | |
<Exec Command="$(MSBuildThisFileDirectory)..\Tools\dotnetcli\dotnet.exe restore DeployCompiler\fsi\project.json" /> | |
<Exec Command="$(MSBuildThisFileDirectory)..\Tools\dotnetcli\dotnet.exe --verbose publish --no-build DeployCompiler\fsi\project.json -r $(DOTNET_PUBLISH_PLATFORM) -c $(Configuration) -o $(DOTNET_PUBLISH_FSI_PATH)" /> | |
</Target> | |
<Target Name="GenerateSourceLink" BeforeTargets="CoreCompile" Condition="'$(UseSourceLink)' == 'true'"> | |
<PropertyGroup> | |
<SrcRootDirectory>$([System.IO.Directory]::GetParent($(MSBuildThisFileDirectory.TrimEnd("\"))))</SrcRootDirectory> | |
<SourceLinkRoot>$(SrcRootDirectory.Replace("\", "\\"))</SourceLinkRoot> | |
</PropertyGroup> | |
<Exec Command="git config --get remote.origin.url" ConsoleToMsBuild="true"> | |
<Output TaskParameter="ConsoleOutput" PropertyName="RemoteUri" /> | |
</Exec> | |
<!-- https://raw.githubusercontent.com/KevinRansom/visualfsharp/98e8c9a2ca09a36ebd024eb424fc050a831053cd/build.cmd --> | |
<WriteLinesToFile File="$(IntermediateOutputPath)source_link.json" Overwrite="true" Lines="{"documents": { "$(SourceLinkRoot)\\*" : "$(RemoteUri.Replace(".git", "").Replace("github.com", "raw.githubusercontent.com"))/$(GitHeadSha)/*" }}" /> | |
</Target> | |
<!-- If BuildVersionFilePath not specified then do nothing --> | |
<Target Name="CleanVersionFile" Condition="'$(BuildVersionFilePath)' != '' "> | |
<PropertyGroup> | |
<BuildVersionFileDir>$([System.IO.Path]::GetDirectoryName($(BuildVersionFilePath)))</BuildVersionFileDir> | |
</PropertyGroup> | |
<RemoveDir Condition="Exists('$(BuildVersionFileDir)')" Directories="$(BuildVersionFileDir)" /> | |
</Target> | |
<!-- If BuildVersionFilePath not specified then do nothing --> | |
<Target Name="CreateOrUpdateBuildVersionFile" Condition="'$(BuildVersionFilePath)' != '' "> | |
<PropertyGroup> | |
<BuildVersionFileDir>$([System.IO.Path]::GetDirectoryName($(BuildVersionFilePath)))</BuildVersionFileDir> | |
<PackageVersionMajor Condition="'$(PackageVersionMajor)' == ''">$(NuGetPerBuildPreReleaseVersion)</PackageVersionMajor> | |
<PackageVersionMinor Condition="'$(PackageVersionMinor)' != ''">$([MSBuild]::Add($(PackageVersionMinor), 1))</PackageVersionMinor> | |
<PackageVersionMinor Condition="'$(PackageVersionMinor)' == ''">1</PackageVersionMinor> | |
</PropertyGroup> | |
<ItemGroup> | |
<CurrentVersionLines Include="%3C%3Fxml version=%221.0%22 encoding=%22utf-8%22%3F%3E" /> | |
<CurrentVersionLines Include="%3C!-- This is a generated file. $(VersionSeedSourceComment) Seed Date is $(VersionSeedDate). --%3E" /> | |
<CurrentVersionLines Include="%3CProject xmlns=%22http://schemas.microsoft.com/developer/msbuild/2003%22%3E" /> | |
<CurrentVersionLines Include="%3CPropertyGroup%3E" /> | |
<CurrentVersionLines Include="%3CPackageVersionMajor Condition=%22%27%24(PackageVersionMajor)%27==%27%27%22%3E$(NuGetPerBuildPreReleaseVersion)%3C/PackageVersionMajor%3E" /> | |
<CurrentVersionLines Include="%3CPackageVersionMinor Condition=%22%27%24(PackageVersionMinor)%27==%27%27%22%3E$(PackageVersionMinor)%3C/PackageVersionMinor%3E" /> | |
<CurrentVersionLines Include="%3C/PropertyGroup%3E" /> | |
<CurrentVersionLines Include="%3C/Project%3E" /> | |
</ItemGroup> | |
<!-- Since by default the file will get dropped at the obj dir, make sure that the dir is created already or else WriteLinesToFile will error. --> | |
<MakeDir Condition="!Exists('$(BuildVersionFileDir)')" Directories="$(BuildVersionFileDir)" /> | |
<WriteLinesToFile ContinueOnError="WarnAndContinue" File="$(BuildVersionFilePath)" Lines="@(CurrentVersionLines)" Overwrite="true" /> | |
<!-- Delete old BuildVersion.props files --> | |
<ItemGroup> | |
<OldBuildVersionFiles Include="$(BuildVersionFilePath)BuildVersions-*.props" Exclude="$(BuildVersionFilePath)%(BuildVersionFileItem.Filename).props" /> | |
</ItemGroup> | |
<Delete Files="@(OldBuildVersionFiles)" TreatErrorsAsWarnings="true" /> | |
</Target> | |
<UsingTask TaskName="FSharpEmbedResourceText" AssemblyFile="$(FSharpSourcesRoot)\..\Proto\net40\bin\FSharp.Build.dll" Condition="'$(Configuration)' != 'Proto'" /> | |
<UsingTask TaskName="FSharpEmbedResXSource" AssemblyFile="$(FSharpSourcesRoot)\..\Proto\net40\bin\FSharp.Build.dll" Condition="'$(Configuration)' != 'Proto'" /> | |
<UsingTask TaskName="WriteCodeFragment" AssemblyFile="$(FSharpSourcesRoot)\..\Proto\net40\bin\FSharp.Build.dll" Condition="'$(Configuration)' != 'Proto'" /> | |
<Target Name="GenerateFSharpTextResources" BeforeTargets="GetXlfSources;CoreResGen;PrepareForBuild" Condition="'$(Configuration)' != 'Proto'"> | |
<MakeDir Directories="$(IntermediateOutputPath)" /> | |
<!-- Generate source for all resx files. --> | |
<FSharpEmbedResXSource EmbeddedResource="@(EmbeddedResource)" IntermediateOutputPath="$(IntermediateOutputPath)" TargetFramework="$(TargetFramework)"> | |
<Output TaskParameter="GeneratedSource" ItemName="_FsGeneratedResXSource" /> | |
</FSharpEmbedResXSource> | |
<ItemGroup> | |
<CompileBefore Include="@(_FsGeneratedResXSource)" /> | |
<FileWrites Include="@(_FsGeneratedResXSource)" /> | |
</ItemGroup> | |
<!-- Generate resx and source for all txt files. --> | |
<FSharpEmbedResourceText EmbeddedText="@(EmbeddedText)" IntermediateOutputPath="$(IntermediateOutputPath)"> | |
<Output TaskParameter="GeneratedSource" ItemName="_FsGeneratedTxtSource" /> | |
<Output TaskParameter="GeneratedResx" ItemName="_FsGeneratedResx" /> | |
</FSharpEmbedResourceText> | |
<ItemGroup> | |
<CompileBefore Include="@(_FsGeneratedTxtSource)" /> | |
<EmbeddedResource Include="@(_FsGeneratedResx)" /> | |
<FileWrites Include="@(_FsGeneratedTxtSource)" /> | |
<FileWrites Include="@(_FsGeneratedResx)" /> | |
</ItemGroup> | |
</Target> | |
<PropertyGroup Condition="'$(Configuration)' != 'Proto'"> | |
<GeneratedFSharpInternalsVisibleToFile>$(IntermediateOutputPath)$(MSBuildProjectName).InternalsVisibleTo$(DefaultLanguageSourceExtension)</GeneratedFSharpInternalsVisibleToFile> | |
</PropertyGroup> | |
<ItemDefinitionGroup> | |
<InternalsVisibleTo> | |
<Visible>false</Visible> | |
</InternalsVisibleTo> | |
</ItemDefinitionGroup> | |
<Target Name="PrepareFSharpGenerateInternalsVisibleToFile" Condition="'$(Configuration)' != 'Proto' and '@(InternalsVisibleTo)' != ''"> | |
<PropertyGroup Condition="'$(MonoPackaging)' != 'true'"> | |
<!-- msft.pubkey delay signing of compiler binaries --> | |
<_PublicKey>002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293</_PublicKey> | |
</PropertyGroup> | |
<PropertyGroup Condition="'$(MonoPackaging)' == 'true'"> | |
<!-- test.snk delay signing of compiler binaries --> | |
<_PublicKey>002400000480000094000000060200000024000052534131000400000100010077d32e043d184cf8cebf177201ec6fad091581a3a639a0534f1c4ebb3ab847a6b6636990224a04cf4bd1aec51ecec44cf0c8922eb5bb2ee65ec3fb9baa87e141042c96ce414f98af33508c7e24dab5b068aa802f6693881537ee0efcb5d3f1c9aaf8215ac42e92ba9a5a02574d6890d07464cb2f338b043b1c4ffe98efe069ee</_PublicKey> | |
</PropertyGroup> | |
<ItemGroup> | |
<_InternalsVisibleToAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute"> | |
<_Parameter1 Condition="'%(InternalsVisibleTo.Key)' != ''">%(InternalsVisibleTo.Identity), PublicKey=%(InternalsVisibleTo.Key)</_Parameter1> | |
<_Parameter1 Condition="'%(InternalsVisibleTo.Key)' == ''">%(InternalsVisibleTo.Identity), PublicKey=$(_PublicKey)</_Parameter1> | |
</_InternalsVisibleToAttribute> | |
</ItemGroup> | |
</Target> | |
<Target Name="GenerateFSharpInternalsVisibleToFile" Inputs="$(MSBuildProjectFile)" Outputs="$(GeneratedFSharpInternalsVisibleToFile)" DependsOnTargets="PrepareFSharpGenerateInternalsVisibleToFile;PrepareForBuild" Condition="'$(Configuration)' != 'Proto' and '@(InternalsVisibleTo)' != ''" BeforeTargets="CoreCompile"> | |
<WriteCodeFragment AssemblyAttributes="@(_InternalsVisibleToAttribute)" Language="$(Language)" OutputFile="$(GeneratedFSharpInternalsVisibleToFile)"> | |
<Output TaskParameter="OutputFile" ItemName="CompileBefore" /> | |
<Output TaskParameter="OutputFile" ItemName="FileWrites" /> | |
</WriteCodeFragment> | |
</Target> | |
<Target Name="GenerateAssemblyFileVersion" BeforeTargets="CoreCompile" Condition="'$(Configuration)' != 'Proto'"> | |
<PropertyGroup> | |
<GeneratedFSharpAssemblyVersionFile>$(IntermediateOutputPath)$(MSBuildProjectName).AssemblyVersion$(DefaultLanguageSourceExtension)</GeneratedFSharpAssemblyVersionFile> | |
<!-- AssemblyInformationalVersionAttribute issues a by-design warning if the value passed isn't of the form #.#.#.#, but we specifically want to suppress this to allow the commit hash to be embedded. --> | |
<NoWarn Condition="'$(Language)' == 'F#'">2003;$(NoWarn)</NoWarn> | |
</PropertyGroup> | |
<ItemGroup> | |
<_AssemblyVersionAttributes Include="System.Reflection.AssemblyCompanyAttribute"> | |
<_Parameter1>Microsoft Corporation</_Parameter1> | |
</_AssemblyVersionAttributes> | |
<_AssemblyVersionAttributes Include="System.Reflection.AssemblyCopyrightAttribute"> | |
<_Parameter1>© Microsoft Corporation. All Rights Reserved.</_Parameter1> | |
</_AssemblyVersionAttributes> | |
<_AssemblyVersionAttributes Include="System.Reflection.AssemblyDescriptionAttribute"> | |
<_Parameter1>$(AssemblyName).dll</_Parameter1> | |
</_AssemblyVersionAttributes> | |
<_AssemblyVersionAttributes Include="System.Reflection.AssemblyFileVersionAttribute"> | |
<_Parameter1>$(Build_FileVersion)</_Parameter1> | |
</_AssemblyVersionAttributes> | |
<_AssemblyVersionAttributes Include="System.Reflection.AssemblyInformationalVersionAttribute"> | |
<_Parameter1>$(MicroBuildAssemblyVersion). Commit Hash: $(GitHeadSha).</_Parameter1> | |
</_AssemblyVersionAttributes> | |
<_AssemblyVersionAttributes Include="System.Reflection.AssemblyProductAttribute"> | |
<_Parameter1>Microsoft® F#</_Parameter1> | |
</_AssemblyVersionAttributes> | |
<_AssemblyVersionAttributes Include="System.Reflection.AssemblyTitleAttribute"> | |
<_Parameter1>$(AssemblyName).dll</_Parameter1> | |
</_AssemblyVersionAttributes> | |
<_AssemblyVersionAttributes Include="System.Reflection.AssemblyVersionAttribute"> | |
<_Parameter1>$(MicroBuildAssemblyVersion)</_Parameter1> | |
</_AssemblyVersionAttributes> | |
</ItemGroup> | |
<WriteCodeFragment AssemblyAttributes="@(_AssemblyVersionAttributes)" Language="$(Language)" OutputFile="$(GeneratedFSharpAssemblyVersionFile)"> | |
<!-- For FSharp.Core, assembly version must be inserted after all Core files, as it defines F# basic types (strings) --> | |
<Output TaskParameter="OutputFile" ItemName="Compile" Condition="'$(AssemblyName)' == 'FSharp.Core'" /> | |
<!-- For other assemblies, this must be inserted before all source files, to keep exe's EntryPoints (if any) as the last source file --> | |
<Output TaskParameter="OutputFile" ItemName="CompileBefore" Condition="'$(AssemblyName)' != 'FSharp.Core'" /> | |
<Output TaskParameter="OutputFile" ItemName="FileWrites" /> | |
</WriteCodeFragment> | |
</Target> | |
<UsingTask TaskName="ReplaceFileText" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<InputFilename ParameterType="System.String" Required="true" /> | |
<OutputFilename ParameterType="System.String" Required="true" /> | |
<MatchExpression ParameterType="System.String" Required="true" /> | |
<ReplacementText ParameterType="System.String" Required="true" /> | |
</ParameterGroup> | |
<Task> | |
<Reference Include="System.Core" /> | |
<Using Namespace="System" /> | |
<Using Namespace="System.IO" /> | |
<Using Namespace="System.Text.RegularExpressions" /> | |
<Code Type="Fragment" Language="cs"><![CDATA[ | |
File.WriteAllText( | |
OutputFilename, | |
Regex.Replace(File.ReadAllText(InputFilename), MatchExpression, ReplacementText) | |
); | |
]]></Code> | |
</Task> | |
</UsingTask> | |
<UsingTask TaskName="SetEnvVar" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
<ParameterGroup> | |
<Name ParameterType="System.String" Required="true" /> | |
<Value ParameterType="System.String" Required="true" /> | |
</ParameterGroup> | |
<Task> | |
<Using Namespace="System" /> | |
<Code Type="Fragment" Language="cs"><![CDATA[ | |
Environment.SetEnvironmentVariable(Name, Value); | |
]]></Code> | |
</Task> | |
</UsingTask> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj | |
============================================================================================================================================ | |
--> | |
<!-- | |
============================================================================================================================================ | |
<Import Project="$(FsLexToolPath)\FsLexYacc.targets"> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/packages/FsLexYacc.7.0.6/build/FsLexYacc.targets | |
============================================================================================================================================ | |
--> | |
<!-- | |
*********************************************************************************************** | |
FsLexYacc.targets | |
WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have | |
created a backup copy. Incorrect changes to this file will make it | |
impossible to load or build your projects from the command-line or the IDE. | |
PowerPack build rules. | |
Copyright (C) Microsoft Corporation. All rights reserved. | |
*********************************************************************************************** | |
--> | |
<PropertyGroup> | |
<CompileDependsOn>CallFsLex;CallFsYacc;$(CompileDependsOn)</CompileDependsOn> | |
<FsLexToolPath Condition="'$(FsLexToolPath)' == ''">$(MSBuildThisFileDirectory)</FsLexToolPath> | |
<FsLexToolExe Condition="'$(FsLexToolExe)' == ''">fslex.exe</FsLexToolExe> | |
<FsYaccToolPath Condition="'$(FsYaccToolPath)' == ''">$(MSBuildThisFileDirectory)</FsYaccToolPath> | |
<FsYaccToolExe Condition="'$(FsYaccToolExe)' == ''">fsyacc.exe</FsYaccToolExe> | |
</PropertyGroup> | |
<!-- Build FsLex files. --> | |
<Target Name="CallFsLex" Inputs="@(FsLex)" Outputs="@(FsLex->'$(FsLexOutputFolder)%(Filename).fs')" Condition="'@(FsLex)'!=''"> | |
<!-- Create the output directory --> | |
<MakeDir Directories="$(FsLexOutputFolder)" /> | |
<!-- Call FsLex --> | |
<Exec Command=""$(FsLexToolPath)\$(FsLexToolExe)" -o "$(FsLexOutputFolder)%(FsLex.Filename).fs" %(FsLex.OtherFlags) %(FsLex.Identity)" Condition="'$(OS)' != 'Unix'" /> | |
<Exec Command="mono "$(FsLexToolPath)\$(FsLexToolExe)" -o "$(FsLexOutputFolder)%(FsLex.Filename).fs" %(FsLex.OtherFlags) %(FsLex.Identity)" Condition="'$(OS)' == 'Unix'" /> | |
<!-- Make sure it will get cleaned --> | |
<CreateItem Include="$(FsLexOutputFolder)%(FsLex.Filename).fs"> | |
<Output TaskParameter="Include" ItemName="FileWrites" /> | |
</CreateItem> | |
</Target> | |
<!-- Build FsYacc files. --> | |
<Target Name="CallFsYacc" Inputs="@(FsYacc)" Outputs="@(FsYacc->'$(FsYaccOutputFolder)%(Filename).fs')" Condition="'@(FsYacc)'!=''"> | |
<!-- Create the output directory --> | |
<MakeDir Directories="$(FsYaccOutputFolder)" /> | |
<Exec Command=""$(FsYaccToolPath)\$(FsYaccToolExe)" -o "$(FsYaccOutputFolder)%(FsYacc.Filename).fs" %(FsYacc.OtherFlags) %(FsYacc.Identity)" Condition="'$(OS)' != 'Unix'" /> | |
<Exec Command="mono "$(FsYaccToolPath)\$(FsYaccToolExe)" -o "$(FsYaccOutputFolder)%(FsYacc.Filename).fs" %(FsYacc.OtherFlags) %(FsYacc.Identity)" Condition="'$(OS)' == 'Unix'" /> | |
<!-- Make sure it will get cleaned --> | |
<CreateItem Include="$(FsYaccOutputFolder)%(FsYacc.Filename).fs"> | |
<Output TaskParameter="Include" ItemName="FileWrites" /> | |
</CreateItem> | |
</Target> | |
<ItemGroup> | |
<AvailableItemName Include="FsLex"> | |
<Visible>false</Visible> | |
</AvailableItemName> | |
<AvailableItemName Include="FsYacc"> | |
<Visible>false</Visible> | |
</AvailableItemName> | |
</ItemGroup> | |
<!-- | |
============================================================================================================================================ | |
</Import> | |
/Users/jwostenberg/Code/FSharp/visualfsharp/src/fsharp/FSharp.Compiler.Private/FSharp.Compiler.Private.fsproj | |
============================================================================================================================================ | |
--> | |
<ItemGroup> | |
<InternalsVisibleTo Include="fsc" /> | |
<InternalsVisibleTo Include="FSharp.Build" /> | |
<InternalsVisibleTo Include="fsi" /> | |
<InternalsVisibleTo Include="fsiAnyCpu" /> | |
<InternalsVisibleTo Include="FSharp.LanguageService" /> | |
<InternalsVisibleTo Include="FSharp.LanguageService.Base" /> | |
<InternalsVisibleTo Include="FSharp.ProjectSystem.Base" /> | |
<InternalsVisibleTo Include="FSharp.ProjectSystem.FSharp" /> | |
<InternalsVisibleTo Include="FSharp.ProjectSystem.PropertyPages" /> | |
<InternalsVisibleTo Include="FSharp.Compiler.Interactive.Settings" /> | |
<InternalsVisibleTo Include="FSharp.Compiler.Server.Shared" /> | |
<InternalsVisibleTo Include="VisualFSharp.Salsa" /> | |
<InternalsVisibleTo Include="VisualFSharp.UnitTests" /> | |
<InternalsVisibleTo Include="FSharp.Compiler.UnitTests" /> | |
<InternalsVisibleTo Include="FSharp.Editor" /> | |
<InternalsVisibleTo Include="HostedCompilerServer" /> | |
<InternalsVisibleTo Include="FSharp.Tests.FSharpSuite" /> | |
<InternalsVisibleTo Include="LanguageServiceProfiling" /> | |
</ItemGroup> | |
<ItemGroup> | |
<EmbeddedText Include="..\FSComp.txt"> | |
<Link>FSComp.txt</Link> | |
</EmbeddedText> | |
<EmbeddedResource Include="..\FSStrings.resx"> | |
<Link>FSStrings.resx</Link> | |
</EmbeddedResource> | |
<Compile Include="..\..\utils\reshapedreflection.fs"> | |
<Link>Reflection\reshapedreflection.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\reshapedmsbuild.fs"> | |
<Link>Reflection\reshapedmsbuild.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\sformat.fsi"> | |
<Link>ErrorText\sformat.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\utils\sformat.fs"> | |
<Link>ErrorText\sformat.fs</Link> | |
</Compile> | |
<Compile Include="..\sr.fsi"> | |
<Link>ErrorText\sr.fsi</Link> | |
</Compile> | |
<Compile Include="..\sr.fs"> | |
<Link>ErrorText\sr.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\prim-lexing.fsi"> | |
<Link>LexYaccRuntime\prim-lexing.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\utils\prim-lexing.fs"> | |
<Link>LexYaccRuntime\prim-lexing.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\prim-parsing.fsi"> | |
<Link>LexYaccRuntime\prim-parsing.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\utils\prim-parsing.fs"> | |
<Link>LexYaccRuntime\prim-parsing.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\ResizeArray.fsi"> | |
<Link>Utilities\ResizeArray.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\utils\ResizeArray.fs"> | |
<Link>Utilities\ResizeArray.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\HashMultiMap.fsi"> | |
<Link>Utilities\HashMultiMap.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\utils\HashMultiMap.fs"> | |
<Link>Utilities\HashMultiMap.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\EditDistance.fs"> | |
<Link>Utilities\EditDistance.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\TaggedCollections.fsi"> | |
<Link>Utilities\TaggedCollections.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\utils\TaggedCollections.fs"> | |
<Link>Utilities\TaggedCollections.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ildiag.fsi"> | |
<Link>Utilities\ildiag.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ildiag.fs"> | |
<Link>Utilities\ildiag.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\illib.fs"> | |
<Link>Utilities\illib.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\filename.fsi"> | |
<Link>Utilities\filename.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\utils\filename.fs"> | |
<Link>Utilities\filename.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\zmap.fsi"> | |
<Link>Utilities\zmap.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\zmap.fs"> | |
<Link>Utilities\zmap.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\zset.fsi"> | |
<Link>Utilities\zset.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\zset.fs"> | |
<Link>Utilities\zset.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\bytes.fsi"> | |
<Link>Utilities\bytes.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\bytes.fs"> | |
<Link>Utilities\bytes.fs</Link> | |
</Compile> | |
<Compile Include="..\InternalCollections.fsi"> | |
<Link>Utilities\InternalCollections.fsi</Link> | |
</Compile> | |
<Compile Include="..\InternalCollections.fs"> | |
<Link>Utilities\InternalCollections.fs</Link> | |
</Compile> | |
<Compile Include="..\QueueList.fs"> | |
<Link>Utilities\QueueList.fs</Link> | |
</Compile> | |
<Compile Include="..\lib.fs"> | |
<Link>Utilities\lib.fs</Link> | |
</Compile> | |
<Compile Include="..\rational.fsi"> | |
<Link>Utilities\rational.fsi</Link> | |
</Compile> | |
<Compile Include="..\rational.fs"> | |
<Link>Utilities\rational.fs</Link> | |
</Compile> | |
<Compile Include="..\range.fsi"> | |
<Link>ErrorLogging\range.fsi</Link> | |
</Compile> | |
<Compile Include="..\range.fs"> | |
<Link>ErrorLogging\range.fs</Link> | |
</Compile> | |
<Compile Include="..\ErrorLogger.fs"> | |
<Link>ErrorLogging\ErrorLogger.fs</Link> | |
</Compile> | |
<Compile Include="..\ErrorResolutionHints.fs"> | |
<Link>ErrorLogging\ErrorResolutionHints.fs</Link> | |
</Compile> | |
<Compile Include="..\ReferenceResolver.fs"> | |
<Link>ReferenceResolution\ReferenceResolver.fs</Link> | |
</Compile> | |
<FsLex Include="..\..\absil\illex.fsl"> | |
<OtherFlags>--unicode --lexlib Internal.Utilities.Text.Lexing</OtherFlags> | |
<Link>AbsIL\illex.fsl</Link> | |
</FsLex> | |
<FsYacc Include="..\..\absil\ilpars.fsy"> | |
<OtherFlags>--module Microsoft.FSharp.Compiler.AbstractIL.Internal.AsciiParser --open Microsoft.FSharp.Compiler.AbstractIL --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags> | |
<Link>AbsIL\ilpars.fsy</Link> | |
</FsYacc> | |
<Compile Include="..\..\absil\il.fsi"> | |
<Link>AbsIL\il.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\il.fs"> | |
<Link>AbsIL\il.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilx.fsi"> | |
<Link>AbsIL\ilx.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilx.fs"> | |
<Link>AbsIL\ilx.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilascii.fsi"> | |
<Link>AbsIL\ilascii.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilascii.fs"> | |
<Link>AbsIL\ilascii.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilprint.fsi"> | |
<Link>AbsIL\ilprint.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilprint.fs"> | |
<Link>AbsIL\ilprint.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilmorph.fsi"> | |
<Link>AbsIL\ilmorph.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilmorph.fs"> | |
<Link>AbsIL\ilmorph.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilsign.fs" Condition=" '$(TargetDotnetProfile)'=='coreclr'"> | |
<Link>AbsIL\ilsign.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilsupp.fsi"> | |
<Link>AbsIL\ilsupp.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilsupp.fs"> | |
<Link>AbsIL\ilsupp.fs</Link> | |
</Compile> | |
<Compile Include="ilpars.fs"> | |
<Link>AbsIL\ilpars.fs</Link> | |
</Compile> | |
<Compile Include="illex.fs"> | |
<Link>AbsIL\illex.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilbinary.fsi"> | |
<Link>AbsIL\ilbinary.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilbinary.fs"> | |
<Link>AbsIL\ilbinary.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilread.fsi"> | |
<Link>AbsIL\ilread.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilread.fs"> | |
<Link>AbsIL\ilread.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilwrite.fsi"> | |
<Link>AbsIL\ilwrite.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilwritepdb.fsi"> | |
<Link>AbsIL\ilwritepdb.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilwritepdb.fs"> | |
<Link>AbsIL\ilwritepdb.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilwrite.fs"> | |
<Link>AbsIL\ilwrite.fs</Link> | |
</Compile> | |
<Compile Include="..\..\absil\ilreflect.fs"> | |
<Link>AbsIL\ilreflect.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\CompilerLocationUtils.fs"> | |
<Link>CompilerLocation\CompilerLocationUtils.fs</Link> | |
</Compile> | |
<Compile Include="..\PrettyNaming.fs"> | |
<Link>PrettyNaming\PrettyNaming.fs</Link> | |
</Compile> | |
<Compile Include="..\..\ilx\ilxsettings.fs"> | |
<Link>ILXErase\ilxsettings.fs</Link> | |
</Compile> | |
<Compile Include="..\..\ilx\EraseClosures.fsi"> | |
<Link>ILXErase\EraseClosures.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\ilx\EraseClosures.fs"> | |
<Link>ILXErase\EraseClosures.fs</Link> | |
</Compile> | |
<Compile Include="..\..\ilx\EraseUnions.fsi"> | |
<Link>ILXErase\EraseUnions.fsi</Link> | |
</Compile> | |
<Compile Include="..\..\ilx\EraseUnions.fs"> | |
<Link>ILXErase\EraseUnions.fs</Link> | |
</Compile> | |
<FsLex Include="..\pplex.fsl"> | |
<OtherFlags>--unicode --lexlib Internal.Utilities.Text.Lexing</OtherFlags> | |
<Link>ParserAndUntypedAST\pplex.fsl</Link> | |
</FsLex> | |
<FsYacc Include="..\pppars.fsy"> | |
<OtherFlags>--module Microsoft.FSharp.Compiler.PPParser --open Microsoft.FSharp.Compiler --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags> | |
<Link>ParserAndUntypedAST\pppars.fsy</Link> | |
</FsYacc> | |
<FsLex Include="..\lex.fsl"> | |
<OtherFlags>--unicode --lexlib Internal.Utilities.Text.Lexing</OtherFlags> | |
<Link>ParserAndUntypedAST\lex.fsl</Link> | |
</FsLex> | |
<FsYacc Include="..\pars.fsy"> | |
<OtherFlags>--module Microsoft.FSharp.Compiler.Parser --open Microsoft.FSharp.Compiler --internal --lexlib Internal.Utilities.Text.Lexing --parslib Internal.Utilities.Text.Parsing</OtherFlags> | |
<Link>ParserAndUntypedAST\pars.fsy</Link> | |
</FsYacc> | |
<Compile Include="..\UnicodeLexing.fsi"> | |
<Link>ParserAndUntypedAST\UnicodeLexing.fsi</Link> | |
</Compile> | |
<Compile Include="..\UnicodeLexing.fs"> | |
<Link>ParserAndUntypedAST\UnicodeLexing.fs</Link> | |
</Compile> | |
<Compile Include="..\layout.fsi"> | |
<Link>ParserAndUntypedAST\layout.fsi</Link> | |
</Compile> | |
<Compile Include="..\layout.fs"> | |
<Link>ParserAndUntypedAST\layout.fs</Link> | |
</Compile> | |
<Compile Include="..\ast.fs"> | |
<Link>ParserAndUntypedAST\ast.fs</Link> | |
</Compile> | |
<Compile Include="pppars.fs"> | |
<Link>ParserAndUntypedAST\pppars.fs</Link> | |
</Compile> | |
<Compile Include="pars.fs"> | |
<Link>ParserAndUntypedAST\pars.fs</Link> | |
</Compile> | |
<Compile Include="..\lexhelp.fsi"> | |
<Link>ParserAndUntypedAST\lexhelp.fsi</Link> | |
</Compile> | |
<Compile Include="..\lexhelp.fs"> | |
<Link>ParserAndUntypedAST\lexhelp.fs</Link> | |
</Compile> | |
<Compile Include="pplex.fs"> | |
<Link>ParserAndUntypedAST\pplex.fs</Link> | |
</Compile> | |
<Compile Include="lex.fs"> | |
<Link>ParserAndUntypedAST\lex.fs</Link> | |
</Compile> | |
<Compile Include="..\LexFilter.fs"> | |
<Link>ParserAndUntypedAST\lexfilter.fs</Link> | |
</Compile> | |
<Compile Include="..\tainted.fsi"> | |
<Link>TypedAST\tainted.fsi</Link> | |
</Compile> | |
<Compile Include="..\tainted.fs"> | |
<Link>TypedAST\tainted.fs</Link> | |
</Compile> | |
<Compile Include="..\ExtensionTyping.fsi"> | |
<Link>TypedAST\ExtensionTyping.fsi</Link> | |
</Compile> | |
<Compile Include="..\ExtensionTyping.fs"> | |
<Link>TypedAST\ExtensionTyping.fs</Link> | |
</Compile> | |
<Compile Include="..\QuotationPickler.fsi"> | |
<Link>TypedAST\QuotationPickler.fsi</Link> | |
</Compile> | |
<Compile Include="..\QuotationPickler.fs"> | |
<Link>TypedAST\QuotationPickler.fs</Link> | |
</Compile> | |
<Compile Include="..\tast.fs"> | |
<Link>TypedAST\tast.fs</Link> | |
</Compile> | |
<Compile Include="..\TcGlobals.fs"> | |
<Link>TypedAST\TcGlobals.fs</Link> | |
</Compile> | |
<Compile Include="..\TastOps.fsi"> | |
<Link>TypedAST\TastOps.fsi</Link> | |
</Compile> | |
<Compile Include="..\TastOps.fs"> | |
<Link>TypedAST\TastOps.fs</Link> | |
</Compile> | |
<Compile Include="..\TastPickle.fsi"> | |
<Link>TypedAST\TastPickle.fsi</Link> | |
</Compile> | |
<Compile Include="..\TastPickle.fs"> | |
<Link>TypedAST\TastPickle.fs</Link> | |
</Compile> | |
<Compile Include="..\import.fsi"> | |
<Link>Logic\import.fsi</Link> | |
</Compile> | |
<Compile Include="..\import.fs"> | |
<Link>Logic\import.fs</Link> | |
</Compile> | |
<Compile Include="..\infos.fs"> | |
<Link>Logic\infos.fs</Link> | |
</Compile> | |
<Compile Include="..\AccessibilityLogic.fs"> | |
<Link>Logic\AccessibilityLogic.fs</Link> | |
</Compile> | |
<Compile Include="..\AttributeChecking.fs"> | |
<Link>Logic\AttributeChecking.fs</Link> | |
</Compile> | |
<Compile Include="..\InfoReader.fs"> | |
<Link>Logic\InfoReader.fs</Link> | |
</Compile> | |
<Compile Include="..\NicePrint.fs"> | |
<Link>Logic\NicePrint.fs</Link> | |
</Compile> | |
<Compile Include="..\AugmentWithHashCompare.fsi"> | |
<Link>Logic\AugmentWithHashCompare.fsi</Link> | |
</Compile> | |
<Compile Include="..\AugmentWithHashCompare.fs"> | |
<Link>Logic\AugmentWithHashCompare.fs</Link> | |
</Compile> | |
<Compile Include="..\NameResolution.fsi"> | |
<Link>Logic\NameResolution.fsi</Link> | |
</Compile> | |
<Compile Include="..\NameResolution.fs"> | |
<Link>Logic\NameResolution.fs</Link> | |
</Compile> | |
<Compile Include="..\TypeRelations.fs"> | |
<Link>Logic\TypeRelations.fs</Link> | |
</Compile> | |
<Compile Include="..\SignatureConformance.fs"> | |
<Link>Logic\SignatureConformance.fs</Link> | |
</Compile> | |
<Compile Include="..\MethodOverrides.fs"> | |
<Link>Logic\MethodOverrides.fs</Link> | |
</Compile> | |
<Compile Include="..\MethodCalls.fs"> | |
<Link>Logic\MethodCalls.fs</Link> | |
</Compile> | |
<Compile Include="..\PatternMatchCompilation.fsi"> | |
<Link>Logic\PatternMatchCompilation.fsi</Link> | |
</Compile> | |
<Compile Include="..\PatternMatchCompilation.fs"> | |
<Link>Logic\PatternMatchCompilation.fs</Link> | |
</Compile> | |
<Compile Include="..\ConstraintSolver.fsi"> | |
<Link>Logic\ConstraintSolver.fsi</Link> | |
</Compile> | |
<Compile Include="..\ConstraintSolver.fs"> | |
<Link>Logic\ConstraintSolver.fs</Link> | |
</Compile> | |
<Compile Include="..\CheckFormatStrings.fsi"> | |
<Link>Logic\CheckFormatStrings.fsi</Link> | |
</Compile> | |
<Compile Include="..\CheckFormatStrings.fs"> | |
<Link>Logic\CheckFormatStrings.fs</Link> | |
</Compile> | |
<Compile Include="..\FindUnsolved.fs"> | |
<Link>Logic\FindUnsolved.fs</Link> | |
</Compile> | |
<Compile Include="..\QuotationTranslator.fsi"> | |
<Link>Logic\QuotationTranslator.fsi</Link> | |
</Compile> | |
<Compile Include="..\QuotationTranslator.fs"> | |
<Link>Logic\QuotationTranslator.fs</Link> | |
</Compile> | |
<Compile Include="..\PostInferenceChecks.fsi"> | |
<Link>Logic\PostInferenceChecks.fsi</Link> | |
</Compile> | |
<Compile Include="..\PostInferenceChecks.fs"> | |
<Link>Logic\PostInferenceChecks.fs</Link> | |
</Compile> | |
<Compile Include="..\TypeChecker.fsi"> | |
<Link>Logic\TypeChecker.fsi</Link> | |
</Compile> | |
<Compile Include="..\TypeChecker.fs"> | |
<Link>Logic\TypeChecker.fs</Link> | |
</Compile> | |
<!-- includes the optimizer and code generator --> | |
<Compile Include="..\Optimizer.fsi"> | |
<Link>Optimize\Optimizer.fsi</Link> | |
</Compile> | |
<Compile Include="..\Optimizer.fs"> | |
<Link>Optimize\Optimizer.fs</Link> | |
</Compile> | |
<Compile Include="..\DetupleArgs.fsi"> | |
<Link>Optimize\DetupleArgs.fsi</Link> | |
</Compile> | |
<Compile Include="..\DetupleArgs.fs"> | |
<Link>Optimize\DetupleArgs.fs</Link> | |
</Compile> | |
<Compile Include="..\InnerLambdasToTopLevelFuncs.fsi"> | |
<Link>Optimize\InnerLambdasToTopLevelFuncs.fsi</Link> | |
</Compile> | |
<Compile Include="..\InnerLambdasToTopLevelFuncs.fs"> | |
<Link>Optimize\InnerLambdasToTopLevelFuncs.fs</Link> | |
</Compile> | |
<Compile Include="..\LowerCallsAndSeqs.fs"> | |
<Link>Optimize\LowerCallsAndSeqs.fs</Link> | |
</Compile> | |
<Compile Include="..\autobox.fs"> | |
<Link>Optimize\autobox.fs</Link> | |
</Compile> | |
<Compile Include="..\IlxGen.fsi"> | |
<Link>CodeGen\IlxGen.fsi</Link> | |
</Compile> | |
<Compile Include="..\IlxGen.fs"> | |
<Link>CodeGen\IlxGen.fs</Link> | |
</Compile> | |
<!-- includes the core of the F# Compiler fsc.exe implementation --> | |
<Compile Include="..\CompileOps.fsi"> | |
<Link>Driver\CompileOps.fsi</Link> | |
</Compile> | |
<Compile Include="..\CompileOps.fs"> | |
<Link>Driver\CompileOps.fs</Link> | |
</Compile> | |
<Compile Include="..\CompileOptions.fsi"> | |
<Link>Driver\CompileOptions.fsi</Link> | |
</Compile> | |
<Compile Include="..\CompileOptions.fs"> | |
<Link>Driver\CompileOptions.fs</Link> | |
</Compile> | |
<Compile Include="..\fsc.fsi"> | |
<Link>Driver\fsc.fsi</Link> | |
</Compile> | |
<Compile Include="..\fsc.fs"> | |
<Link>Driver\fsc.fs</Link> | |
</Compile> | |
<!-- the symbol API. --> | |
<Compile Include="..\symbols\SymbolHelpers.fsi"> | |
<Link>Symbols/SymbolHelpers.fsi</Link> | |
</Compile> | |
<Compile Include="..\symbols\SymbolHelpers.fs"> | |
<Link>Symbols/SymbolHelpers.fs</Link> | |
</Compile> | |
<Compile Include="..\symbols\Symbols.fsi"> | |
<Link>Symbols/Symbols.fsi</Link> | |
</Compile> | |
<Compile Include="..\symbols\Symbols.fs"> | |
<Link>Symbols/Symbols.fs</Link> | |
</Compile> | |
<Compile Include="..\symbols\Exprs.fsi"> | |
<Link>Symbols/Exprs.fsi</Link> | |
</Compile> | |
<Compile Include="..\symbols\Exprs.fs"> | |
<Link>Symbols/Exprs.fs</Link> | |
</Compile> | |
<Compile Include="..\symbols\SymbolPatterns.fsi"> | |
<Link>Symbols/SymbolPatterns.fsi</Link> | |
</Compile> | |
<Compile Include="..\symbols\SymbolPatterns.fs"> | |
<Link>Symbols/SymbolPatterns.fs</Link> | |
</Compile> | |
<!-- the incremental builder and service . --> | |
<Compile Include="..\service\IncrementalBuild.fsi"> | |
<Link>Service/IncrementalBuild.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\IncrementalBuild.fs"> | |
<Link>Service/IncrementalBuild.fs</Link> | |
</Compile> | |
<Compile Include="..\service\Reactor.fsi"> | |
<Link>Service/Reactor.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\Reactor.fs"> | |
<Link>Service/Reactor.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceConstants.fs"> | |
<Link>Service/ServiceConstants.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceDeclarationLists.fsi"> | |
<Link>Service/ServiceDeclarationLists.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceDeclarationLists.fs"> | |
<Link>Service/ServiceDeclarationLists.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceLexing.fsi"> | |
<Link>Service/ServiceLexing.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceLexing.fs"> | |
<Link>Service/ServiceLexing.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceParseTreeWalk.fs"> | |
<Link>Service/ServiceParseTreeWalk.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceNavigation.fsi"> | |
<Link>Service/ServiceNavigation.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceNavigation.fs"> | |
<Link>Service/ServiceNavigation.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceParamInfoLocations.fsi"> | |
<Link>Service/ServiceParamInfoLocations.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceParamInfoLocations.fs"> | |
<Link>Service/ServiceParamInfoLocations.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceUntypedParse.fsi"> | |
<Link>Service/ServiceUntypedParse.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceUntypedParse.fs"> | |
<Link>Service/ServiceUntypedParse.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceAssemblyContent.fsi"> | |
<Link>Service/ServiceAssemblyContent.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceAssemblyContent.fs"> | |
<Link>Service/ServiceAssemblyContent.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceXmlDocParser.fsi"> | |
<Link>Service/ServiceXmlDocParser.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceXmlDocParser.fs"> | |
<Link>Service/ServiceXmlDocParser.fs</Link> | |
</Compile> | |
<Compile Include="..\..\utils\reshapedmsbuild.fs"> | |
<Link>Service/reshapedmsbuild.fs</Link> | |
</Compile> | |
<Compile Include="..\SimulatedMSBuildReferenceResolver.fs"> | |
<Link>Service/SimulatedMSBuildReferenceResolver.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ExternalSymbol.fsi"> | |
<Link>Service/ExternalSymbol.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ExternalSymbol.fs"> | |
<Link>Service/ExternalSymbol.fs</Link> | |
</Compile> | |
<Compile Include="..\service\QuickParse.fsi"> | |
<Link>Service/QuickParse.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\QuickParse.fs"> | |
<Link>Service/QuickParse.fs</Link> | |
</Compile> | |
<Compile Include="..\service\service.fsi"> | |
<Link>Service/service.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\service.fs"> | |
<Link>Service/service.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceInterfaceStubGenerator.fsi"> | |
<Link>Service/ServiceInterfaceStubGenerator.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceInterfaceStubGenerator.fs"> | |
<Link>Service/ServiceInterfaceStubGenerator.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceStructure.fsi"> | |
<Link>Service/ServiceStructure.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceStructure.fs"> | |
<Link>Service/ServiceStructure.fs</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceAnalysis.fsi"> | |
<Link>Service/ServiceAnalysis.fsi</Link> | |
</Compile> | |
<Compile Include="..\service\ServiceAnalysis.fs"> | |
<Link>Service/ServiceAnalysis.fs</Link> | |
</Compile> | |
<!-- the core of the F# Interactive fsi.exe implementation --> | |
<EmbeddedText Include="..\fsi\FSIstrings.txt"> | |
<Link>FSIstrings.txt</Link> | |
</EmbeddedText> | |
<Compile Include="..\fsi\fsi.fsi"> | |
<Link>InteractiveSession/fsi.fsi</Link> | |
</Compile> | |
<Compile Include="..\fsi\fsi.fs"> | |
<Link>InteractiveSession/fsi.fs</Link> | |
</Compile> | |
<Compile Include="..\MSBuildReferenceResolver.fs" Condition="'$(MonoPackaging)' != 'true'"> | |
<Link>Misc/MSBuildReferenceResolver.fs</Link> | |
</Compile> | |
<!-- an old API for testing the compiler and gathering diagnostics in-memory --> | |
<Compile Include="..\LegacyHostedCompilerForTesting.fs" Condition="'$(MonoPackaging)' != 'true'"> | |
<Link>Misc/LegacyHostedCompilerForTesting.fs</Link> | |
</Compile> | |
</ItemGroup> | |
<ItemGroup> | |
<PackageNuspec Include="FSharp.Compiler.Private.netcore.nuspec" Condition="'$(TargetDotnetProfile)' == 'coreclr'" /> | |
</ItemGroup> | |
<ItemGroup Condition="'$(TargetDotnetProfile)' == 'coreclr'"> | |
<None Include="project.json" /> | |
</ItemGroup> | |
<ItemGroup Condition="'$(TargetDotnetProfile)' != 'coreclr'"> | |
<Reference Include="mscorlib" /> | |
<Reference Include="System" /> | |
<Reference Include="System.Core" /> | |
<Reference Include="System.Numerics" /> | |
<Reference Include="ISymWrapper, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | |
<Reference Include="Microsoft.DiaSymReader.PortablePdb"> | |
<HintPath>..\..\..\packages\Microsoft.DiaSymReader.PortablePdb.$(MicrosoftDiaSymReaderPortablePdbPackageVersion)\lib\netstandard1.1\Microsoft.DiaSymReader.PortablePdb.dll</HintPath> | |
</Reference> | |
<Reference Include="Microsoft.DiaSymReader"> | |
<HintPath>..\..\..\packages\Microsoft.DiaSymReader.$(MicrosoftDiaSymReaderPackageVersion)\lib\netstandard1.1\Microsoft.DiaSymReader.dll</HintPath> | |
</Reference> | |
<Reference Include="System.Reflection.Metadata"> | |
<HintPath>..\..\..\packages\System.Reflection.Metadata.1.4.2\lib\portable-net45+win8\System.Reflection.Metadata.dll</HintPath> | |
</Reference> | |
<Reference Include="System.Collections.Immutable"> | |
<HintPath>..\..\..\packages\System.Collections.Immutable.$(SystemCollectionsImmutableVersion)\lib\portable-net45+win8+wp8+wpa81\System.Collections.Immutable.dll</HintPath> | |
</Reference> | |
<Reference Include="System.ValueTuple"> | |
<HintPath>..\..\..\packages\System.ValueTuple.4.3.1\lib\netstandard1.0\System.ValueTuple.dll</HintPath> | |
<Private>true</Private> | |
</Reference> | |
</ItemGroup> | |
<ItemGroup Condition=" '$(TargetDotnetProfile)' != 'coreclr' AND '$(MonoPackaging)' != 'true' "> | |
<Reference Include="Microsoft.Build.Framework, Version=$(VisualStudioVersion).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |
<HintPath>$(FSharpSourcesRoot)\..\packages\Microsoft.VisualFSharp.Msbuild.15.0.1.0.1\lib\net45\Microsoft.Build.Framework.dll</HintPath> | |
</Reference> | |
<Reference Include="Microsoft.Build, Version=$(VisualStudioVersion).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |
<HintPath>$(FSharpSourcesRoot)\..\packages\Microsoft.VisualFSharp.Msbuild.15.0.1.0.1\lib\net45\Microsoft.Build.dll</HintPath> | |
</Reference> | |
<Reference Include="Microsoft.Build.Utilities.Core, Version=$(VisualStudioVersion).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |
<HintPath>$(FSharpSourcesRoot)\..\packages\Microsoft.VisualFSharp.Msbuild.15.0.1.0.1\lib\net45\Microsoft.Build.Utilities.Core.dll</HintPath> | |
</Reference> | |
<Reference Include="Microsoft.Build.Tasks.Core, Version=$(VisualStudioVersion).0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | |
<HintPath>$(FSharpSourcesRoot)\..\packages\Microsoft.VisualFSharp.Msbuild.15.0.1.0.1\lib\net45\Microsoft.Build.Tasks.Core.dll</HintPath> | |
</Reference> | |
</ItemGroup> | |
<ItemGroup> | |
<ProjectReference Include="$(FSharpSourcesRoot)\fsharp\FSharp.Core\FSharp.Core.fsproj"> | |
<Project>{DED3BBD7-53F4-428A-8C9F-27968E768605}</Project> | |
<Name>FSharp.Core</Name> | |
</ProjectReference> | |
</ItemGroup> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment