Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[main] Source code updates from dotnet/sdk - #4471

#4471
Closed
dotnet-maestro[bot] wants to merge 11 commits into
maindotnet/dotnet:mainfrom
darc-main-86863c85-13bf-4ebb-8d41-d7b756416c96dotnet/dotnet:darc-main-86863c85-13bf-4ebb-8d41-d7b756416c96Copy head branch name to clipboard
Closed

[main] Source code updates from dotnet/sdk#4471
dotnet-maestro[bot] wants to merge 11 commits into
maindotnet/dotnet:mainfrom
darc-main-86863c85-13bf-4ebb-8d41-d7b756416c96dotnet/dotnet:darc-main-86863c85-13bf-4ebb-8d41-d7b756416c96Copy head branch name to clipboard

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Jan 28, 2026

Copy link
Copy Markdown
Contributor

Note

This is a codeflow update. It may contain both source code changes from
the source repo
as well as dependency updates. Learn more here.

This pull request brings the following source code changes

From https://github.com/dotnet/sdk

Diff the source with this PR branch
darc vmr diff --name-only https://github.com/dotnet/sdk:e11e478f952ab13db71debfa35f8bfcc763c31b1..https://github.com/dotnet/dotnet:darc-main-86863c85-13bf-4ebb-8d41-d7b756416c96

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team January 28, 2026 02:12
@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

@ViktorHofer

ViktorHofer commented Feb 2, 2026

Copy link
Copy Markdown
Member

@JeremyKuhne looks like your change dotnet/sdk#52650 breaks source-build. You probably want to exclude the new files in dotnet.csproj when building source-only.

@JeremyKuhne

Copy link
Copy Markdown
Member

@JeremyKuhne looks like your change dotnet/sdk#52650 breaks source-build. You probably want to exclude the new files in dotnet.csproj when building source-only.

I'm not completely surprised. I'll try and get this fixed asap. If there are any guidelines on how to vet that you won't break source build, I'd appreciate any links. :)

@JeremyKuhne

JeremyKuhne commented Feb 2, 2026

Copy link
Copy Markdown
Member

@dotnet/product-construction Can we just use the CsWin32 source generator in the mono repo? WinForms and WPF depend on it, but I'm unclear on if those builds are fully enabled here.

(I can easily make things build if I exclude the Windows code paths when building here in places we do runtime checks, but I'm not sure that is the right answer.)

@ViktorHofer

ViktorHofer commented Feb 2, 2026

Copy link
Copy Markdown
Member

No, cswin32 isn't part of the VMR and therefore not source-buildable. Why would you want to use cswin32 (which is Windows specific) when building the product from source for Unix platforms?

@JeremyKuhne

Copy link
Copy Markdown
Member

No, cswin32 isn't part of the VMR and therefore not source-buildable. Why would you want to use cswin32 (which is Windows specific) when building the product from source for Unix platforms?

I don't have to if we're not expecting binaries to come out of here that will run (correctly) on Windows. I see that we have Windows legs, but we can't be getting fully working binaries as some of the Windows specific runtime IsWindows content is excluded (but not all of it). If I condition all of this code to compile by excluding files with $(DotNetBuildSourceOnly) and parts of files with #if DOT_NET_BUILD_FROM_SOURCE then the build won't fail, but it won't work.

I want to make sure I do the right thing both for the current state and be thinking about / prepared for future state of this repo.

@ViktorHofer

ViktorHofer commented Feb 2, 2026

Copy link
Copy Markdown
Member

The source-build job produces artifacts that only run on Unix platforms, never on Windows. Source-build has more restrictions: no prebuilts, no internet connection for a stage2 build, etc.

The Windows jobs use whatever set-up you have enabled in the original repository -> dotnet/sdk. If you use cswin32 as a packagerefernce, it will just use that. The VMR doesn't do anything differently here than the individual repository build. That's why the Windows jobs here are passing.

The crux here is that the sdk repository currently doesn't have a VMR source-only job enabled in their CI. We should add one, cc @MichaelSimons @marcpopMSFT to detect such issues at PR time.

@JeremyKuhne

Copy link
Copy Markdown
Member

@ViktorHofer so Windows builds here do not set DotNetBuildSourceOnly then? I'll conditionalize out all of this stuff As mentioned above. #4471 (comment)

@dotnet-maestro

dotnet-maestro Bot commented Feb 3, 2026

Copy link
Copy Markdown
Contributor Author

Note

PRs from original repository included in this codeflow update:

💡 You may consult the FAQ for more information or tag @dotnet/prodconsvcs for assistance.

JeremyKuhne added a commit to JeremyKuhne/sdk that referenced this pull request Feb 3, 2026
JeremyKuhne added a commit to JeremyKuhne/sdk that referenced this pull request Feb 3, 2026
JeremyKuhne added a commit to JeremyKuhne/sdk that referenced this pull request Feb 3, 2026
JeremyKuhne added a commit to JeremyKuhne/sdk that referenced this pull request Feb 3, 2026
@dotnet-maestro
dotnet-maestro Bot deleted the darc-main-86863c85-13bf-4ebb-8d41-d7b756416c96 branch February 4, 2026 00:22
JeremyKuhne added a commit to JeremyKuhne/sdk that referenced this pull request Feb 4, 2026
@marcpopMSFT

Copy link
Copy Markdown
Member

The crux here is that the sdk repository currently doesn't have a VMR source-only job enabled in their CI. We should add one, cc @MichaelSimons @marcpopMSFT to detect such issues at PR time.

Per offline conversation, we believe the right compromise is to enable on-demand VMR builds from SDK PRs. I'm told that's possible and Nikola has done it before so filed the issue and assigned to him: dotnet/sdk#52838

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.