Skip to content

.NET 11.0.100-preview.7.26381.103 August 2026 Updates - #8230

Merged
ViktorHofer merged 7 commits into
mainfrom
release-pr-11.0.100-preview.7.26381.103-main
Aug 12, 2026
Merged

ViktorHofer merged 7 commits into
mainfrom
release-pr-11.0.100-preview.7.26381.103-main

Conversation

@dotnet-bot

Copy link
Copy Markdown
Collaborator

Updates for the .NET 11.0.0-preview.7.26381.103 / 11.0.100-preview.7.26381.103 August 2026 release.

@dotnet-bot
dotnet-bot requested review from a team as code owners August 11, 2026 17:12
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Comment thread global.json Resolved

@ViktorHofer ViktorHofer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the eng/common script updates are wrong as we intentionally updated them outside of this bootstrap.

@ViktorHofer

Copy link
Copy Markdown
Member

Two issues:

D:\a\_work\1\s\repo-projects\Directory.Build.targets(666,5): error CS9363: 'PInvoke.RedrawWindow<Form>(Form, RECT*, HRGN, REDRAW_WINDOW_FLAGS)' must be used in an unsafe context because it has pointers in its signature [D:\a\_work\1\s\src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj] [D:\a\_work\1\s\repo-projects\winforms.proj]
D:\a\_work\1\s\repo-projects\Directory.Build.targets(666,5): error CS9363: 'PCWSTR.implicit operator PCWSTR(char*)' must be used in an unsafe context because it has pointers in its signature [D:\a\_work\1\s\src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj] [D:\a\_work\1\s\repo-projects\winforms.proj]
D:\a\_work\1\s\repo-projects\Directory.Build.targets(666,5): error CS9363: 'PCWSTR.implicit operator PCWSTR(char*)' must be used in an unsafe context because it has pointers in its signature [D:\a\_work\1\s\src\winforms\src\System.Windows.Forms\System.Windows.Forms.csproj] [D:\a\_work\1\s\repo-projects\winforms.proj]

and source-build offline job trying to fetch the network.

@ViktorHofer

Copy link
Copy Markdown
Member

cc @dotnet/dotnet-winforms

ViktorHofer and others added 2 commits August 12, 2026 08:47
The C# 15 compiler relaxes pointer features in safe code, so calling a
member that has pointers in its signature now requires the caller to be
in an unsafe context (CS9363). Mark the three affected members unsafe,
matching how the rest of the repo already handles these PInvoke calls.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 4b2c3cff-9d81-426c-a2bf-79ee8057d934
@dotnet-policy-service
dotnet-policy-service Bot requested a review from a team August 12, 2026 08:29
…ce properties

(PCWSTR)null goes through `implicit operator PCWSTR(char*)`, which is the
member CS9363 flags because it has a pointer in its signature. PCWSTR has a
single `char* Value` field, so default(PCWSTR) produces an identical value
without invoking any member, avoiding the need to mark these protected
virtual properties unsafe.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 4b2c3cff-9d81-426c-a2bf-79ee8057d934
@ViktorHofer
ViktorHofer enabled auto-merge (squash) August 12, 2026 09:10
@ViktorHofer
ViktorHofer merged commit ad791f3 into main Aug 12, 2026
10 checks passed
@ViktorHofer
ViktorHofer deleted the release-pr-11.0.100-preview.7.26381.103-main branch August 12, 2026 10:52
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.

4 participants