Skip to content

Commit 8575a89

Browse files
authored
Merge branch 'release/dev18.0' into merge/main-to-release/dev18.0
2 parents 4790b9e + df24b56 commit 8575a89

20 files changed

+12879
-12862
lines changed

Directory.Build.props

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
99
<FSharpNetCoreProductDefaultTargetFramework>net9.0</FSharpNetCoreProductDefaultTargetFramework>
1010
<IgnoreMibc Condition="'$(IgnoreMibc)' == ''">$(DotNetBuildSourceOnly)</IgnoreMibc>
11+
<!-- When building the .NET product, there's no need to publish Windows PDBs. Any conversion to Windows PDBs will be done during staging, if necessary. -->
12+
<PublishWindowsPdb Condition="'$(DotNetBuild)' == 'true'">false</PublishWindowsPdb>
1113
</PropertyGroup>
1214

1315
<!--
@@ -72,7 +74,7 @@
7274
we should also support $(NetPrevious) for all releases.
7375
This will likely include FCS and FSharp.Core as well as shipped products.
7476
Right now, it only covers products we ship (FSC and FSI), not NuGet packages. -->
75-
<When Condition="'$(DotNetBuildSourceOnly)' == 'true' AND '$(DotNetBuildOrchestrator)' == 'true'">
77+
<When Condition="'$(DotNetBuildSourceOnly)' == 'true' AND '$(DotNetBuildFromVMR)' == 'true'">
7678
<PropertyGroup>
7779
<FSharpNetCoreProductTargetFramework>$(NetCurrent)</FSharpNetCoreProductTargetFramework>
7880
</PropertyGroup>

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ while [[ -h $source ]]; do
1313
done
1414

1515
scriptroot="$( cd -P "$( dirname "$source" )" && pwd )"
16-
time "$scriptroot/eng/build.sh" --build --restore $@
16+
time "$scriptroot/eng/build.sh" --build --restore "$@"

eng/Build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ param (
6969
[string]$officialSkipTests = "false",
7070
[switch]$noVisualStudio,
7171
[switch][Alias('pb')]$productBuild,
72+
[switch]$fromVMR,
7273
[switch]$skipBuild,
7374
[switch]$compressAllMetadata,
7475
[switch]$buildnorealsig = $true,
@@ -135,6 +136,7 @@ function Print-Usage() {
135136
Write-Host " -dontUseGlobalNuGetCache Do not use the global NuGet cache"
136137
Write-Host " -noVisualStudio Only build fsc and fsi as .NET Core applications. No Visual Studio required. '-configuration', '-verbosity', '-norestore', '-rebuild' are supported."
137138
Write-Host " -productBuild Build the repository in product-build mode."
139+
Write-Host " -fromVMR Set when building from within the VMR."
138140
Write-Host " -skipbuild Skip building product"
139141
Write-Host " -compressAllMetadata Build product with compressed metadata"
140142
Write-Host " -buildnorealsig Build product with realsig- (default use realsig+, where necessary)"
@@ -295,6 +297,7 @@ function BuildSolution([string] $solutionName, $packSolution) {
295297

296298
$pack = if ($packSolution -eq $False) {""} else {$pack}
297299

300+
# TODO: Remove DotNetBuildRepo property when fsharp is on Arcade 10
298301
MSBuild $toolsetBuildProj `
299302
$bl `
300303
/p:Configuration=$configuration `
@@ -303,6 +306,8 @@ function BuildSolution([string] $solutionName, $packSolution) {
303306
/p:Restore=$restore `
304307
/p:Build=$build `
305308
/p:DotNetBuildRepo=$productBuild `
309+
/p:DotNetBuild=$productBuild `
310+
/p:DotNetBuildFromVMR=$fromVMR `
306311
/p:Rebuild=$rebuild `
307312
/p:Pack=$pack `
308313
/p:Sign=$sign `

eng/Version.Details.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Dependencies>
3+
<Source Uri="https://github.com/dotnet/dotnet" Mapping="fsharp" Sha="57b0396ae0d21b9f0dfe0d208c57822fb88f9a8d" BarId="269724" />
34
<ProductDependencies>
45
<Dependency Name="Microsoft.Build" Version="17.15.0-preview-25278-01">
56
<Uri>https://github.com/dotnet/msbuild</Uri>

eng/Versions.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<FSCorePackageVersionValue>$(FSMajorVersion).$(FSMinorVersion).$(FSBuildVersion)</FSCorePackageVersionValue>
2626
<FSCoreVersionPrefix>$(FSMajorVersion).$(FSMinorVersion).$(FSBuildVersion)</FSCoreVersionPrefix>
2727
<FSCoreVersion>$(FSMajorVersion).$(FSMinorVersion).0.0</FSCoreVersion>
28-
<FSCoreShippedVersion>9.0.0.0</FSCoreShippedVersion>
28+
<FSCoreShippedVersion>10.0.0.0</FSCoreShippedVersion>
2929
<!-- -->
3030
<!-- FSharp.Compiler.Service version -->
3131
<FCSMajorVersion>43</FCSMajorVersion>
@@ -43,8 +43,8 @@
4343
<FSharpCorePreviewPackageVersionValue>$(FSCorePackageVersionValue)-$(PreReleaseVersionLabel).*</FSharpCorePreviewPackageVersionValue>
4444
<!-- -->
4545
<!-- FSharp tools for Visual Studio version number -->
46-
<FSToolsMajorVersion>13</FSToolsMajorVersion>
47-
<FSToolsMinorVersion>9</FSToolsMinorVersion>
46+
<FSToolsMajorVersion>14</FSToolsMajorVersion>
47+
<FSToolsMinorVersion>0</FSToolsMinorVersion>
4848
<FSToolsBuildVersion>$(FSBuildVersion)</FSToolsBuildVersion>
4949
<FSToolsRevisionVersion>$(FSRevisionVersion)</FSToolsRevisionVersion>
5050
<FSProductVersionPrefix>$(FSToolsMajorVersion).$(FSToolsMinorVersion).$(FSToolsBuildVersion)</FSProductVersionPrefix>

eng/build.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ usage()
3737
echo " --prepareMachine Prepare machine for CI run, clean up processes after build"
3838
echo " --sourceBuild Build the repository in source-only mode."
3939
echo " --productBuild Build the repository in product-build mode."
40+
echo " --fromVMR Set when building from within the VMR"
4041
echo " --buildnorealsig Build product with realsig- (default use realsig+ where necessary)"
4142
echo " --tfm Override the default target framework"
4243
echo ""
@@ -75,10 +76,10 @@ skip_build=false
7576
prepare_machine=false
7677
source_build=false
7778
product_build=false
79+
from_vmr=false
7880
buildnorealsig=true
7981
testbatch=""
8082
properties=""
81-
8283
docker=false
8384
args=""
8485

@@ -176,6 +177,9 @@ while [[ $# > 0 ]]; do
176177
--productbuild|--product-build|-pb)
177178
product_build=true
178179
;;
180+
--fromvmr|--from-vmr)
181+
from_vmr=true
182+
;;
179183
--buildnorealsig)
180184
buildnorealsig=true
181185
;;
@@ -184,7 +188,7 @@ while [[ $# > 0 ]]; do
184188
shift
185189
;;
186190
/p:*)
187-
properties="$properties $1"
191+
properties+=("$1")
188192
;;
189193
*)
190194
echo "Invalid argument: $1"
@@ -303,14 +307,17 @@ function BuildSolution {
303307
fi
304308

305309
BuildMessage="Error building tools"
306-
local args=" publish $repo_root/proto.proj $blrestore $bltools /p:Configuration=Proto /p:DotNetBuildRepo=$product_build /p:DotNetBuildSourceOnly=$source_build $properties"
310+
# TODO: Remove DotNetBuildRepo property when fsharp is on Arcade 10
311+
local args=("publish" "$repo_root/proto.proj" "$blrestore" "$bltools" "/p:Configuration=Proto" "/p:DotNetBuildRepo=$product_build" "/p:DotNetBuild=$product_build" "/p:DotNetBuildSourceOnly=$source_build" "/p:DotNetBuildFromVMR=$from_vmr" ${properties[@]+"${properties[@]}"})
307312
echo $args
308-
"$DOTNET_INSTALL_DIR/dotnet" $args #$args || exit $?
313+
"$DOTNET_INSTALL_DIR/dotnet" "${args[@]}" #$args || exit $?
309314
fi
310315

311316
if [[ "$skip_build" != true ]]; then
312317
# do real build
313318
BuildMessage="Error building solution"
319+
320+
# TODO: Remove DotNetBuildRepo property when fsharp is on Arcade 10
314321
MSBuild $toolset_build_proj \
315322
$bl \
316323
/p:Configuration=$configuration \
@@ -328,8 +335,10 @@ function BuildSolution {
328335
/p:QuietRestoreBinaryLog="$binary_log" \
329336
/p:BuildNoRealsig=$buildnorealsig \
330337
/p:DotNetBuildRepo=$product_build \
338+
/p:DotNetBuild=$product_build \
331339
/p:DotNetBuildSourceOnly=$source_build \
332-
$properties
340+
/p:DotNetBuildFromVMR=$from_vmr \
341+
${properties[@]+"${properties[@]}"}
333342
fi
334343
}
335344

0 commit comments

Comments
 (0)