Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 16, 2025

  • Address feedback about .NET 12 file-based programs language being too definitive
  • Improve readability by breaking long sentences into shorter ones
  • Clarify that .NET 12 opt-in/opt-out behavior has not been settled
  • Apply suggestion to state opt-in first, with aspiration for eventual opt-out default

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

* In .NET 11, the feature will be off-by-default and in preview, and we will not be recommending broad adoption by arbitrary users until we have collected more
usability feedback and dialed in the enforcement. Users will be able to opt-in to the feature preview by putting `<MemorySafetyRules>preview</MemorySafetyRules>`
into their project files.
* In the .NET 12 or 13 timeframe, once we have the ecosystem experience that we are fully confident in, we will have an opt-in flag `<MemorySafetyRules>2</MemorySafetyRules>`. Users that take no action will see no changes.
Copy link
Member

Choose a reason for hiding this comment

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

Please also note that we have not settled on a .NET 12 behavior (opt in or opt-out)

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to explicitly note that we have not settled on whether .NET 12 will be opt-in or opt-out by default. (commit 4d943bf)

Copilot AI changed the title [WIP] Update documentation for memory safety based on feedback Soften .NET 12 file-based programs language to reflect uncertainty Dec 16, 2025
Copilot AI requested a review from agocke December 16, 2025 22:00
Copilot AI changed the title Soften .NET 12 file-based programs language to reflect uncertainty Soften .NET 12 language to reflect uncertainty in opt-in/opt-out behavior Dec 16, 2025
usability feedback and dialed in the enforcement. Users will be able to opt-in to the feature preview by putting `<MemorySafetyRules>preview</MemorySafetyRules>`
into their project files.
* In the .NET 12 or 13 timeframe, once we have the ecosystem experience that we are fully confident in, we will have an opt-in flag `<MemorySafetyRules>2</MemorySafetyRules>`. Users that take no action will see no changes.
* In the .NET 12 or 13 timeframe, once we have the ecosystem experience that we are fully confident in, we will make the feature available via `<MemorySafetyRules>2</MemorySafetyRules>`. We have not yet settled on whether this will be opt-in or opt-out by default.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* In the .NET 12 or 13 timeframe, once we have the ecosystem experience that we are fully confident in, we will make the feature available via `<MemorySafetyRules>2</MemorySafetyRules>`. We have not yet settled on whether this will be opt-in or opt-out by default.
* In the .NET 12 or 13 timeframe, once we have the ecosystem experience that we are fully confident in, we will make the feature available via `<MemorySafetyRules>2</MemorySafetyRules>`, first as an opt-in. Our aspiration is to enable the new memory safety rules by default with opt-out eventually. The approach will be informed by the ecosystem experience we gain with .NET 11.

I think we can say where we would like to be.

Copy link
Member

Choose a reason for hiding this comment

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

@copilot please apply suggest

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Applied the suggestion. (commit 5c0a06d)

@agocke agocke marked this pull request as ready for review December 16, 2025 23:24
@agocke agocke merged commit 765e147 into agocke-patch-1 Dec 16, 2025
1 check passed
@agocke agocke deleted the copilot/sub-pr-356 branch December 16, 2025 23:24
agocke added a commit that referenced this pull request Dec 16, 2025
* Update memory safety enforcement details in documentation

Clarified opt-in and opt-out mechanisms for memory safety rules in .NET 11 and 12.

* Soften .NET 12 language to reflect uncertainty in opt-in/opt-out behavior (#357)

* Initial plan

* Update .NET 12 file-based programs plan to reflect uncertainty

Co-authored-by: agocke <[email protected]>

* Improve readability by breaking long sentence into shorter ones

Co-authored-by: agocke <[email protected]>

* Further improve readability with shorter sentences

Co-authored-by: agocke <[email protected]>

* Clarify that .NET 12 opt-in/opt-out behavior is undecided

Co-authored-by: agocke <[email protected]>

* Apply suggestion to clarify opt-in first, then aspiration for opt-out

Co-authored-by: agocke <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: agocke <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
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