|
7 | 7 | <OsEnvironment Condition="'$(OsEnvironment)'=='' and '$(OS)'=='OSX'">Unix</OsEnvironment> |
8 | 8 | <OsEnvironment Condition="'$(OsEnvironment)'==''">$(OS)</OsEnvironment> |
9 | 9 | </PropertyGroup> |
10 | | - |
| 10 | + |
11 | 11 | <!-- Build Tools Versions --> |
12 | 12 | <PropertyGroup> |
13 | 13 | <RoslynVersion>1.0.0-rc3-20150510-01</RoslynVersion> |
14 | 14 | <RoslynPackageName>Microsoft.Net.ToolsetCompilers</RoslynPackageName> |
15 | 15 | </PropertyGroup> |
16 | 16 |
|
17 | | - <!-- |
18 | | - Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer |
19 | | - as well as runnning the build on mono. Until we can get these sorted out we will continue using the .NET 4.5 version of the tasks. |
20 | | - --> |
| 17 | + <!-- |
| 18 | + Switching to the .NET Core version of the BuildTools tasks seems to break numerous scenarios, such as VS intellisense and resource designer |
| 19 | + as well as runnning the build on mono. Until we can get these sorted out we will continue using the .NET 4.5 version of the tasks. |
| 20 | + --> |
21 | 21 | <PropertyGroup> |
22 | | - <BuildToolsTargets45>true</BuildToolsTargets45> |
| 22 | + <BuildToolsTargets45>true</BuildToolsTargets45> |
23 | 23 | </PropertyGroup> |
24 | | - |
| 24 | + |
25 | 25 | <!-- Common properties --> |
26 | 26 | <PropertyGroup> |
27 | 27 | <!-- Set basic properties and normalize --> |
28 | | - |
| 28 | + |
29 | 29 | <BuildArch>$(__BuildArch)</BuildArch> |
30 | 30 | <BuildArch Condition="'$(__BuildArch)'==''">x64</BuildArch> |
31 | 31 | <BuildArch Condition="'$(__BuildArch)' == 'amd64'">x64</BuildArch> |
|
60 | 60 | --> |
61 | 61 | <PackagesBinDir>$(__PackagesBinDir)</PackagesBinDir> |
62 | 62 | <PackagesBinDir Condition="'$(__PackagesBinDir)'==''">$(BinDir).nuget\</PackagesBinDir> |
63 | | - |
64 | | - <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools/</ToolsDir> |
65 | | - <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli/</DotnetCliPath> |
| 63 | + |
| 64 | + <ToolsDir Condition="'$(ToolsDir)'==''">$(ProjectDir)Tools/</ToolsDir> |
| 65 | + <DotnetCliPath Condition="'$(DotnetCliPath)'==''">$(ToolsDir)dotnetcli/</DotnetCliPath> |
66 | 66 | <BuildToolsSemaphore Condition="'$(BuildToolsSemaphore)' == ''">$(ToolsDir)Microsoft.DotNet.Build.Tasks.dll</BuildToolsSemaphore> |
67 | | - |
| 67 | + |
68 | 68 | <TestWorkingDir>$(__TestWorkingDir)\</TestWorkingDir> |
69 | 69 | <TestWorkingDir Condition="'$(__TestWorkingDir)'==''">$(RootBinDir)tests\$(BuildOS).$(BuildArch).$(BuildType)\</TestWorkingDir> |
70 | 70 | <BuildToolsTaskDir Condition="'$(BuildToolsTargets45)' == 'true'">$(ToolsDir)net45/</BuildToolsTaskDir> |
71 | 71 |
|
72 | 72 | <Platform Condition="'$(Platform)' == ''">$(BuildArch)</Platform> |
73 | 73 | <Platform Condition="'$(Platform)' == 'amd64'">x64</Platform> |
74 | | - |
| 74 | + |
75 | 75 | </PropertyGroup> |
76 | 76 |
|
77 | 77 | <!-- Output paths --> |
|
83 | 83 | </PropertyGroup> |
84 | 84 |
|
85 | 85 | <Import Condition="Exists('$(ToolsDir)BuildVersion.targets')" Project="$(ToolsDir)BuildVersion.targets" /> |
86 | | - |
87 | | - <!-- Import Build tools common props file where repo-independent properties are found --> |
88 | | - <Import Condition="Exists('$(ToolsDir)Build.Common.props')" Project="$(ToolsDir)Build.Common.props" /> |
89 | 86 |
|
90 | | - |
| 87 | + <!-- Import Build tools common props file where repo-independent properties are found --> |
| 88 | + <Import Condition="Exists('$(ToolsDir)Build.Common.props')" Project="$(ToolsDir)Build.Common.props" /> |
| 89 | + |
| 90 | + |
91 | 91 | <!-- Common nuget properties --> |
92 | 92 | <PropertyGroup> |
93 | 93 | <NuGetToolPath Condition="'$(NuGetToolPath)'==''">$(PackagesDir)NuGet.exe</NuGetToolPath> |
|
103 | 103 | <NugetRestoreCommand>$(NugetRestoreCommand) -Verbosity detailed</NugetRestoreCommand> |
104 | 104 | <NugetRestoreCommand Condition="'$(OsEnvironment)'=='Unix'">mono $(NuGetRestoreCommand)</NugetRestoreCommand> |
105 | 105 | </PropertyGroup> |
106 | | - |
| 106 | + |
107 | 107 | <PropertyGroup> |
108 | | - <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'!='Unix'">$(DotnetCliPath)dotnet.exe</DotnetToolCommand> |
109 | | - <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'=='Unix'">$(DotnetCliPath)dotnet</DotnetToolCommand> |
| 108 | + <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'!='Unix'">$(DotnetCliPath)dotnet.exe</DotnetToolCommand> |
| 109 | + <DotnetToolCommand Condition="'$(DotnetToolCommand)'=='' and '$(OsEnvironment)'=='Unix'">$(DotnetCliPath)dotnet</DotnetToolCommand> |
110 | 110 |
|
111 | | - <DnuRestoreCommand>$(DnuRestoreCommand) "$(DotnetToolCommand)"</DnuRestoreCommand> |
| 111 | + <DnuRestoreCommand>$(DnuRestoreCommand) "$(DotnetToolCommand)"</DnuRestoreCommand> |
112 | 112 | <DnuRestoreCommand>$(DnuRestoreCommand) restore</DnuRestoreCommand> |
113 | 113 | <DnuRestoreCommand>$(DnuRestoreCommand) --packages "$(PackagesDir.TrimEnd('\\'))"</DnuRestoreCommand> |
114 | 114 | </PropertyGroup> |
115 | | - |
| 115 | + |
116 | 116 | <!-- |
117 | 117 | Set up Roslyn predefines |
118 | 118 | --> |
|
128 | 128 | <TargetsNetBSD Condition="'$(BuildOS)' == 'NetBSD'">true</TargetsNetBSD> |
129 | 129 | <TargetsOSX Condition="'$(BuildOS)' == 'OSX'">true</TargetsOSX> |
130 | 130 | <TargetsWindows Condition="'$(BuildOS)' == 'Windows_NT'">true</TargetsWindows> |
131 | | - |
| 131 | + |
132 | 132 | <TargetsUnix Condition="'$(TargetsFreeBSD)' == 'true' or '$(TargetsLinux)' == 'true' or '$(TargetsNetBSD)' == 'true' or '$(TargetsOSX)' == 'true'">true</TargetsUnix> |
133 | 133 |
|
134 | 134 | <!-- We are only tracking Linux Distributions for Nuget RID mapping --> |
|
142 | 142 | <PackageDescriptionFile>$(SourceDir).nuget/descriptions.json</PackageDescriptionFile> |
143 | 143 | <PackageLicenseFile>$(SourceDir).nuget/dotnet_library_license.txt</PackageLicenseFile> |
144 | 144 | <PackageThirdPartyNoticesFile>$(SourceDir).nuget/ThirdPartyNotices.txt</PackageThirdPartyNoticesFile> |
145 | | - |
| 145 | + |
146 | 146 | <!-- This should be kept in sync with package details in src/.nuget/init/project.json --> |
147 | 147 | <RuntimeIdGraphDefinitionFile>$(PackagesDir)/Microsoft.NETCore.Platforms/1.0.1-rc2-23712/runtime.json</RuntimeIdGraphDefinitionFile> |
148 | 148 |
|
|
155 | 155 | <PackagePlatform Condition="'$(PackagePlatform)' == ''">$(Platform)</PackagePlatform> |
156 | 156 | <PackagePlatform Condition="'$(PackagePlatform)' == 'amd64'">x64</PackagePlatform> |
157 | 157 | <PackageOutputPath>$(PackagesBinDir)/pkg/</PackageOutputPath> |
158 | | - <SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath> |
| 158 | + <SymbolPackageOutputPath>$(PackagesBinDir)/symbolpkg/</SymbolPackageOutputPath> |
159 | 159 | </PropertyGroup> |
160 | 160 |
|
| 161 | + <!-- Add required legal files to packages --> |
| 162 | + <ItemGroup Condition="'$(MSBuildProjectExtension)' == '.pkgproj'"> |
| 163 | + <File Condition="Exists('$(PackageLicenseFile)')" |
| 164 | + Include="$(PackageLicenseFile)" > |
| 165 | + <SkipPackageFileCheck>true</SkipPackageFileCheck> |
| 166 | + </File> |
| 167 | + <File Condition="Exists('$(PackageThirdPartyNoticesFile)')" |
| 168 | + Include="$(PackageThirdPartyNoticesFile)" > |
| 169 | + <SkipPackageFileCheck>true</SkipPackageFileCheck> |
| 170 | + </File> |
| 171 | + </ItemGroup> |
| 172 | + |
161 | 173 | </Project> |
0 commit comments