Skip to content

Commit 4065cc5

Browse files
csharpfritzCopilot
andcommitted
Update Colossus history and add setup decision
Append ContosoUniversity setup learnings to history.md and create decisions inbox entry documenting the three source-level fixes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent ce2e90f commit 4065cc5

2 files changed

Lines changed: 50 additions & 1 deletion

File tree

.ai-team/agents/colossus/history.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,32 @@ Added 5 smoke tests (Timer, UpdatePanel, UpdateProgress, ScriptManager, Substitu
104104

105105

106106
Team update (2026-03-08): P0 HTML fidelity fixes complete CheckBox span wrapper, BaseValidator id/class, FormView CssClass. 1488 tests pass. decided by Cyclops, Forge
107-
Team update (2026-03-08): Second sample project will be purpose-built 'EventManager' Control Gallery targeting ~12-15 pages with controls WingtipToys doesn't cover decided by Forge
107+
Team update (2026-03-08): Second sample project will be purpose-built 'EventManager' Control Gallery targeting ~12-15 pages with controls WingtipToys doesn't cover decided by Forge
108+
109+
## ContosoUniversity Web Forms Setup (2026-03-08)
110+
111+
Set up the ContosoUniversity ASP.NET Web Forms sample project for local development and captured baseline screenshots of all 5 pages.
112+
113+
### Setup Learnings
114+
115+
- **MSBuild selection**: VS 2017 BuildTools (MSBuild 15.0) lacks `Microsoft.WebApplication.targets`. Must use VS 18 Insiders MSBuild (or any VS with web workloads) for Web Forms `.csproj` builds.
116+
- **NBGV vs legacy .NET Framework**: Repo-root `Directory.Build.props` injects Nerdbank.GitVersioning into all projects. Legacy projects with manual `AssemblyInfo.cs` get duplicate `AssemblyVersion` attributes. Fix: place empty `Directory.Build.props` at sample root to block inheritance.
117+
- **AjaxControlToolkit NuGet**: Package version `16.1.1` creates folder `AjaxControlToolkit.16.1.1.0`. DLL is under `lib\net40\`, not `lib\net45\`.
118+
- **LocalDB database attach**: The shipped `.mdf` (internal version 782) auto-upgrades to version 998 on LocalDB v17.0. Use `FOR ATTACH_REBUILD_LOG` when the `.ldf` is missing.
119+
- **IIS Express**: Launch with `/path:` and `/port:` flags. Press `Q` to gracefully stop.
120+
121+
### Pages & Controls Observed
122+
123+
| Page | Key Web Forms Controls |
124+
|------|----------------------|
125+
| Home.aspx | Master Page nav menu, static content |
126+
| About.aspx | GridView (enrollment statistics, 11 rows) |
127+
| Students.aspx | GridView (11 students), DetailsView (Add Student form), AutoCompleteExtender |
128+
| Courses.aspx | DropDownList (department filter), AutoCompleteExtender, GridView (empty-state) |
129+
| Instructors.aspx | GridView (7 instructors, sortable columns) |
130+
131+
### Artifacts
132+
133+
- Screenshots: `dev-docs/contoso-screenshots/` (5 PNG files)
134+
- Setup guide: `dev-docs/contoso-university-setup.md`
135+
- Commit: `ce2e90fc` on `squad/audit-docs-perf`
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Decision: ContosoUniversity Local Setup Configuration
2+
3+
**By:** Colossus
4+
**Date:** 2026-03-08
5+
**Status:** Implemented
6+
7+
## What
8+
9+
Configured the ContosoUniversity Web Forms sample project for local development using IIS Express + LocalDB. Three source-level fixes were required:
10+
11+
1. **Connection strings** → changed from `.\SQLEXPRESS` to `(localdb)\MSSQLLocalDB` in `Web.config`
12+
2. **AjaxControlToolkit HintPath** → updated from broken Documents path to NuGet packages folder in `.csproj`
13+
3. **NBGV inheritance block** → added empty `Directory.Build.props` at `samples/ContosoUniversity/` to prevent duplicate AssemblyVersion attributes
14+
15+
## Why
16+
17+
The sample project ships with assumptions about the original developer's environment (SQL Express, local file paths). These fixes make it reproducible on any machine with LocalDB and a compatible MSBuild. The NBGV block is necessary because this repo's root `Directory.Build.props` injects Nerdbank.GitVersioning, which conflicts with legacy .NET Framework projects that have manual `AssemblyInfo.cs` files.
18+
19+
## Impact
20+
21+
All 5 pages (Home, About, Students, Courses, Instructors) are verified working with screenshots stored in `dev-docs/contoso-screenshots/`. Setup is documented in `dev-docs/contoso-university-setup.md`.

0 commit comments

Comments
 (0)