Skip to content
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

.NET Source-Build 9.0.100-preview.7.24407.1 August 2024 Updates #42699

Merged
merged 6 commits into from
Aug 27, 2024

Conversation

dotnet-sb-bot
Copy link
Contributor

Source-build updates for the .NET / 9.0.100-preview.7.24407.1 August 2024 release.

@dotnet-sb-bot dotnet-sb-bot requested review from a team as code owners August 13, 2024 17:57
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Infrastructure untriaged Request triage from a team member labels Aug 13, 2024
@mthalman mthalman enabled auto-merge (squash) August 13, 2024 18:00
@ellahathaway
Copy link
Member

No arcade version update? Is that expected?

@mthalman
Copy link
Member

No arcade version update? Is that expected?

Oh, good catch. I'll investigate.

@mthalman mthalman disabled auto-merge August 13, 2024 18:01
@mthalman
Copy link
Member

Yep, Arcade is all current.

Here's what it should be:
https://github.com/dotnet/dotnet/blob/v9.0.0-preview.7.24405.7/src/source-manifest.json#L3-L8

Here's what it is:

<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="9.0.0-beta.24368.9">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>b4e499d1f6e6b3a981feabfed290d99261762382</Sha>

They match.

@mthalman mthalman enabled auto-merge (squash) August 13, 2024 18:08
@mthalman
Copy link
Member

/azp run sdk-source-build

@mthalman mthalman closed this Aug 13, 2024
auto-merge was automatically disabled August 13, 2024 18:11

Pull request was closed

@mthalman mthalman reopened this Aug 13, 2024
@mthalman mthalman enabled auto-merge (squash) August 13, 2024 18:11
@mthalman
Copy link
Member

mthalman commented Aug 13, 2024

This is failing in the VMR build of winforms with the following error:

D:\a\_work\1\vmr\.dotnet\sdk\9.0.100-preview.7.24407.12\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(258,5): error NETSDK1216: Package Microsoft.Net.Sdk.Compilers.Toolset is not downloaded but it is needed because your MSBuild and SDK versions are mismatched. Ensure version 9.0.100-preview.7.24407.12 of the package is available in your NuGet source feeds and then run NuGet package restore from Visual Studio or MSBuild. [D:\a\_work\1\vmr\src\winforms\src\System.Windows.Forms\tests\AxHosts\AxHosts.csproj] [D:\a\_work\1\vmr\src\winforms\src\BuildAssist\BuildAssist.msbuildproj]

binlog: winforms.zip

This is related to the changes in #42216.

Ping @sharwell and @jjonescz

For context, this PR is updating the SDK version used by the VMR to the official Preview 7 build. It's failing when building the winforms repo. It seems that the winforms repo is using the MSBuild version from VS to build rather than the SDK. See:
image

I would expect the winforms repo to run into this same issue if its global.json was updated to use Preview 7 SDK.

@jjonescz
Copy link
Member

jjonescz commented Aug 14, 2024

This means msbuild is some old version (e.g., 17.11 with roslyn 4.11) and SDK is a newer version (here preview 7, having analyzers referencing roslyn 4.12). In that "torn" state we automatically download a package with the corresponding compiler (4.12) that can be used during the build - otherwise analyzers could fail since they reference newer roslyn version (4.12) than the host msbuild has (4.11). The NETSDK1216 error means the package wasn't restored properly.

msbuild.exe D:\a_work\1\vmr\src\winforms\src\System.Windows.Forms\tests\AxHosts\AxHosts.csproj /p:Configuration=Release /p:Platform=AnyCPU /v:m

My guess is that this isn't running restore so specifying something like /t:Restore;Build would fix the error.
Alternatively, you could somehow ensure the msbuild.exe version matches the SDK.
Or specifying /p:BuildWithNetFrameworkHostedCompiler=false will disable this automatic "torn SDK" detection.

cc @jaredpar

@mthalman
Copy link
Member

@JeremyKuhne - Looking for someone working in the winforms repo to help implement the recommendation from above: #42699 (comment). Can you help with that?

@JeremyKuhne
Copy link
Member

@JeremyKuhne - Looking for someone working in the winforms repo to help implement the recommendation from above: #42699 (comment). Can you help with that?

I'm wrapping up for vacation. @lonitra can you assist @mthalman?

@lonitra
Copy link
Member

lonitra commented Aug 14, 2024

@lonitra can you assist @mthalman?

sure thing. @mthalman what would be the best way to test whether the recommendation resolves this issue? Right now without the recommendation, building the repo does not give me this error.

@jjonescz
Copy link
Member

what would be the best way to test whether the recommendation resolves this issue? Right now without the recommendation, building the repo does not give me this error.

Try updating global.json to point to SDK 9 preview 7, it should then fail to build with the same error.

@mthalman
Copy link
Member

/backport to release/9.0.1xx

Copy link
Contributor

Started backporting to release/9.0.1xx: https://github.com/dotnet/sdk/actions/runs/10421079358

@mthalman
Copy link
Member

The latest failure from UB pipeline on the Windows leg:

repo-projects\Directory.Build.targets(562,5): error MSB3231: Unable to remove directory "D:\a\_work\1\vmr\src\wpf\artifacts\sb\". Access to the path 'Microsoft.CodeAnalysis.CSharp.dll' is denied.

This is consistently failing. It occurs in the CleanupRepo target.

@ViktorHofer
Copy link
Member

<Exec Command="$(DotnetTool) build-server shutdown --vbcscompiler"
IgnoreStandardErrorWarningFormat="true"
IgnoreExitCode="true" />
should take care of shutting down the build server. The caveat with that is that it doesn't work if an OOB compiler package is used. But I don't see a reference to Microsoft.Net.Compilers.Toolset.

I wonder if this coming from the new desktop OOB compiler package as wpf builds with desktop msbuild afaik.

dotnet/source-build#4175 has more details on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Infrastructure untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants