You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
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 |
# 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