|
98 | 98 | <NUnitLibDir>$(FSharpSourcesRoot)\..\packages\NUnit.$(NUnitVersion)\lib\net45</NUnitLibDir> |
99 | 99 | <NUnitToolsLibDir>$(FSharpSourcesRoot)\..\packages\NUnit.ConsoleRunner\$(NUnitVersion)\tools\</NUnitToolsLibDir> |
100 | 100 |
|
| 101 | + <MonoPackaging Condition="'$(TargetDotnetProfile)' != 'coreclr' AND '$(OS)' == 'Unix'">true</MonoPackaging> |
| 102 | + |
101 | 103 | <!-- Localization --> |
| 104 | + <DisableLocalization Condition="'$(MonoPackaging)' == 'true'">true</DisableLocalization> |
102 | 105 | <UpdateXlfOnBuild Condition="'$(CI)' != '1'">true</UpdateXlfOnBuild> |
103 | 106 | <XliffTasksVersion>0.2.0-beta-000076</XliffTasksVersion> |
| 107 | + |
104 | 108 | </PropertyGroup> |
105 | 109 |
|
| 110 | + <!-- Default setting. Some get modified later in FSharpSource.targets --> |
106 | 111 | <PropertyGroup> |
| 112 | + <SkipSigning>false</SkipSigning> |
| 113 | + <UseOpenSourceSign>true</UseOpenSourceSign> |
107 | 114 | <SignAssembly>true</SignAssembly> |
108 | 115 | <AssemblyOriginatorKeyFile>$(FSharpSourcesRoot)\fsharp\msft.pubkey</AssemblyOriginatorKeyFile> |
109 | 116 | <StrongNames>true</StrongNames> |
110 | 117 | <DelaySign>true</DelaySign> |
111 | 118 | </PropertyGroup> |
112 | 119 |
|
113 | | - <PropertyGroup Condition="'$(OS)' != 'Unix'"> |
| 120 | + <!-- On windows, VS packaging --> |
| 121 | + <PropertyGroup Condition="'$(MonoPackaging)' != 'true' AND '$(OS)' != 'Unix'"> |
114 | 122 | <UseMicroBuild>true</UseMicroBuild> |
115 | 123 | <UseSourceLink Condition = " '$(UseSourceLink)' == '' AND '$(Configuration)'=='Release' ">false</UseSourceLink> |
116 | 124 | <UseGatherBinaries>true</UseGatherBinaries> |
|
130 | 138 | <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> |
131 | 139 | <!-- Settings for Debug mode --> |
132 | 140 | <DebugType>full</DebugType> |
| 141 | + <DebugType Condition="'$(OS)' == 'Unix'">portable</DebugType> <!-- no longer use MDB on Mono --> |
133 | 142 |
|
134 | 143 | <Optimize Condition=" '$(Optimize)' == '' ">false</Optimize> |
135 | 144 | <ErrorReport Condition=" '$(ErrorReport)' == '' ">prompt</ErrorReport> |
|
142 | 151 | <PropertyGroup Condition=" '$(Configuration)' == 'Release' "> |
143 | 152 | <!-- Flags used for Release mode. --> |
144 | 153 | <DebugType>pdbonly</DebugType> |
| 154 | + <DebugType Condition="'$(OS)' == 'Unix'">portable</DebugType> <!-- no longer use MDB on Mono --> |
145 | 155 |
|
146 | 156 | <Optimize Condition=" '$(Optimize)' == '' ">true</Optimize> |
147 | 157 | <EmbedAllSource>false</EmbedAllSource> |
|
153 | 163 | <PropertyGroup Condition="'$(Configuration)'=='Proto'"> |
154 | 164 | <!-- Flags used when running the Proto compiler. --> |
155 | 165 | <DebugType Condition=" '$(DebugType)' == '' ">full</DebugType> |
| 166 | + <DebugType Condition="'$(OS)' == 'Unix'">portable</DebugType> <!-- no longer use MDB on Mono --> |
156 | 167 | <Optimize>true</Optimize> |
157 | 168 | <DefineConstants>DEBUG;NO_STRONG_NAMES;$(DefineConstants)</DefineConstants> |
158 | 169 | </PropertyGroup> |
|
196 | 207 | <!-- FSharp.Compiler.Tools is currently only used to get a working FSI.EXE to execute some scripts during the build --> |
197 | 208 | <!-- The LKG FSI.EXE requires MSBuild 15 to be installed, which is painful --> |
198 | 209 | <FsiToolPath>$(FSharpSourcesRoot)\..\packages\FSharp.Compiler.Tools.4.1.27\tools</FsiToolPath> |
| 210 | + |
| 211 | + |
| 212 | + <!-- The version of MSBuild assumed byt the F# compiler in the Mono packaging of F# --> |
| 213 | + <MonoPackagingMSBuildVersionFull>14.0.0.0</MonoPackagingMSBuildVersionFull> |
| 214 | + |
199 | 215 | </PropertyGroup> |
200 | 216 |
|
201 | 217 | <Import Project="$(MSBuildThisFileDirectory)..\packages\XliffTasks.$(XliffTasksVersion)\build\XliffTasks.props" Condition="'$(DisableLocalization)' != 'true'" /> |
|
0 commit comments