| 
5 | 5 |     <ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>  | 
6 | 6 |     <!-- Used to determine if we should build some packages only once across multiple official build legs.  | 
7 | 7 |          For offline builds we still set OfficialBuildId but we need to build all the packages for a single  | 
8 |  | -         leg only, so we also take DotNetBuildFromSource  into account. -->  | 
9 |  | -    <BuildingAnOfficialBuildLeg Condition="'$(BuildingAnOfficialBuildLeg)' == '' and '$(OfficialBuildId)' != '' and '$(DotNetBuildFromSource)' != 'true'">true</BuildingAnOfficialBuildLeg>  | 
 | 8 | +         leg only, so we also take DotNetBuildSourceOnly into account. -->  | 
 | 9 | +    <BuildingAnOfficialBuildLeg Condition="'$(BuildingAnOfficialBuildLeg)' == '' and '$(OfficialBuildId)' != '' and '$(DotNetBuildSourceOnly)' != 'true'">true</BuildingAnOfficialBuildLeg>  | 
10 | 10 |     <!-- When doing a source build, we want to build the various text-only manifests in  | 
11 | 11 |          all cases, rather than ordinarily where we build them during mobile or wasm  | 
12 | 12 |          build legs. This makes the manifests available on source-only builds. -->  | 
13 |  | -    <ForceBuildMobileManifests Condition="'$(DotNetBuildFromSource)' == 'true'">true</ForceBuildMobileManifests>  | 
 | 13 | +    <ForceBuildMobileManifests Condition="'$(DotNetBuildSourceOnly)' == 'true'">true</ForceBuildMobileManifests>  | 
14 | 14 |   </PropertyGroup>  | 
15 | 15 | 
 
  | 
16 | 16 |   <PropertyGroup Label="CalculateTargetOS">  | 
 | 
94 | 94 | 
 
  | 
95 | 95 |     <!-- The minimum supported .NET version. -->  | 
96 | 96 |     <NetCoreAppMinimum>net8.0</NetCoreAppMinimum>  | 
97 |  | -    <NetCoreAppMinimum Condition="'$(DotNetBuildFromSource)' == 'true'">$(NetCoreAppCurrent)</NetCoreAppMinimum>  | 
 | 97 | +    <NetCoreAppMinimum Condition="'$(DotNetBuildSourceOnly)' == 'true'">$(NetCoreAppCurrent)</NetCoreAppMinimum>  | 
98 | 98 | 
 
  | 
99 | 99 |     <!-- when this is updated, make sure to keep $(_NetCoreAppToolCurrent)  | 
100 | 100 |          in src/mono/wasm/build/WasmApp.LocalBuild.props  | 
 | 
110 | 110 |     <NetFrameworkCurrent>net48</NetFrameworkCurrent>  | 
111 | 111 |     <NetFrameworkToolCurrent>net472</NetFrameworkToolCurrent>  | 
112 | 112 |     <!-- Don't build for NETFramework during source-build. -->  | 
113 |  | -    <NetFrameworkMinimum Condition="'$(DotNetBuildFromSource)' == 'true'" />  | 
114 |  | -    <NetFrameworkToolCurrent Condition="'$(DotNetBuildFromSource)' == 'true'" />  | 
115 |  | -    <NetFrameworkCurrent Condition="'$(DotNetBuildFromSource)' == 'true'" />  | 
 | 113 | +    <NetFrameworkMinimum Condition="'$(DotNetBuildSourceOnly)' == 'true'" />  | 
 | 114 | +    <NetFrameworkToolCurrent Condition="'$(DotNetBuildSourceOnly)' == 'true'" />  | 
 | 115 | +    <NetFrameworkCurrent Condition="'$(DotNetBuildSourceOnly)' == 'true'" />  | 
116 | 116 | 
 
  | 
117 | 117 |     <!-- Important: Set this to the GA version (or a close approximation) during servicing and adjust the TFM property below. -->  | 
118 | 118 |     <ApiCompatNetCoreAppBaselineVersion>8.0.0</ApiCompatNetCoreAppBaselineVersion>  | 
 | 
176 | 176 |     <MonoTargetsTasksAssemblyPath>$([MSBuild]::NormalizePath('$(MonoTargetsTasksDir)', 'MonoTargetsTasks.dll'))</MonoTargetsTasksAssemblyPath>  | 
177 | 177 |     <TestExclusionListTasksAssemblyPath>$([MSBuild]::NormalizePath('$(TestExclusionListTasksDir)', 'TestExclusionListTasks.dll'))</TestExclusionListTasksAssemblyPath>  | 
178 | 178 |     <CoreCLRToolPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'coreclr', '$(TargetOS).$(TargetArchitecture).$(RuntimeConfiguration)'))</CoreCLRToolPath>  | 
179 |  | -    <ILAsmToolPath Condition="'$(DotNetBuildFromSource)' == 'true' or '$(BuildArchitecture)' == 's390x' or '$(BuildArchitecture)' == 'ppc64le'">$(CoreCLRToolPath)</ILAsmToolPath>  | 
 | 179 | +    <ILAsmToolPath Condition="'$(DotNetBuildSourceOnly)' == 'true' or '$(BuildArchitecture)' == 's390x' or '$(BuildArchitecture)' == 'ppc64le'">$(CoreCLRToolPath)</ILAsmToolPath>  | 
180 | 180 |     <WasmtimeDir Condition="'$(WasmtimeDir)' == '' and '$(WASMTIME_PATH)' != '' and Exists($(WASMTIME_PATH))">$(WASMTIME_PATH)</WasmtimeDir>  | 
181 | 181 |     <WasmtimeDir Condition="'$(WasmtimeDir)' == ''">$([MSBuild]::NormalizeDirectory($(ArtifactsObjDir), 'wasmtime'))</WasmtimeDir>  | 
182 | 182 |     <InstallWasmtimeForTests Condition="'$(InstallWasmtimeForTests)' == '' and !Exists($(WasmtimeDir))">true</InstallWasmtimeForTests>  | 
183 | 183 |     <WasmCommonTargetsPath>$([MSBuild]::NormalizeDirectory($(WasmProjectRoot), 'build'))</WasmCommonTargetsPath>  | 
184 | 184 |   </PropertyGroup>  | 
185 | 185 | 
 
  | 
186 | 186 |   <PropertyGroup Label="CalculatePortableBuild">  | 
187 |  | -    <PortableBuild Condition="'$(PortableBuild)' == '' and '$(DotNetBuildFromSource)' == 'true'">false</PortableBuild>  | 
 | 187 | +    <PortableBuild Condition="'$(PortableBuild)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">false</PortableBuild>  | 
188 | 188 |     <PortableBuild Condition="'$(PortableBuild)' == ''">true</PortableBuild>  | 
189 | 189 |   </PropertyGroup>  | 
190 | 190 | 
 
  | 
 | 
298 | 298 | 
 
  | 
299 | 299 |   <!--Feature switches -->  | 
300 | 300 |   <PropertyGroup>  | 
301 |  | -    <NoPgoOptimize Condition="'$(NoPgoOptimize)' == '' and '$(DotNetBuildFromSource)' == 'true'">true</NoPgoOptimize>  | 
302 |  | -    <EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and '$(DotNetBuildFromSource)' == 'true'">false</EnableNgenOptimization>  | 
 | 301 | +    <NoPgoOptimize Condition="'$(NoPgoOptimize)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">true</NoPgoOptimize>  | 
 | 302 | +    <EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">false</EnableNgenOptimization>  | 
303 | 303 |     <EnableNgenOptimization Condition="'$(EnableNgenOptimization)' == '' and ('$(Configuration)' == 'Release' or '$(Configuration)' == 'Checked')">true</EnableNgenOptimization>  | 
304 | 304 |     <!-- Enable NuGet static graph evaluation to optimize incremental restore -->  | 
305 | 305 |     <RestoreUseStaticGraphEvaluation>true</RestoreUseStaticGraphEvaluation>  | 
 | 
380 | 380 |     <!-- Always pass portable to override arcade sdk which uses embedded for local builds -->  | 
381 | 381 |     <DebugType>portable</DebugType>  | 
382 | 382 |     <DebugSymbols>true</DebugSymbols>  | 
383 |  | -    <KeepNativeSymbols Condition="'$(KeepNativeSymbols)' == '' and '$(DotNetBuildFromSource)' == 'true'">true</KeepNativeSymbols>  | 
 | 383 | +    <KeepNativeSymbols Condition="'$(KeepNativeSymbols)' == '' and '$(DotNetBuildSourceOnly)' == 'true'">true</KeepNativeSymbols>  | 
384 | 384 |     <KeepNativeSymbols Condition="'$(KeepNativeSymbols)' == ''">false</KeepNativeSymbols>  | 
385 | 385 |     <!-- Used for launchSettings.json and runtime config files. -->  | 
386 | 386 |     <AppDesignerFolder>Properties</AppDesignerFolder>  | 
 | 
0 commit comments