Skip to content

Troubleshoot msbuild update #18663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
be6ba47
Update System versions
T-Gro May 27, 2025
926a0da
update version.details.xml (system packages from 8 to 9)
T-Gro May 27, 2025
dd1b70f
Adding diagsource
T-Gro May 27, 2025
e2c374d
Update Versions.props
T-Gro May 27, 2025
1ecf828
Update Versions.props
T-Gro May 27, 2025
8ab767c
Update Versions.props
T-Gro May 27, 2025
5337b86
Update Versions.props
T-Gro May 27, 2025
c895ba8
Update Version.Details.xml
T-Gro May 27, 2025
eadcd71
Update Versions.props
T-Gro May 27, 2025
b9a2008
roslyn+vs versions
T-Gro May 27, 2025
5da0fa6
nerdbank warnings...
T-Gro May 27, 2025
788576b
4 warnings only?!
T-Gro May 28, 2025
158e0cf
0 nuget warnings, rock halelujah
T-Gro May 28, 2025
031be1c
adjusting to API changes
T-Gro May 28, 2025
2c385ca
one more time ♫ ♪ ♬
T-Gro May 28, 2025
1c4beed
Fantom(as) of the opera ♫ ♪ ♬
T-Gro May 28, 2025
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
8a6cc8b
Troubleshoot msbuild update
T-Gro Jun 5, 2025
acb4605
Merge branch 'main' into T-Gro-patch-2
T-Gro Jun 5, 2025
857a1dc
Update azure-pipelines-PR.yml
T-Gro Jun 5, 2025
231a911
Merge branch 'T-Gro-patch-2' of https://github.com/dotnet/fsharp into…
T-Gro Jun 5, 2025
5e17bca
capture msbuild logs
T-Gro Jun 5, 2025
3f1ab22
Update azure-pipelines-PR.yml
T-Gro Jun 5, 2025
c9f3587
xx
T-Gro Jun 5, 2025
7330211
Merge branch 'T-Gro-patch-2' of https://github.com/dotnet/fsharp into…
T-Gro Jun 5, 2025
8a3b26b
gimme gimme some binlogs at midnight
T-Gro Jun 5, 2025
fe6cb4c
one more time
T-Gro Jun 5, 2025
c857376
Update vsintegration/tests/UnitTests/AssemblyResolver.fs
T-Gro Jun 6, 2025
6a05667
Merge branch 'main' into T-Gro-patch-2
T-Gro Jun 6, 2025
547e73d
Merge branch 'main' into T-Gro-patch-2
T-Gro Jun 23, 2025
9b02f75
Merge branch 'main' into T-Gro-patch-2
T-Gro Jun 30, 2025
588bb9c
Merge branch 'main' into T-Gro-patch-2
T-Gro Jul 1, 2025
55e14b5
Update VsMocks.fs
T-Gro Jul 3, 2025
456d99d
Update TestLib.ProjectSystem.fs
T-Gro Jul 3, 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
6 changes: 6 additions & 0 deletions azure-pipelines-PR.yml
Original file line number Diff line number Diff line change
@@ -523,6 +523,12 @@ stages:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)'
ArtifactName: Windows $(_configuration) $(_testKind) $(transparentCompilerSuffix) test logs
publishLocation: Container
- task: PublishBuildArtifacts@1
displayName: Publish TestToRepro Logs
inputs:
PathtoPublish: '$(Build.SourcesDirectory)\artifacts\TestResults\$(_configuration)\ReproLogs'
ArtifactName: Windows $(_configuration) $(_testKind) $(transparentCompilerSuffix) repro logs
publishLocation: Container
continueOnError: true
condition: always()
- script: dotnet build $(Build.SourcesDirectory)/eng/DumpPackageRoot/DumpPackageRoot.csproj
16 changes: 8 additions & 8 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<Dependencies>
<ProductDependencies>
<Dependency Name="Microsoft.Build" Version="17.15.0-preview-25278-01">
<Dependency Name="Microsoft.Build" Version="17.15.0-preview-25304-02">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>6de64741f6440bb6730d9a342934ce49d600fcc9</Sha>
<Sha>c74300841d44ab7c3ae814c96a45ac83c5bd456d</Sha>
</Dependency>
<Dependency Name="Microsoft.Build.Framework" Version="17.15.0-preview-25278-01">
<Dependency Name="Microsoft.Build.Framework" Version="17.15.0-preview-25304-02">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>6de64741f6440bb6730d9a342934ce49d600fcc9</Sha>
<Sha>c74300841d44ab7c3ae814c96a45ac83c5bd456d</Sha>
</Dependency>
<Dependency Name="Microsoft.Build.Tasks.Core" Version="17.15.0-preview-25278-01">
<Dependency Name="Microsoft.Build.Tasks.Core" Version="17.15.0-preview-25304-02">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>6de64741f6440bb6730d9a342934ce49d600fcc9</Sha>
<Sha>c74300841d44ab7c3ae814c96a45ac83c5bd456d</Sha>
</Dependency>
<Dependency Name="Microsoft.Build.Utilities.Core" Version="17.15.0-preview-25278-01">
<Dependency Name="Microsoft.Build.Utilities.Core" Version="17.15.0-preview-25304-02">
<Uri>https://github.com/dotnet/msbuild</Uri>
<Sha>6de64741f6440bb6730d9a342934ce49d600fcc9</Sha>
<Sha>c74300841d44ab7c3ae814c96a45ac83c5bd456d</Sha>
</Dependency>
<Dependency Name="System.Reflection.Metadata" Version="9.0.0">
<Uri>https://github.com/dotnet/runtime</Uri>
8 changes: 4 additions & 4 deletions eng/Versions.props
Original file line number Diff line number Diff line change
@@ -103,7 +103,7 @@
<VisualStudioProjectSystemPackagesVersion>17.14.79</VisualStudioProjectSystemPackagesVersion>
<VisualStudioShellProjectsPackages>17.14.40254</VisualStudioShellProjectsPackages>
<MicrosoftVisualStudioThreadingPackagesVersion>17.14.15</MicrosoftVisualStudioThreadingPackagesVersion>
<MicrosoftBuildVersion>17.15.0-preview-25278-01</MicrosoftBuildVersion>
<MicrosoftBuildVersion>17.15.0-preview-25304-02</MicrosoftBuildVersion>
<!-- Roslyn packages -->
<MicrosoftCodeAnalysisFeaturesVersion>$(RoslynVersion)</MicrosoftCodeAnalysisFeaturesVersion>
<MicrosoftCodeAnalysisEditorFeaturesVersion>$(RoslynVersion)</MicrosoftCodeAnalysisEditorFeaturesVersion>
@@ -140,9 +140,9 @@
<MicrosoftVisualStudioShellImmutable150Version>15.0.25123-Dev15Preview</MicrosoftVisualStudioShellImmutable150Version>
<!-- -->
<!-- Microsoft Build packages -->
<MicrosoftBuildFrameworkVersion>17.15.0-preview-25278-01</MicrosoftBuildFrameworkVersion>
<MicrosoftBuildTasksCoreVersion>17.15.0-preview-25278-01</MicrosoftBuildTasksCoreVersion>
<MicrosoftBuildUtilitiesCoreVersion>17.15.0-preview-25278-01</MicrosoftBuildUtilitiesCoreVersion>
<MicrosoftBuildFrameworkVersion>17.15.0-preview-25304-02</MicrosoftBuildFrameworkVersion>
<MicrosoftBuildTasksCoreVersion>17.15.0-preview-25304-02</MicrosoftBuildTasksCoreVersion>
<MicrosoftBuildUtilitiesCoreVersion>17.15.0-preview-25304-02</MicrosoftBuildUtilitiesCoreVersion>
<!-- -->
<!-- Visual Studio Editor packages -->
<MicrosoftVisualStudioCoreUtilityVersion>$(VisualStudioEditorPackagesVersion)</MicrosoftVisualStudioCoreUtilityVersion>
12 changes: 12 additions & 0 deletions vsintegration/tests/Salsa/VsMocks.fs
Original file line number Diff line number Diff line change
@@ -1375,6 +1375,8 @@ module internal VsMocks =
let vsTargetFrameworkAssemblies40 = vsTargetFrameworkAssembliesN 0x40000u
let vsTargetFrameworkAssemblies45 = vsTargetFrameworkAssembliesN 0x40005u
let vsTargetFrameworkAssemblies46 = vsTargetFrameworkAssembliesN 0x40006u
let vsTargetFrameworkAssemblies47 = vsTargetFrameworkAssembliesN 0x40007u
let vsTargetFrameworkAssemblies48 = vsTargetFrameworkAssembliesN 0x40008u

let vsFrameworkMultiTargeting =
{ new IVsFrameworkMultiTargeting with
@@ -1601,6 +1603,16 @@ module internal VsMocks =
sp.AddService(typeof<SVsTargetFrameworkAssemblies>, box vsTargetFrameworkAssemblies46, false)
sp.AddService(typeof<SVsFrameworkMultiTargeting>, box vsFrameworkMultiTargeting, false)
sp, ccn
let MakeMockServiceProviderAndConfigChangeNotifier47() =
let sp, ccn = MakeMockServiceProviderAndConfigChangeNotifierNoTargetFrameworkAssembliesService()
sp.AddService(typeof<SVsTargetFrameworkAssemblies>, box vsTargetFrameworkAssemblies47, false)
sp.AddService(typeof<SVsFrameworkMultiTargeting>, box vsFrameworkMultiTargeting, false)
sp, ccn
let MakeMockServiceProviderAndConfigChangeNotifier48() =
let sp, ccn = MakeMockServiceProviderAndConfigChangeNotifierNoTargetFrameworkAssembliesService()
sp.AddService(typeof<SVsTargetFrameworkAssemblies>, box vsTargetFrameworkAssemblies48, 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.
Original file line number Diff line number Diff line change
@@ -18,10 +18,21 @@ type ProjectItems() =

[<Fact>]
member public this.``RemoveAssemblyReference.NoIVsTrackProjectDocuments2Events``() =
let testFilesPath = Environment.GetEnvironmentVariable("XUNIT_LOGS")
//let testFilesPath = @"D:\flushingpoint"
System.Environment.SetEnvironmentVariable("MSBUILDDEBUGENGINE","1")
System.Environment.SetEnvironmentVariable("MSBUILDDEBUGCOMM","1")
System.Environment.SetEnvironmentVariable("MSBUILDDEBUGPATH",IO.Path.Combine(testFilesPath,"ReproLogs"))

this.MakeProjectAndDo(["file.fs"], ["System.Numerics"],"", (fun project ->
let listener = project.Site.GetService(typeof<Salsa.VsMocks.IVsTrackProjectDocuments2Listener>) :?> Salsa.VsMocks.IVsTrackProjectDocuments2Listener

project.ComputeSourcesAndFlags()

System.Environment.SetEnvironmentVariable("MSBUILDDEBUGENGINE",null)
System.Environment.SetEnvironmentVariable("MSBUILDDEBUGCOMM",null)
System.Environment.SetEnvironmentVariable("MSBUILDDEBUGPATH",null)

let containsSystemNumerics () =
project.CompilationOptions
|> Array.exists (fun f -> f.IndexOf("System.Numerics") <> -1)
2 changes: 2 additions & 0 deletions vsintegration/tests/UnitTests/TestLib.ProjectSystem.fs
Original file line number Diff line number Diff line change
@@ -298,6 +298,8 @@ type TheTests() =
File.AppendAllText(file, TheTests.FsprojTextWithProjectReferencesAndOtherFlags(compileItems, references, [], null, other, targetFramework))
let sp, cnn =
match targetFramework with
| "v4.8" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier48()
| "v4.7" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier47()
| "v4.6" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier46()
| "v4.5" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier45()
| "v4.0" -> VsMocks.MakeMockServiceProviderAndConfigChangeNotifier40()