Skip to content

docs: ViewState Phase 5 analyzer docs, AutoPostBack guide, sample updates#522

Merged
csharpfritz merged 4 commits intoFritzAndFriends:devfrom
csharpfritz:squad/viewstate-phase5-docs
Mar 25, 2026
Merged

docs: ViewState Phase 5 analyzer docs, AutoPostBack guide, sample updates#522
csharpfritz merged 4 commits intoFritzAndFriends:devfrom
csharpfritz:squad/viewstate-phase5-docs

Conversation

@csharpfritz
Copy link
Copy Markdown
Collaborator

ViewState Phase 5 Documentation & Samples

Changes

Analyzers.md (docs/Migration/Analyzers.md)

  • BWFC002 (ViewState): severity updated to Info with Phase 4 admonition
  • BWFC003 (IsPostBack): severity updated to Info with Phase 4 admonition
  • NEW: BWFC025 (Non-Serializable ViewState Type) section with examples
  • Updated summary table, prioritization guide, and .editorconfig examples
  • Added Visual Studio screenshot placeholders with capture instructions

ViewStateAndPostBack.md (docs/UtilityFeatures/ViewStateAndPostBack.md)

  • Added AutoPostBack (SSR) section covering mode-adaptive behavior, supported controls, usage examples, and ViewState integration

ViewState Sample Page (samples/AfterBlazorServerSide)

  • Modernized from old [Obsolete] dictionary API to ViewStateDictionary with Set/GetValueOrDefault
  • Added IsPostBack detection demo
  • Added Graduating Off ViewState side-by-side comparison

Screenshot Placeholders (docs/images/analyzers/)

  • README with required screenshots list and capture instructions for VS 2022

Verification

  • Sample app builds (0 errors)
  • All 2,595 tests pass

Part of ViewState/PostBack architecture Phase 5 of 5

csharpfritz and others added 4 commits March 25, 2026 16:00
…ates

- Analyzers.md: BWFC002/003 severity updated to Info, added BWFC025 section,
  updated prioritization guide and .editorconfig examples
- ViewStateAndPostBack.md: Added AutoPostBack (SSR) section with usage guide
- ViewState sample page: Modernized to showcase ViewStateDictionary type-safe
  API, IsPostBack detection, and graduating-off-ViewState patterns
- Added analyzer screenshot placeholders with capture instructions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Adds AnalyzerDemo.razor.cs in AfterDepartmentPortal with patterns that
trigger BWFC002, BWFC003, and BWFC025 analyzers. Also adds direct
analyzer ProjectReference so diagnostics appear in VS.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The ViewState sample page was modernized  button changed from
'Click Me (ViewState)' to 'Increment'. Update test selector to match.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@csharpfritz csharpfritz force-pushed the squad/viewstate-phase5-docs branch from bf5dd96 to 1157238 Compare March 25, 2026 20:02
@csharpfritz csharpfritz merged commit cb535bb into FritzAndFriends:dev Mar 25, 2026
4 checks passed
@csharpfritz csharpfritz deleted the squad/viewstate-phase5-docs branch March 28, 2026 20:48
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.

1 participant