Skip to content

Commit 3f48cd6

Browse files
T-Grommitche
andauthored
Merge from dev18 to main (#18625)
* Include FSharp pre-release packages in the SDK transport package - Enable the SDK to publish the stable-preview packages - Add a pre-release iteration so that previews can be differentiated. - Remove the version substitution in the shims project. There was no replacement happening. Co-authored-by: Matt Mitchell <mmitche@microsoft.com>
1 parent 0b26986 commit 3f48cd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+12966
-12946
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: 4 additions & 1 deletion
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)"
@@ -302,7 +304,8 @@ function BuildSolution([string] $solutionName, $packSolution) {
302304
/p:RepoRoot=$RepoRoot `
303305
/p:Restore=$restore `
304306
/p:Build=$build `
305-
/p:DotNetBuildRepo=$productBuild `
307+
/p:DotNetBuild=$productBuild `
308+
/p:DotNetBuildFromVMR=$fromVMR `
306309
/p:Rebuild=$rebuild `
307310
/p:Pack=$pack `
308311
/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: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
</PropertyGroup>
1010
<!-- Version number computation -->
1111
<PropertyGroup>
12-
<PreReleaseVersionLabel>beta</PreReleaseVersionLabel>
12+
<!-- Don't use the built in support for pre-release iteration. The nuget repack task doesn't support
13+
the iteration format at the moment. https://github.com/dotnet/arcade/issues/15919 -->
14+
<FSharpPreReleaseIteration>6</FSharpPreReleaseIteration>
15+
<PreReleaseVersionLabel>preview$(FSharpPreReleaseIteration)</PreReleaseVersionLabel>
1316
<!-- These have to be in sync with latest release branch -->
1417
<!-- F# Version components -->
1518
<FSMajorVersion>10</FSMajorVersion>
@@ -25,7 +28,7 @@
2528
<FSCorePackageVersionValue>$(FSMajorVersion).$(FSMinorVersion).$(FSBuildVersion)</FSCorePackageVersionValue>
2629
<FSCoreVersionPrefix>$(FSMajorVersion).$(FSMinorVersion).$(FSBuildVersion)</FSCoreVersionPrefix>
2730
<FSCoreVersion>$(FSMajorVersion).$(FSMinorVersion).0.0</FSCoreVersion>
28-
<FSCoreShippedVersion>9.0.0.0</FSCoreShippedVersion>
31+
<FSCoreShippedVersion>10.0.0.0</FSCoreShippedVersion>
2932
<!-- -->
3033
<!-- FSharp.Compiler.Service version -->
3134
<FCSMajorVersion>43</FCSMajorVersion>
@@ -43,8 +46,8 @@
4346
<FSharpCorePreviewPackageVersionValue>$(FSCorePackageVersionValue)-$(PreReleaseVersionLabel).*</FSharpCorePreviewPackageVersionValue>
4447
<!-- -->
4548
<!-- FSharp tools for Visual Studio version number -->
46-
<FSToolsMajorVersion>13</FSToolsMajorVersion>
47-
<FSToolsMinorVersion>9</FSToolsMinorVersion>
49+
<FSToolsMajorVersion>14</FSToolsMajorVersion>
50+
<FSToolsMinorVersion>0</FSToolsMinorVersion>
4851
<FSToolsBuildVersion>$(FSBuildVersion)</FSToolsBuildVersion>
4952
<FSToolsRevisionVersion>$(FSRevisionVersion)</FSToolsRevisionVersion>
5053
<FSProductVersionPrefix>$(FSToolsMajorVersion).$(FSToolsMinorVersion).$(FSToolsBuildVersion)</FSProductVersionPrefix>

eng/build.sh

Lines changed: 12 additions & 6 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,15 @@ 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+
local args=("publish" "$repo_root/proto.proj" "$blrestore" "$bltools" "/p:Configuration=Proto" "/p:DotNetBuild=$product_build" "/p:DotNetBuildSourceOnly=$source_build" "/p:DotNetBuildFromVMR=$from_vmr" ${properties[@]+"${properties[@]}"})
307311
echo $args
308-
"$DOTNET_INSTALL_DIR/dotnet" $args #$args || exit $?
312+
"$DOTNET_INSTALL_DIR/dotnet" "${args[@]}" #$args || exit $?
309313
fi
310314

311315
if [[ "$skip_build" != true ]]; then
312316
# do real build
313317
BuildMessage="Error building solution"
318+
314319
MSBuild $toolset_build_proj \
315320
$bl \
316321
/p:Configuration=$configuration \
@@ -327,9 +332,10 @@ function BuildSolution {
327332
/p:QuietRestore=$quiet_restore \
328333
/p:QuietRestoreBinaryLog="$binary_log" \
329334
/p:BuildNoRealsig=$buildnorealsig \
330-
/p:DotNetBuildRepo=$product_build \
335+
/p:DotNetBuild=$product_build \
331336
/p:DotNetBuildSourceOnly=$source_build \
332-
$properties
337+
/p:DotNetBuildFromVMR=$from_vmr \
338+
${properties[@]+"${properties[@]}"}
333339
fi
334340
}
335341

0 commit comments

Comments
 (0)