Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
991eef8
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] May 30, 2025
58d1449
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 3, 2025
4193c78
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 4, 2025
f9405c3
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Jun 4, 2025
64f4da0
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 5, 2025
ec5701f
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 6, 2025
455f15f
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 7, 2025
aae41d9
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Jun 10, 2025
a6eb5c5
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 13, 2025
5279374
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 14, 2025
0773258
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 17, 2025
1df4739
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 18, 2025
f3b7644
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 19, 2025
0dda475
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 20, 2025
f13bde7
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 21, 2025
43ad96f
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Jun 23, 2025
d5cdef1
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 24, 2025
63aa02d
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 25, 2025
d4d84fe
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 26, 2025
b99cd8e
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 27, 2025
339f646
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 28, 2025
2c04f07
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jun 30, 2025
02c005f
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Jun 30, 2025
e236753
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 1, 2025
b68d2b4
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Jul 1, 2025
9ed463d
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 2, 2025
523cce8
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 3, 2025
42d0e33
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 4, 2025
5a30771
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 5, 2025
de615cd
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 8, 2025
8dc7325
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 9, 2025
d8a5424
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 10, 2025
027f3ef
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 11, 2025
eb5fe1c
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 15, 2025
a09866a
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 16, 2025
35419e1
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 17, 2025
04a65fe
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 18, 2025
64b5add
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 19, 2025
2eb933c
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 22, 2025
a7e6682
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 23, 2025
b408f39
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 24, 2025
3f1b4c5
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 25, 2025
284eb13
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 26, 2025
24ecf58
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 29, 2025
72ce34e
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Jul 31, 2025
17c2458
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 1, 2025
bf9590d
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 2, 2025
355f86d
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 5, 2025
486ed43
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
akoeplinger Aug 5, 2025
f11172b
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 5, 2025
a9d6e1c
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 6, 2025
c114a1d
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 7, 2025
32f4fdb
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 8, 2025
d6ee71b
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 13, 2025
11cff8b
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 14, 2025
04aeedc
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Aug 14, 2025
229921a
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 15, 2025
0108172
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 16, 2025
69bc09e
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 19, 2025
46d9a9f
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 20, 2025
72535ed
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 21, 2025
2b10d1f
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 22, 2025
f4414b7
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 23, 2025
e4a07f7
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Aug 26, 2025
612ee26
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Aug 26, 2025
8301538
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 27, 2025
2c9fc2a
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 28, 2025
081c787
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 29, 2025
2c57827
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Aug 30, 2025
51a2832
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 2, 2025
46a7a08
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 3, 2025
6c80141
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 5, 2025
8d6f8aa
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 6, 2025
71b256f
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Sep 8, 2025
e266892
add net481
T-Gro Sep 8, 2025
94cf7eb
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 9, 2025
468fa18
hit it
T-Gro Sep 9, 2025
e57b8c5
moaarr
T-Gro Sep 9, 2025
507cbdd
try yml based solution
T-Gro Sep 9, 2025
c69fcfa
imba powerful instrumentation now
T-Gro Sep 9, 2025
9fcbd66
fantomas
T-Gro Sep 9, 2025
f6d8c58
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 10, 2025
a98494e
one more time
T-Gro Sep 10, 2025
46a70bb
Merge branch 'darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2' of http…
T-Gro Sep 10, 2025
3a0b717
gogogo
T-Gro Sep 10, 2025
53eadc6
one more time...
T-Gro Sep 10, 2025
ecb6b15
ok try now
T-Gro Sep 10, 2025
96ee26a
try with another ass
T-Gro Sep 10, 2025
864ee65
more instrumentation added
T-Gro Sep 10, 2025
fa1ac81
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 11, 2025
6b22a41
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Sep 11, 2025
e597765
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Sep 11, 2025
22dbe74
Update Microsoft.FSharp.Targets
T-Gro Sep 11, 2025
35fbd6e
Update Microsoft.FSharp.Targets
T-Gro Sep 11, 2025
420dc00
one more time
T-Gro Sep 11, 2025
74789ee
Update Microsoft.FSharp.Targets
T-Gro Sep 11, 2025
20ae1c4
Restore Microsoft.FSharp.Targets from main
T-Gro Sep 11, 2025
549653d
moaarr instrumentation
T-Gro Sep 11, 2025
e28ca63
Do it. Do it NOW!
T-Gro Sep 11, 2025
209011b
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 12, 2025
f166d14
mooooarrr instrumentation
T-Gro Sep 12, 2025
95514e5
Merge branch 'darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2' of http…
T-Gro Sep 12, 2025
aaaabd4
one more time
T-Gro Sep 12, 2025
6817b00
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 13, 2025
8a27dbb
try it now
T-Gro Sep 15, 2025
27db21f
Merge branch 'darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2' of http…
T-Gro Sep 15, 2025
d3ead23
toolsversion=current
T-Gro Sep 15, 2025
86f0793
Update dependencies from https://github.com/dotnet/msbuild build 2025…
dotnet-maestro[bot] Sep 16, 2025
cdcad65
Introduce Vs18OrNewerFactAttribute
T-Gro Sep 16, 2025
315794f
Merge branch 'main' into darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2
T-Gro Sep 16, 2025
8df9f3a
ilverify
T-Gro Sep 16, 2025
72ab115
Merge branch 'darc-main-243912c4-b7a9-4680-874c-2532b3aaecf2' of http…
T-Gro Sep 16, 2025
3ce3b35
Delete fuckingtest.ps1
T-Gro Sep 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions eng/Version.Details.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ This file should be imported by eng/Versions.props
<Project>
<PropertyGroup>
<!-- dotnet/msbuild dependencies -->
<MicrosoftBuildPackageVersion>17.15.0-preview-25278-01</MicrosoftBuildPackageVersion>
<MicrosoftBuildFrameworkPackageVersion>17.15.0-preview-25278-01</MicrosoftBuildFrameworkPackageVersion>
<MicrosoftBuildTasksCorePackageVersion>17.15.0-preview-25278-01</MicrosoftBuildTasksCorePackageVersion>
<MicrosoftBuildUtilitiesCorePackageVersion>17.15.0-preview-25278-01</MicrosoftBuildUtilitiesCorePackageVersion>
<MicrosoftBuildPackageVersion>18.0.0-preview-25465-08</MicrosoftBuildPackageVersion>
<MicrosoftBuildFrameworkPackageVersion>18.0.0-preview-25465-08</MicrosoftBuildFrameworkPackageVersion>
<MicrosoftBuildTasksCorePackageVersion>18.0.0-preview-25465-08</MicrosoftBuildTasksCorePackageVersion>
<MicrosoftBuildUtilitiesCorePackageVersion>18.0.0-preview-25465-08</MicrosoftBuildUtilitiesCorePackageVersion>
<!-- dotnet/runtime dependencies -->
<SystemCollectionsImmutablePackageVersion>9.0.0</SystemCollectionsImmutablePackageVersion>
<SystemComponentModelCompositionPackageVersion>9.0.0</SystemComponentModelCompositionPackageVersion>
Expand Down
16 changes: 8 additions & 8 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
<Dependencies>
<Source Uri="https://github.com/dotnet/dotnet" Mapping="fsharp" Sha="8ea69c337be69385ff7eb44b2a54db78010110d8" BarId="282240" />
<ProductDependencies>
<Dependency Name="Microsoft.Build" Version="17.15.0-preview-25278-01">
<Dependency Name="Microsoft.Build" Version="18.0.0-preview-25465-08">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>6de64741f6440bb6730d9a342934ce49d600fcc9</Sha>
<Sha>36b870ef0e3bc607c96e23f1f2d20125947be598</Sha>
</Dependency>
<Dependency Name="Microsoft.Build.Framework" Version="17.15.0-preview-25278-01">
<Dependency Name="Microsoft.Build.Framework" Version="18.0.0-preview-25465-08">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>6de64741f6440bb6730d9a342934ce49d600fcc9</Sha>
<Sha>36b870ef0e3bc607c96e23f1f2d20125947be598</Sha>
</Dependency>
<Dependency Name="Microsoft.Build.Tasks.Core" Version="17.15.0-preview-25278-01">
<Dependency Name="Microsoft.Build.Tasks.Core" Version="18.0.0-preview-25465-08">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>6de64741f6440bb6730d9a342934ce49d600fcc9</Sha>
<Sha>36b870ef0e3bc607c96e23f1f2d20125947be598</Sha>
</Dependency>
<Dependency Name="Microsoft.Build.Utilities.Core" Version="17.15.0-preview-25278-01">
<Dependency Name="Microsoft.Build.Utilities.Core" Version="18.0.0-preview-25465-08">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>6de64741f6440bb6730d9a342934ce49d600fcc9</Sha>
<Sha>36b870ef0e3bc607c96e23f1f2d20125947be598</Sha>
</Dependency>
<Dependency Name="System.Reflection.Metadata" Version="9.0.0">
<Uri>https://github.com/dotnet/runtime</Uri>
Expand Down
17 changes: 16 additions & 1 deletion src/Compiler/Facilities/SimulatedMSBuildReferenceResolver.fs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,23 @@ let private Net472 = "v4.7.2"
[<Literal>]
let private Net48 = "v4.8"

[<Literal>]
let private Net481 = "v4.8.1"

let SupportedDesktopFrameworkVersions =
[ Net48; Net472; Net471; Net47; Net462; Net461; Net46; Net452; Net451; Net45 ]
[
Net481
Net48
Net472
Net471
Net47
Net462
Net461
Net46
Net452
Net451
Net45
]

let private SimulatedMSBuildResolver =

Expand Down
22 changes: 20 additions & 2 deletions src/LegacyMSBuildResolver/LegacyMSBuildReferenceResolver.fs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,23 @@ let private Net472 = "v4.7.2"
[<Literal>]
let private Net48 = "v4.8"

[<Literal>]
let private Net481 = "v4.8.1"

let SupportedDesktopFrameworkVersions =
[ Net48; Net472; Net471; Net47; Net462; Net461; Net46; Net452; Net451; Net45 ]
[
Net481
Net48
Net472
Net471
Net47
Net462
Net461
Net46
Net452
Net451
Net45
]

/// Get the path to the .NET Framework implementation assemblies by using ToolLocationHelper.GetPathToDotNetFramework
/// This is only used to specify the "last resort" path for assembly resolution.
Expand All @@ -87,6 +102,7 @@ let GetPathToDotNetFrameworkImplementationAssemblies v : string list =
| Net471 -> Some TargetDotNetFrameworkVersion.Version471
| Net472 -> Some TargetDotNetFrameworkVersion.Version472
| Net48 -> Some TargetDotNetFrameworkVersion.Version48
| Net481 -> Some TargetDotNetFrameworkVersion.Version481
| _ ->
assert false
None
Expand Down Expand Up @@ -114,7 +130,9 @@ let GetPathToDotNetFrameworkReferenceAssemblies version =
let HighestInstalledRefAssembliesOrDotNETFramework () =
let getHighestInstalledDotNETFramework () =
try
if not (isNull (box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version48)))) then
if not (isNull (box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version481)))) then
Net481
elif not (isNull (box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version48)))) then
Net48
elif not (isNull (box (ToolLocationHelper.GetPathToDotNetFramework(TargetDotNetFrameworkVersion.Version472)))) then
Net472
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
[IL]: Error [StackUnexpected]: : FSharp.Compiler.AbstractIL.IL+parseNamed@5311::Invoke([FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<System.Tuple`4<string,FSharp.Compiler.AbstractIL.IL+ILType,bool,FSharp.Compiler.AbstractIL.IL+ILAttribElem>>, int32, int32)][offset 0x00000087][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : Internal.Utilities.Collections.Utils::shortPath(string)][offset 0x00000048][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : Internal.Utilities.FSharpEnvironment+probePathForDotnetHost@317::Invoke([FSharp.Core]Microsoft.FSharp.Core.Unit)][offset 0x00000028][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : FSharp.Compiler.CodeAnalysis.SimulatedMSBuildReferenceResolver+Pipe #6 input at line 68@68::FSharp.Compiler.CodeAnalysis.ILegacyReferenceResolver.Resolve([FSharp.Compiler.Service]FSharp.Compiler.CodeAnalysis.LegacyResolutionEnvironment, [S.P.CoreLib]System.Tuple`2<string,string>[], string, [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<string>, string, string, [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<string>, string, [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.Unit>, [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<bool,Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.Unit>>>)][offset 0x0000034D][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : FSharp.Compiler.CodeAnalysis.SimulatedMSBuildReferenceResolver+Pipe #6 input at line 83@83::FSharp.Compiler.CodeAnalysis.ILegacyReferenceResolver.Resolve([FSharp.Compiler.Service]FSharp.Compiler.CodeAnalysis.LegacyResolutionEnvironment, [S.P.CoreLib]System.Tuple`2<string,string>[], string, [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<string>, string, string, [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<string>, string, [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.Unit>, [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<bool,Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.Unit>>>)][offset 0x0000034D][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : <StartupCode$FSharp-Compiler-Service>.$FSharp.Compiler.DiagnosticsLogger::.cctor()][offset 0x000000CD][found Char] Unexpected type on the stack.
[IL]: Error [CallVirtOnValueType]: : FSharp.Compiler.Text.RangeModule+comparer@590::System.Collections.Generic.IEqualityComparer<FSharp.Compiler.Text.Range>.GetHashCode([FSharp.Compiler.Service]FSharp.Compiler.Text.Range)][offset 0x00000002] Callvirt on a value type method.
[IL]: Error [StackUnexpected]: : Internal.Utilities.PathMapModule::applyDir([FSharp.Compiler.Service]Internal.Utilities.PathMap, string)][offset 0x00000037][found Char] Unexpected type on the stack.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
[IL]: Error [StackUnexpected]: : FSharp.Compiler.AbstractIL.IL::parseNamed@5310(uint8[], [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<System.Tuple`4<string,FSharp.Compiler.AbstractIL.IL+ILType,bool,FSharp.Compiler.AbstractIL.IL+ILAttribElem>>, int32, int32)][offset 0x0000007E][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : Internal.Utilities.Collections.Utils::shortPath(string)][offset 0x0000003A][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : Internal.Utilities.FSharpEnvironment::probePathForDotnetHost@316([FSharp.Core]Microsoft.FSharp.Core.Unit)][offset 0x0000002A][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : FSharp.Compiler.CodeAnalysis.SimulatedMSBuildReferenceResolver+SimulatedMSBuildResolver@68::FSharp.Compiler.CodeAnalysis.ILegacyReferenceResolver.Resolve([FSharp.Compiler.Service]FSharp.Compiler.CodeAnalysis.LegacyResolutionEnvironment, [S.P.CoreLib]System.Tuple`2<string,string>[], string, [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<string>, string, string, [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<string>, string, [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.Unit>, [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<bool,Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.Unit>>>)][offset 0x000002F5][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : FSharp.Compiler.CodeAnalysis.SimulatedMSBuildReferenceResolver+SimulatedMSBuildResolver@83::FSharp.Compiler.CodeAnalysis.ILegacyReferenceResolver.Resolve([FSharp.Compiler.Service]FSharp.Compiler.CodeAnalysis.LegacyResolutionEnvironment, [S.P.CoreLib]System.Tuple`2<string,string>[], string, [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<string>, string, string, [FSharp.Core]Microsoft.FSharp.Collections.FSharpList`1<string>, string, [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.Unit>, [FSharp.Core]Microsoft.FSharp.Core.FSharpFunc`2<bool,Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.FSharpFunc`2<string,Microsoft.FSharp.Core.Unit>>>)][offset 0x000002F5][found Char] Unexpected type on the stack.
[IL]: Error [StackUnexpected]: : <StartupCode$FSharp-Compiler-Service>.$FSharp.Compiler.DiagnosticsLogger::.cctor()][offset 0x000000B6][found Char] Unexpected type on the stack.
[IL]: Error [CallVirtOnValueType]: : FSharp.Compiler.Text.RangeModule+comparer@590::System.Collections.Generic.IEqualityComparer<FSharp.Compiler.Text.Range>.GetHashCode([FSharp.Compiler.Service]FSharp.Compiler.Text.Range)][offset 0x00000002] Callvirt on a value type method.
[IL]: Error [StackUnexpected]: : Internal.Utilities.PathMapModule::applyDir([FSharp.Compiler.Service]Internal.Utilities.PathMap, string)][offset 0x00000035][found Char] Unexpected type on the stack.
Expand Down
6 changes: 6 additions & 0 deletions vsintegration/tests/Salsa/VsMocks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,7 @@ module internal VsMocks =
let vsTargetFrameworkAssemblies40 = vsTargetFrameworkAssembliesN 0x40000u
let vsTargetFrameworkAssemblies45 = vsTargetFrameworkAssembliesN 0x40005u
let vsTargetFrameworkAssemblies46 = vsTargetFrameworkAssembliesN 0x40006u
let vsTargetFrameworkAssemblies472 = vsTargetFrameworkAssembliesN 0x40007u

let vsFrameworkMultiTargeting =
{ new IVsFrameworkMultiTargeting with
Expand Down Expand Up @@ -1601,6 +1602,11 @@ module internal VsMocks =
sp.AddService(typeof<SVsTargetFrameworkAssemblies>, box vsTargetFrameworkAssemblies46, false)
sp.AddService(typeof<SVsFrameworkMultiTargeting>, box vsFrameworkMultiTargeting, false)
sp, ccn
let MakeMockServiceProviderAndConfigChangeNotifier472() =
let sp, ccn = MakeMockServiceProviderAndConfigChangeNotifierNoTargetFrameworkAssembliesService()
sp.AddService(typeof<SVsTargetFrameworkAssemblies>, box vsTargetFrameworkAssemblies472, false)
sp.AddService(typeof<SVsFrameworkMultiTargeting>, box vsFrameworkMultiTargeting, false)
sp, ccn

// This is the mock thing that all tests, except the multitargeting tests call.
// By default, let it use the 4.0 assembly version.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,35 @@ open UnitTests.TestLib.Utils.Asserts
open UnitTests.TestLib.ProjectSystem
open Microsoft.VisualStudio.FSharp.ProjectSystem

[<AutoOpen>]
module Helpers =
/// Active pattern to parse a float from an env var
let (|EnvFloat|_|) (envVar: string) =
match Environment.GetEnvironmentVariable(envVar) with
| null | "" -> None
| str ->
match System.Double.TryParse(str, System.Globalization.NumberStyles.Float, System.Globalization.CultureInfo.InvariantCulture) with
| true, v -> Some v
| _ -> None


/// xUnit Fact attribute that skips the test unless VISUALSTUDIOVERSION >= 18.0
type Vs18OrNewerFactAttribute() =
inherit FactAttribute()
do
match "VISUALSTUDIOVERSION" with
| EnvFloat v when v >= 18.0 -> ()
| EnvFloat v -> base.Skip <- $"Test requires Visual Studio 18.0 or newer (VISUALSTUDIOVERSION >= 18.0), found: {v}"
| _ -> base.Skip <- "Test requires Visual Studio 18.0 or newer (VISUALSTUDIOVERSION not set)"


type ProjectItems() =
inherit TheTests()

//TODO: look for a way to remove the helper functions
static let ANYTREE = Tree("",Nil,Nil)

[<Fact>]
[<Vs18OrNewerFact>]
member public this.``RemoveAssemblyReference.NoIVsTrackProjectDocuments2Events``() =
this.MakeProjectAndDo(["file.fs"], ["System.Numerics"],"", (fun project ->
let listener = project.Site.GetService(typeof<Salsa.VsMocks.IVsTrackProjectDocuments2Listener>) :?> Salsa.VsMocks.IVsTrackProjectDocuments2Listener
Expand Down
18 changes: 10 additions & 8 deletions vsintegration/tests/UnitTests/TestLib.ProjectSystem.fs
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,13 @@ type TheTests() =
printfn "about to load .fsproj"
project.Load(filename, null, null, 2u, &guid, &cancelled)
printfn "loaded"

let slfpe = new SolutionListenerForProjectEvents(project.Site)
project.ProjectEventsProvider <- (slfpe :> IProjectEvents)
slfpe.OnAfterOpenProject((project :> IVsHierarchy), 0) |> ignore
MSBuildProject.SetGlobalProperty(project.BuildProject, "UTF8Output", forceUTF8)
project
with
with
| e ->
try
project.Close() |> ignore
Expand Down Expand Up @@ -298,13 +299,14 @@ type TheTests() =
File.AppendAllText(file, TheTests.FsprojTextWithProjectReferencesAndOtherFlags(compileItems, references, [], null, other, targetFramework))
let sp, cnn =
match targetFramework with
| "v4.6" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier46()
| "v4.5" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier45()
| "v4.0" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier40()
| "v3.5" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier35()
| "v3.0" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier30()
| "v2.0" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier20()
| null -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier40()
| "v4.7.2" | "4.7.2" | "4.7" | "v4.7" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier472()
| "v4.6" | "4.6" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier46()
| "v4.5" | "4.5" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier45()
| "v4.0" | "4.0" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier40()
| "v3.5" | "3.5" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier35()
| "v3.0" | "3.0" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier30()
| "v2.0" | "2.0"-> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier20()
| null -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier472()
| _ -> failwithf "unexpected targetFramework %s" targetFramework
let project = TheTests.CreateProject(file, "false", cnn, sp)
try
Expand Down
Loading