|
3 | 3 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
4 | 4 | <Choose>
|
5 | 5 | <When Condition="'$(Configuration)' == 'Debug' or '$(Configuration)' == 'Release' or '$(Configuration)' == 'VSDebug' or '$(Configuration)' == 'VSRelease' ">
|
| 6 | + <PropertyGroup> |
| 7 | + <SkipSigning>true</SkipSigning><!-- Skip using the ,net toolset to generate signing . --> |
| 8 | + </PropertyGroup> |
6 | 9 | <Choose>
|
7 | 10 | <When Condition="'$(ProjectLanguage)' == 'FSharp'">
|
8 | 11 | <Choose>
|
|
33 | 36 | </PropertyGroup>
|
34 | 37 | </When>
|
35 | 38 | <Otherwise>
|
36 |
| - <PropertyGroup Condition="'$(SIGN_WITH_MSFT_KEY)' == 'true'"> |
| 39 | + <PropertyGroup Condition="'$(SIGN_WITH_MSFT_KEY)' == 'true' or '$(TargetFramework)' == 'coreclr'"> |
37 | 40 | <OtherFlags>$(OtherFlags) --version:4.4.0.9055 --delaysign+ --keyfile:"$(FSharpSourcesRoot)\fsharp\msft.pubkey"</OtherFlags>
|
38 | 41 | <DefineConstants>STRONG_NAME_AND_DELAY_SIGN_FSHARP_COMPILER_WITH_MSFT_KEY;$(DefineConstants)</DefineConstants>
|
39 | 42 | <StrongNames>true</StrongNames>
|
40 | 43 | </PropertyGroup>
|
41 |
| - <PropertyGroup Condition="'$(SIGN_WITH_MSFT_KEY)' != 'true'"> |
| 44 | + <PropertyGroup Condition="'$(SIGN_WITH_MSFT_KEY)' != 'true' and '$(TargetFramework)' != 'coreclr'"> |
42 | 45 | <OtherFlags>$(OtherFlags) --version:4.4.0.9055 --keyfile:"$(FSharpSourcesRoot)\fsharp\test.snk"</OtherFlags>
|
43 | 46 | <DefineConstants>STRONG_NAME_FSHARP_COMPILER_WITH_TEST_KEY;$(DefineConstants)</DefineConstants>
|
44 | 47 | <StrongNames>true</StrongNames>
|
|
125 | 128 | <DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants>
|
126 | 129 | <DefineConstants>$(DefineConstants);FX_NO_BIGINT</DefineConstants>
|
127 | 130 | <DefineConstants>$(DefineConstants);FX_NO_CONDITIONAL_WEAK_TABLE</DefineConstants>
|
| 131 | + <DefineConstants>$(DefineConstants);ENABLE_MONO_SUPPORT</DefineConstants> |
| 132 | + <DefineConstants>$(DefineConstants);FX_MSBUILDRESOLVER_RUNTIMELIKE</DefineConstants> |
| 133 | + <DefineConstants>$(DefineConstants);TYPE_PROVIDER_SECURITY</DefineConstants> |
| 134 | + <DefineConstants>$(DefineConstants);FX_LCIDFROMCODEPAGE</DefineConstants> |
128 | 135 | <OtherFlags>$(OtherFlags) --simpleresolution</OtherFlags>
|
129 | 136 | </PropertyGroup>
|
130 | 137 |
|
|
138 | 145 | <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants>
|
139 | 146 | <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE;</DefineConstants>
|
140 | 147 | <DefineConstants>$(DefineConstants);FX_ATLEAST_LINQ</DefineConstants>
|
| 148 | + <DefineConstants>$(DefineConstants);ENABLE_MONO_SUPPORT</DefineConstants> |
| 149 | + <DefineConstants>$(DefineConstants);FX_MSBUILDRESOLVER_RUNTIMELIKE</DefineConstants> |
| 150 | + <DefineConstants>$(DefineConstants);TYPE_PROVIDER_SECURITY</DefineConstants> |
| 151 | + <DefineConstants>$(DefineConstants);FX_LCIDFROMCODEPAGE</DefineConstants> |
| 152 | + <DefineConstants>$(DefineConstants);FX_RESX_RESOURCE_READER</DefineConstants> |
| 153 | + <DefineConstants>$(DefineConstants);FX_RESIDENT_COMPILER</DefineConstants> |
| 154 | + |
141 | 155 | <TargetFrameworkProfile></TargetFrameworkProfile>
|
142 | 156 | <!-- MSbuild works out the assembly references -->
|
143 | 157 | </PropertyGroup>
|
|
146 | 160 | <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
147 | 161 | <DefineConstants>$(DefineConstants);FSHARP_CORE_4_5</DefineConstants>
|
148 | 162 | <DefineConstants>$(DefineConstants);FX_NO_BEGINEND_READWRITE</DefineConstants>
|
149 |
| - <DefineConstants Condition="'$(Configuration)'!='Proto'">$(DefineConstants);FX_ATLEAST_45</DefineConstants> |
| 163 | + <DefineConstants>$(DefineConstants);FX_ATLEAST_45</DefineConstants> |
150 | 164 | <DefineConstants>$(DefineConstants);FX_ATLEAST_40</DefineConstants>
|
151 | 165 | <DefineConstants>$(DefineConstants);FX_ATLEAST_35</DefineConstants>
|
152 | 166 | <DefineConstants>$(DefineConstants);FX_ATLEAST_PORTABLE</DefineConstants>
|
153 | 167 | <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants>
|
154 | 168 | <DefineConstants>$(DefineConstants);PUT_TYPE_PROVIDERS_IN_FSCORE;</DefineConstants>
|
155 | 169 | <DefineConstants>$(DefineConstants);FX_ATLEAST_LINQ</DefineConstants>
|
| 170 | + <DefineConstants>$(DefineConstants);FX_RESHAPED_GLOBALIZATION</DefineConstants> |
156 | 171 | <DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION</DefineConstants>
|
| 172 | + <DefineConstants>$(DefineConstants);FX_RESHAPED_REFLECTION_CORECLR</DefineConstants> |
| 173 | + <DefineConstants>$(DefineConstants);RESHAPED_MSBUILD</DefineConstants> |
157 | 174 | <DefineConstants>$(DefineConstants);FX_NO_CONVERTER</DefineConstants>
|
158 | 175 | <DefineConstants>$(DefineConstants);FX_NO_ARRAY_LONG_LENGTH</DefineConstants>
|
159 | 176 | <DefineConstants>$(DefineConstants);FX_NO_EXIT</DefineConstants>
|
160 | 177 | <DefineConstants>$(DefineConstants);FX_NO_DEFAULT_DEPENDENCY_TYPE</DefineConstants>
|
161 | 178 | <DefineConstants>$(DefineConstants);FX_NO_BINARY_SERIALIZATION</DefineConstants>
|
162 | 179 | <DefineConstants>$(DefineConstants);FX_NO_CUSTOMATTRIBUTEDATA</DefineConstants>
|
163 |
| - <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_METADATA_TOKENS</DefineConstants> |
| 180 | + <DefineConstants>$(DefineConstants);FX_NO_REFLECTION_MODULE_HANDLES</DefineConstants> |
164 | 181 | <DefineConstants>$(DefineConstants);FX_NO_WEB_CLIENT</DefineConstants>
|
165 | 182 | <DefineConstants>$(DefineConstants);FX_EVENTWAITHANDLE_NO_IDISPOSABLE</DefineConstants>
|
166 | 183 | <DefineConstants>$(DefineConstants);FX_NO_EXIT_CONTEXT_FLAGS</DefineConstants>
|
167 | 184 | <DefineConstants>$(DefineConstants);FX_NO_WAITONE_MILLISECONDS</DefineConstants>
|
168 | 185 | <DefineConstants>$(DefineConstants);FX_NO_PARAMETERIZED_THREAD_START</DefineConstants>
|
169 | 186 | <DefineConstants>$(DefineConstants);FX_NO_THREAD</DefineConstants>
|
| 187 | + <DefineConstants>$(DefineConstants);FX_NO_SECURITY_PERMISSIONS</DefineConstants> |
| 188 | + <DefineConstants>$(DefineConstants);NO_HEAPTERMINATION</DefineConstants> |
| 189 | + <DefineConstants>$(DefineConstants);FX_REDUCED_EXCEPTIONS</DefineConstants> |
| 190 | + <DefineConstants>$(DefineConstants);FX_NO_PDB_READER</DefineConstants> |
| 191 | + <DefineConstants>$(DefineConstants);FX_NO_PDB_WRITER</DefineConstants> |
| 192 | + <DefineConstants>$(DefineConstants);FX_NO_SYMBOLSTORE</DefineConstants> |
| 193 | + <DefineConstants>$(DefineConstants);FX_NO_LINKEDRESOURCES</DefineConstants> |
| 194 | + <DefineConstants>$(DefineConstants);FX_NO_KEY_SIGNING</DefineConstants> |
| 195 | + <DefineConstants>$(DefineConstants);FX_RESHAPED_REFEMIT</DefineConstants> |
| 196 | + <DefineConstants>$(DefineConstants);FX_NO_APP_DOMAINS</DefineConstants> |
| 197 | + <DefineConstants>$(DefineConstants);FX_NO_SYSTEM_CONFIGURATION</DefineConstants> |
| 198 | + <DefineConstants>$(DefineConstants);FX_RESHAPED_CONSOLE</DefineConstants> |
| 199 | + <DefineConstants>$(DefineConstants);FX_NO_RUNTIMEENVIRONMENT</DefineConstants> |
| 200 | + <DefineConstants>$(DefineConstants);NO_LOGGING_GUI</DefineConstants> |
170 | 201 | <TargetFrameworkProfile>profile7</TargetFrameworkProfile> <!-- We are currently directly referencing corefx assemblies, so profile7 is not really true -->
|
171 | 202 | <ImplicitlyExpandTargetFramework>false</ImplicitlyExpandTargetFramework> <!-- To stop msbuild being helpfull and referencing the dlls for the profile -->
|
172 | 203 | </PropertyGroup>
|
|
232 | 263 | <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE</DefineConstants>
|
233 | 264 | <DefineConstants>$(DefineConstants);FSHARP_CORE_NETCORE_PORTABLE7</DefineConstants>
|
234 | 265 | <DefineConstants>$(DefineConstants);QUERIES_IN_FSLIB</DefineConstants>
|
| 266 | + <DefineConstants>$(DefineConstants);FX_ATLEAST_45</DefineConstants> |
235 | 267 | <DefineConstants>$(DefineConstants);FX_ATLEAST_35</DefineConstants>
|
236 | 268 | <DefineConstants>$(DefineConstants);FX_ATLEAST_PORTABLE</DefineConstants>
|
237 | 269 | <DefineConstants>$(DefineConstants);FX_NO_BEGINEND_READWRITE</DefineConstants>
|
|
720 | 752 | <NuGetPackagesPath Condition="'$(NuGetPackagesPath)' == ''">$(FSharpSourcesRoot)\..\packages</NuGetPackagesPath>
|
721 | 753 |
|
722 | 754 | <!-- fix this to be not so unfortunate looking -->
|
723 |
| - <BuildToolsDir>$(MSBuildThisFileDirectory)..\packages\Microsoft.DotNet.BuildTools.1.0.25-prerelease-00053\lib\</BuildToolsDir> |
| 755 | + <BuildToolsDir>$(MSBuildThisFileDirectory)..\packages\Microsoft.DotNet.BuildTools.1.0.25-prerelease-00085\lib\</BuildToolsDir> |
724 | 756 |
|
725 | 757 | <!-- Implicitly needed by packageresolve.targets. Should file a bug for a better error message here -->
|
726 | 758 | <PackagesDir>$(NuGetPackagesPath)\</PackagesDir>
|
|
790 | 822 | '$(TargetFramework)' == 'portable259')"/>
|
791 | 823 | <Error
|
792 | 824 | Text="TargetFramework '$(TargetFramework)' is only supported when building FSharp.Core.dll and FSharp.Core.Unittests.dll. All other components must be built with TargetFramework=net40"
|
793 |
| - Condition="'$(AssemblyName)' != 'FSharp.Core' and '$(AssemblyName)' != 'FSharp.Core.Unittests' and '$(TargetFramework)' != 'net40'"/> |
| 825 | + Condition="'$(AssemblyName)' != 'FSharp.Core' and '$(AssemblyName)' != 'FSharp.Core.Unittests' and '$(TargetFramework)' != 'net40' and '$(TargetFramework)' != 'coreclr'"/> |
794 | 826 |
|
795 | 827 | </Target>
|
796 | 828 |
|
|
0 commit comments