Fix dotnet-build.sh
[platform/core/dotnet/build-tools.git] / dotnet / sdk / 2.0.0-preview1-005977 / Microsoft.NETFramework.targets
1 <!--\r
2 ***********************************************************************************************\r
3 Microsoft.NetFramework.targets\r
4 \r
5 WARNING:  DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have\r
6           created a backup copy.  Incorrect changes to this file will make it\r
7           impossible to load or build your projects from the command-line or the IDE.\r
8 \r
9 This file contains .net framework specific properties, items and targets. They are factored into a Microsoft.NETFramework.targets and Microsoft.NetFramework.props\r
10 these two files are used to encapsulate the multi-targeting and framework specific build process.\r
11 \r
12 Copyright (C) Microsoft Corporation. All rights reserved.\r
13 ***********************************************************************************************\r
14 -->\r
15 \r
16 <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
17    <!-- \r
18         In VS 2010 SP1 and VS 2012, both supported for asset compatibility, the MSBuild installed \r
19         as part of them did not enforce using the local ToolsVersion (4.0) in all cases, but instead \r
20         just used whatever ToolsVersion was in the project file if it existed on the machine, and \r
21         only forced 4.0 if that ToolsVersion did not exist.  \r
22 \r
23         Moving forward, we do want to enforce a single acting ToolsVersion per version of Visual Studio, \r
24         but in order to approximate this behavior on VS 2010 SP1 and VS 2012 as well, we've redirected \r
25         the targets:  If we're building using 4.X MSBuild (which doesn't define the new reserved \r
26         property, MSBuildAssemblyVersion), we'll point right back at the 4.0 targets, which still exist \r
27         as part of the .NET Framework.  Only if we're using the new MSBuild will we point to the current\r
28         targets. \r
29    -->\r
30 \r
31    <Choose>\r
32       <When Condition="'$(MSBuildAssemblyVersion)' == ''">\r
33          <PropertyGroup>\r
34             <NetFrameworkTargetsPath>$(MSBuildFrameworkToolsPath)\Microsoft.NETFramework.targets</NetFrameworkTargetsPath>\r
35          </PropertyGroup>\r
36       </When>\r
37       <Otherwise>\r
38          <PropertyGroup>\r
39             <NetFrameworkTargetsPath>$(MSBuildToolsPath)\Microsoft.NETFramework.CurrentVersion.targets</NetFrameworkTargetsPath>\r
40          </PropertyGroup>\r
41       </Otherwise>\r
42    </Choose>\r
43 \r
44    <PropertyGroup Condition="'$(MSBuildAssemblyVersion)' == ''">\r
45       <!--\r
46            Overrides for the Microsoft.NETFramework.targets extension targets.  Used to make sure that only the imports we specify \r
47            (hard-coded to 4.0 locations) are used, not the 12.0 locations that would be used by default. \r
48        -->\r
49       <ImportByWildcardBefore40MicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkTargets)' == ''">$(ImportByWildcardBeforeMicrosoftNetFrameworkTargets)</ImportByWildcardBefore40MicrosoftNetFrameworkTargets>\r
50       <ImportByWildcardBefore40MicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkTargets)' == ''">true</ImportByWildcardBefore40MicrosoftNetFrameworkTargets>\r
51 \r
52       <ImportByWildcardAfter40MicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkTargets)' == ''">$(ImportByWildcardAfterMicrosoftNetFrameworkTargets)</ImportByWildcardAfter40MicrosoftNetFrameworkTargets>\r
53       <ImportByWildcardAfter40MicrosoftNetFrameworkTargets Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkTargets)' == ''">true</ImportByWildcardAfter40MicrosoftNetFrameworkTargets>\r
54 \r
55       <ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets)' == ''">$(ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets)</ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets>\r
56       <ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets)' == ''">true</ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets>\r
57 \r
58       <ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets)' == ''">$(ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets)</ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets>\r
59       <ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets)' == ''">true</ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets>\r
60 \r
61       <ImportByWildcardBeforeMicrosoftNetFrameworkTargets>false</ImportByWildcardBeforeMicrosoftNetFrameworkTargets>\r
62       <ImportByWildcardAfterMicrosoftNetFrameworkTargets>false</ImportByWildcardAfterMicrosoftNetFrameworkTargets>\r
63       <ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets>false</ImportUserLocationsByWildcardBeforeMicrosoftNetFrameworkTargets>\r
64       <ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets>false</ImportUserLocationsByWildcardAfterMicrosoftNetFrameworkTargets>\r
65    </PropertyGroup>\r
66 \r
67    <ImportGroup Condition="'$(MSBuildAssemblyVersion)' == ''">\r
68       <Import Project="$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportBefore\*" Condition="'$(ImportUserLocationsByWildcardBefore40MicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportBefore')"/>\r
69       <Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportBefore\*" Condition="'$(ImportByWildcardBefore40MicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportBefore')"/>\r
70    </ImportGroup> \r
71 \r
72    <Import Project="$(NetFrameworkTargetsPath)" />\r
73 \r
74    <ImportGroup Condition="'$(MSBuildAssemblyVersion)' == ''">\r
75       <Import Project="$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportAfter\*" Condition="'$(ImportByWildcardAfter40MicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportAfter')"/>\r
76       <Import Project="$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportAfter\*" Condition="'$(ImportUserLocationsByWildcardAfter40MicrosoftNetFrameworkTargets)' == 'true' and exists('$(MSBuildUserExtensionsPath)\4.0\Microsoft.NETFramework.targets\ImportAfter')"/>\r
77    </ImportGroup> \r
78 \r
79 </Project>\r