Datei: Concepts/BuildProcess.md
Last Commit (50beab8)
| 1 | -- File didn't exist -- |
New Commit (74c26c3)
| 1 | # NDO Build Process – Concept for Independent Package Versioning |
| 2 | |
| 3 | ## 1. Context |
| 4 | |
| 5 | NDO ships as a set of NuGet packages. Other projects inside and outside this |
| 6 | repository consume them. A complete build is currently described by the MSBuild |
| 7 | script `Make/NDO.proj`. The resulting packages land in `BuiltPackages`. |
| 8 | |
| 9 | The packages evolve independently. When one package changes: |
| 10 | |
| 11 | 1. It needs a new version. That means `Version`, `AssemblyVersion` and `FileVersion` in its csproj. |
| 12 | 2. Every project that depends on it must reference the new version. |
| 13 | 3. Every dependent *package* must get a new version of its own. |
| 14 | 4. Steps 2 and 3 repeat for the dependents' dependents. |
| 15 | |
| 16 | The current tool, `Tools/PatchNdoVersion`, can't do this. It assumes one version |
| 17 | for all packages NDO.dll depends on (`-i`, `-n`, `-m`, `-e` switches). It also |
| 18 | only patches `PackageReference` versions; it never touches the package's own version. |
| 19 | |
| 20 | ## 2. Current State |
| 21 | |
| 22 | ### 2.1 Packages produced by the build |
| 23 | |
| 24 | | Package id | Project | Version | Assembly/FileVersion | |
| 25 | |---|---|---|---| |
| 26 | | NDOInterfaces | `NDOInterfaces/NDOInterfaces.csproj` | 6.0.0 | 6.0.0.0 | |
| 27 | | NDO.Mapping | `NDO.Mapping/NDO.Mapping/NDO.Mapping.csproj` | 6.0.0 | **6.0.0** (3 parts) | |
| 28 | | NDO.ProviderFactory | `NDO.ProviderFactory/NDO.ProviderFactory/NDO.ProviderFactory.csproj` | 6.0.0 | 6.0.0.0 | |
| 29 | | NDO.SchemaGenerator | `NDO.SchemaGenerator/NDO.SchemaGenerator/NDO.SchemaGenerator.csproj` | 6.0.0 | 6.0.0.0 | |
| 30 | | NDO.dll | `NDODLL/NDO.csproj` | 6.0.0 | 6.0.0.0 | |
| 31 | | NDO.JsonFormatter | `NdoJsonFormatter/NdoJsonFormatter/NDO.JsonFormatter.csproj` | 5.1.1 | 5.1.1.0 | |
| 32 | | ndo.mysql, ndo.mysqlconnector, ndo.oracle, ndo.postgre, ndo.sqlite, ndo.sqlserver | `Provider/*/NDO.*/NDO.*.csproj` | 5.1.0 | 5.1.0.0 | |
| 33 | | NDO.Build | `nuget/NDO.Build.nuspec` (packed with `nuget.exe`) | 6.0.1.0 | – | |
| 34 | |
| 35 | Notes: |
| 36 | - **Versions are scattered.** There is no `Directory.Build.props` or |
| 37 | ··`Directory.Packages.props`. Every version is hard-coded in its project file. |
| 38 | - **NDO.Build and NDOEnhancer are coupled.** NDO.Build packages the binaries of |
| 39 | ··`NDOEnhancer/NDOEnhancer` (Version 6.0.1.0) and `NDOEnhancer.BuildTask`. The |
| 40 | ··NDOEnhancer version should equal the NDO.Build version. |
| 41 | |
| 42 | ### 2.2 How dependencies are expressed |
| 43 | |
| 44 | There are two different mechanisms. |
| 45 | |
| 46 | **ProjectReference (inside the core).** These references form the core graph: |
| 47 | |
| 48 | ``` |
| 49 | NDOInterfaces |
| 50 | ├── NDO.Mapping ── NDO.SchemaGenerator ─┐ |
| 51 | ├── NDO.ProviderFactory ────────────────┤ |
| 52 | ├───────────────────────────────────────┴── NDO.dll |
| 53 | ├── ndo.<provider> (6x) |
| 54 | └── NDOEnhancer (also Mapping, ProviderFactory, SchemaGenerator, Ecma335) |
| 55 | ``` |
| 56 | |
| 57 | `dotnet pack` turns a ProjectReference into a package dependency `>= <Version of |
| 58 | the referenced project>`. So **no reference needs to be edited** here. The |
| 59 | dependent package only needs its own version bump, because its nuspec now |
| 60 | points to a different dependency version. |
| 61 | |
| 62 | **PackageReference (outside the core).** |
| 63 | |
| 64 | | Consumer | References | |
| 65 | |---|---| |
| 66 | | NDO.JsonFormatter | `ndo.dll` 5.1.1 | |
| 67 | | SimpleMappingTool (`Mapping.csproj`) | `NDO.mapping` 5.1.1 | |
| 68 | | Provider UISupport projects (5x) | `NDOInterfaces` 5.1.0 | |
| 69 | | IntegrationTests | `NDO.JsonFormatter` 5.1.0 | |
| 70 | | PureBusinessClasses | `ndo.dll` 5.1.1 | |
| 71 | | FormatterUnitTests | `ndo.dll` 5.1.1, `ndo.sqlserver` 5.1.0 | |
| 72 | | PersistentEnhancerTestClasses | `ndo.dll` 5.0.0 | |
| 73 | | UnitTestGenerator/* | `NDO.dll`, `NDO.Build`, `NDO.SqlServer`, `NDO.Mapping`, `NDO.ProviderFactory`, `NDOInterfaces` 5.0.0 | |
| 74 | |
| 75 | Package ids are spelled with inconsistent casing (`ndo.dll`, `NDO.dll`, |
| 76 | `NDO.mapping`), so all matching must be case-insensitive. |
| 77 | |
| 78 | ### 2.3 Problems with the current build |
| 79 | |
| 80 | - **The patch step is broken.** `Make/NDO.proj` calls `PatchNdoVersion -i` on |
| 81 | ··NDO.Mapping, NDO.ProviderFactory, the providers and NDOEnhancer. These projects |
| 82 | ··no longer have an `NDOInterfaces` PackageReference, so these steps fail. |
| 83 | - **PatchNdoVersion is limited:** |
| 84 | ··- it only searches the first `ItemGroup` that contains a `PackageReference`; |
| 85 | ··- it reformats the file through `XDocument.Save`; |
| 86 | ··- it can't bump a project's own version. |
| 87 | - **Copying to `BuiltPackages` is Windows-only and incomplete.** It is done by |
| 88 | ··per-project `PostBuild` targets using `cmd copy`. The providers and |
| 89 | ··NDO.JsonFormatter don't copy at all, and NDO.dll copies no `.snupkg`. |
| 90 | - **Some projects can't be built with `dotnet build`:** |
| 91 | ··- `NDOPackage` is a VSIX project and needs the VSSDK targets of Visual Studio's MSBuild. |
| 92 | ··- `NDOEnhancer.BuildTask` is an old-style project with GAC references to |
| 93 | ····`Microsoft.Build.Utilities.v4.0`. |
| 94 | ··- `UISupport/NDO.UISupport` is old-style, and its HintPath points to a |
| 95 | ····`netstandard2.0` folder that no longer exists. |
| 96 | - **The NuGet package source points to the wrong drive.** The user-level source |
| 97 | ··named `NDO` is `C:\Projekte\NDO\BuiltPackages`, but the repository lives on `D:`. |
| 98 | ··The repository has no `nuget.config` of its own. |
| 99 | - **`Make/DebugBuild.cmd` is broken.** It references a `test.proj` and a |
| 100 | ··`nuget.config` that don't exist. |
| 101 | |
| 102 | ## 3. Requirements |
| 103 | |
| 104 | 1. **One place to enter versions.** The developer enters the new version of a |
| 105 | ·· package in one single file. |
| 106 | 2. **Producer patching.** The script sets `Version`, `AssemblyVersion` and |
| 107 | ·· `FileVersion` in that package's csproj, or the version in its nuspec. |
| 108 | 3. **Consumer patching.** Every `PackageReference` to a changed package is |
| 109 | ·· updated in all csproj files. |
| 110 | 4. **Propagation.** Every package that depends on a changed package, directly |
| 111 | ·· or transitively, automatically gets a new version. Then steps 2 and 3 apply |
| 112 | ·· to it as well. |
| 113 | 5. **Building.** Compilation uses `dotnet build <csproj>`, in dependency order. |
| 114 | 6. **Collection.** All resulting `.nupkg` / `.snupkg` files end up in `BuiltPackages`. |
| 115 | |
| 116 | ## 4. Choice of Tool |
| 117 | |
| 118 | ### 4.1 Is MSBuild the right tool? |
| 119 | |
| 120 | **No, not for orchestration.** MSBuild is a declarative item/target engine. It |
| 121 | is excellent for describing *how to build one project*. It is a poor fit for |
| 122 | what this script must do: |
| 123 | |
| 124 | - **Graph logic.** The script must read all project files, build a dependency |
| 125 | ··graph, compute a transitive closure and sort it topologically. In MSBuild |
| 126 | ··this means inline tasks or a custom task assembly, which is effectively C# |
| 127 | ··anyway, just harder to debug. |
| 128 | - **Conditional state changes.** Rules like "bump the patch version of X only if |
| 129 | ··X itself was not bumped manually" lead to deeply nested conditions and |
| 130 | ··property functions. |
| 131 | - **Editing XML in place.** `XmlPoke` rewrites the file and can't easily target |
| 132 | ··attributes on specific items without reformatting. |
| 133 | - **Diagnostics.** It's hard to produce a readable dry-run report. |
| 134 | |
| 135 | MSBuild stays the right tool *inside* each csproj: pack settings, copying, |
| 136 | enhancer integration. It should no longer be the orchestrator. |
| 137 | |
| 138 | ### 4.2 Alternatives |
| 139 | |
| 140 | | Option | Pros | Cons | |
| 141 | |---|---|---| |
| 142 | | **MSBuild orchestration file** (status quo) | Already present; no new runtime | Weak at graph and conditional logic; painful XML patching; hard to debug | |
| 143 | | **PowerShell 7 script** | Ubiquitous on Windows; good XML support via `[xml]`; easy process calls | Different language from the rest of the code base; no typed version handling; `[xml]` also reformats unless handled carefully; PS 5.1 vs. 7 differences | |
| 144 | | **C# file-based app** (`dotnet run build.cs`, .NET 10+) | Same language as NDO and the existing tools; `XDocument`, `NuGet.Versioning`, `System.Text.Json` available; no `.csproj` needed (`#:package` directives); debuggable in VS/VS Code; cross-platform | Requires the .NET 10 SDK (already required by the net10.0/net11.0 targets) | |
| 145 | | **Cake / NUKE** | Mature build DSLs in C#; built-in tasks for `dotnet build/pack`, NuGet, MSBuild via vswhere | Extra dependency and learning curve; NUKE adds a build project and bootstrap scripts; heavyweight for one repository | |
| 146 | | **Central Package Management** (`Directory.Packages.props`) | All `PackageReference` versions in one file; consumer patching becomes a single-file edit | Only covers consumers, not the producers' own versions or propagation. It **complements** a script and doesn't replace it | |
| 147 | |
| 148 | ### 4.3 Recommendation |
| 149 | |
| 150 | Use a **C# file-based app**: `Make/build.cs`, run with `dotnet run Make/build.cs`. |
| 151 | It is the smallest step that covers every requirement: |
| 152 | |
| 153 | - It is the same language as the code base and the existing tools |
| 154 | ··(PatchNdoVersion, MakeEnhancerDate, AddMappingToVsix), which it can replace. |
| 155 | - It has typed version handling through `NuGet.Versioning`. |
| 156 | - It needs no build project or bootstrapper. A single file is executed directly |
| 157 | ··by the SDK. |
| 158 | - It is easy to provide a `--dry-run` mode with a clear report. |
| 159 | |
| 160 | Optional second step: introduce `Directory.Packages.props` for the |
| 161 | *PackageReference* versions of NDO packages. Then the script only has to update |
| 162 | that one file for the consumers. |
| 163 | |
| 164 | ## 5. Recommended Design |
| 165 | |
| 166 | ### 5.1 Version manifest – the single source of truth |
| 167 | |
| 168 | `Make/packages.json` lists every package that the build produces. It is the |
| 169 | **only** file the developer edits to release a new version. |
| 170 | |
| 171 | ```json |
| 172 | { |
| 173 | ··"packageSource": "../BuiltPackages", |
| 174 | ··"configuration": "Release", |
| 175 | ··"propagation": "patch", |
| 176 | ··"packages": [ |
| 177 | ····{ "id": "NDOInterfaces",······ "project": "NDOInterfaces/NDOInterfaces.csproj",··································"version": "6.0.0" }, |
| 178 | ····{ "id": "NDO.Mapping",········ "project": "NDO.Mapping/NDO.Mapping/NDO.Mapping.csproj",··························"version": "6.0.0" }, |
| 179 | ····{ "id": "NDO.ProviderFactory", "project": "NDO.ProviderFactory/NDO.ProviderFactory/NDO.ProviderFactory.csproj",··"version": "6.0.0" }, |
| 180 | ····{ "id": "NDO.SchemaGenerator", "project": "NDO.SchemaGenerator/NDO.SchemaGenerator/NDO.SchemaGenerator.csproj",··"version": "6.0.0" }, |
| 181 | ····{ "id": "NDO.dll",············ "project": "NDODLL/NDO.csproj",·················································· "version": "6.0.0" }, |
| 182 | ····{ "id": "NDO.JsonFormatter",·· "project": "NdoJsonFormatter/NdoJsonFormatter/NDO.JsonFormatter.csproj",··········"version": "5.1.1" }, |
| 183 | ····{ "id": "ndo.sqlserver",······ "project": "Provider/SqlServerProvider/NDO.SqlServer/NDO.SqlServer.csproj",······ "version": "5.1.0" }, |
| 184 | ····{ "id": "NDO.Build",·········· "project": "nuget/NDO.Build.nuspec", "builder": "nuget", |
| 185 | ······"versionFollowers": [ "NDOEnhancer/NDOEnhancer/NDOEnhancer.csproj" ], |
| 186 | ······"buildFirst": [ "NDOEnhancer/NDOEnhancer/NDOEnhancer.csproj", |
| 187 | ······················{ "project": "NDOEnhancer.BuildTask/NDOEnhancer.BuildTask/NDOEnhancer.BuildTask.csproj", "builder": "msbuild" } ], |
| 188 | ······"version": "6.0.1" } |
| 189 | ··] |
| 190 | } |
| 191 | ``` |
| 192 | |
| 193 | The other providers are listed in the same way. Dependencies are **not** listed |
| 194 | in the manifest. They are derived from the project files, so they can never get |
| 195 | out of sync with the real references. |
| 196 | |
| 197 | `versionFollowers` names projects that get the same version but are not packed |
| 198 | themselves, like NDOEnhancer. |
| 199 | |
| 200 | ### 5.2 Dependency graph |
| 201 | |
| 202 | The script scans every `*.csproj` under the repository root and builds the graph: |
| 203 | |
| 204 | - It skips `bin/`, `obj/`, `packages/` and an exclude list of legacy folders |
| 205 | ··such as `Tutorial`, `UnitTests` and `ClassGenerator`. These still use NDO 1.x–4.x |
| 206 | ··GAC or HintPath references. |
| 207 | - A **producer** is a project listed in the manifest. |
| 208 | - An **edge** `A → B` ("B depends on A") is created when: |
| 209 | ··- project B contains `<PackageReference Include="A">`, matched case-insensitively |
| 210 | ····against the manifest ids; or |
| 211 | ··- project B contains a `<ProjectReference>` whose resolved full path is the |
| 212 | ····producer project of A. |
| 213 | - **Consumers** are all projects with an edge, whether or not they are packages |
| 214 | ··themselves. Tests and tools are consumers but not producers. |
| 215 | |
| 216 | The graph is checked for cycles and sorted topologically. |
| 217 | |
| 218 | ### 5.3 Algorithm |
| 219 | |
| 220 | ``` |
| 221 | 1. Load manifest; load graph (5.2). |
| 222 | |
| 223 | 2. Detect changes |
| 224 | ·· changed = { p | manifest.version(p) != version in p's project file } |
| 225 | |
| 226 | 3. Propagate |
| 227 | ·· for p in topological order: |
| 228 | ······ if p not in changed and any dependency of p is in changed: |
| 229 | ·········· p.version = bump(current version of p, policy)··// e.g. 5.1.0 -> 5.1.1 |
| 230 | ·········· changed += p |
| 231 | ·· Write the propagated versions back into packages.json |
| 232 | ·· (so the manifest is again the single source of truth). |
| 233 | |
| 234 | 4. Patch producers (for each p in changed) |
| 235 | ·· csproj:··<Version>x.y.z</Version> |
| 236 | ············<AssemblyVersion>x.y.z.0</AssemblyVersion> |
| 237 | ············<FileVersion>x.y.z.0</FileVersion> |
| 238 | ·· nuspec:··<version>x.y.z</version> |
| 239 | ·· versionFollowers: same three properties. |
| 240 | |
| 241 | 5. Patch consumers (for each project in the repository) |
| 242 | ·· for each <PackageReference Include=id Version=v> with id in changed: |
| 243 | ······ set Version to the new version |
| 244 | ·· ProjectReferences are left untouched (the version flows in at pack time). |
| 245 | |
| 246 | 6. Print a report (always) – stop here with --dry-run or --no-build. |
| 247 | |
| 248 | 7. Build changed packages in topological order (see 5.4). |
| 249 | |
| 250 | 8. Collect *.nupkg / *.snupkg into packageSource. |
| 251 | ``` |
| 252 | |
| 253 | Rules for patching: |
| 254 | - **Keep formatting.** Edit the text in place with a regex limited to the found |
| 255 | ··element, or use `XDocument` with `LoadOptions.PreserveWhitespace` and save |
| 256 | ··without reformatting and with the original encoding/BOM. The diff of a project |
| 257 | ··file must show only the changed version lines. |
| 258 | - **Normalize version formats.** Assembly and file versions always use 4 parts. |
| 259 | ··This also fixes the 3-part format in NDO.Mapping. |
| 260 | - **Patch every occurrence.** If a property or reference appears in several |
| 261 | ··conditional `PropertyGroup`s or `ItemGroup`s, all occurrences are patched. |
| 262 | - **Report unknown references.** If a reference uses a version range or a |
| 263 | ··property (`Version="$(...)"`), the script reports it instead of guessing. |
| 264 | |
| 265 | ### 5.4 Building |
| 266 | |
| 267 | Each changed package is built as follows, in topological order: |
| 268 | |
| 269 | ``` |
| 270 | dotnet build <csproj> -c Release |
| 271 | ``` |
| 272 | |
| 273 | `GeneratePackageOnBuild=true` is already set in all package projects, so |
| 274 | `dotnet build` also produces the `.nupkg` / `.snupkg`. Consumers that are not |
| 275 | packages, like tests, are only patched and not built. An optional `--all` switch |
| 276 | builds them too. |
| 277 | |
| 278 | **Restore.** `dotnet build` restores implicitly. The packages that the |
| 279 | consumers need must be in a configured package source before their restore. |
| 280 | That works because the topological order guarantees producers are built and |
| 281 | collected first. |
| 282 | |
| 283 | **NuGet cache.** If a package is rebuilt *without* a version change, the stale |
| 284 | copy in `~/.nuget/packages/<id>/<version>` must be deleted first. Otherwise |
| 285 | consumers keep restoring the old content. This replaces the `DeletePackages` |
| 286 | target of `NDO.proj`. |
| 287 | |
| 288 | **Collecting packages.** The script copies `bin/<Configuration>/<id>.<version>.nupkg` |
| 289 | and `.snupkg` to `BuiltPackages`. The alternative is to set `PackageOutputPath` |
| 290 | centrally in a `Directory.Build.props`. Either way, the `cmd copy` `PostBuild` |
| 291 | targets can be removed from the project files. |
| 292 | |
| 293 | **Exceptions that can't use `dotnet build`:** |
| 294 | |
| 295 | | Project | Reason | Handling | |
| 296 | |---|---|---| |
| 297 | | `NDOPackage/NDOPackage.csproj` (VSIX) | Needs the VSSDK targets of Visual Studio | Build with Visual Studio's `MSBuild.exe`, found via `vswhere -latest -find MSBuild\**\Bin\MSBuild.exe`. Not part of the package build; only built with `--vsix` | |
| 298 | | `NDOEnhancer.BuildTask` | Old-style project, GAC references to Microsoft.Build | Short term: MSBuild via vswhere (`"builder": "msbuild"`). Long term: convert it to an SDK-style project using `Microsoft.Build.Utilities.Core`, then use `dotnet build` | |
| 299 | | `NDO.Build` (nuspec) | Not a project | First build NDOEnhancer and NDOEnhancer.BuildTask (`buildFirst`), then run `nuget/NuGet.exe pack NDO.Build.nuspec -Version <version> -OutputDirectory <packageSource>`. Long term: a pack-only SDK project (`NoBuild`, `IncludeBuildOutput=false`) so that `dotnet pack` is enough | |
| 300 | | Tools (`MakeEnhancerDate`, `AddMappingToVsix`) | Prerequisites of NDOEnhancer and NDOPackage | Built with `dotnet build -c Release` before the first project that needs them | |
| 301 | |
| 302 | ### 5.5 Command line |
| 303 | |
| 304 | ``` |
| 305 | dotnet run Make/build.cs [options] |
| 306 | |
| 307 | ··--dry-run··········Show detected changes, propagated bumps and all file |
| 308 | ···················· edits; change nothing. |
| 309 | ··--no-build········ Patch versions and references only. |
| 310 | ··--only <id>········Build only this package (and nothing that depends on it). |
| 311 | ··--rebuild <id>···· Rebuild a package without a version change |
| 312 | ···················· (clears its NuGet cache entry). |
| 313 | ··--all··············Also build consumers that are not packages (tests, tools). |
| 314 | ··--bump patch|minor Propagation policy for dependent packages (default: patch). |
| 315 | ··-c <config>········Configuration (default: Release). |
| 316 | ``` |
| 317 | |
| 318 | Example session: |
| 319 | |
| 320 | ``` |
| 321 | > # edit Make/packages.json: NDOInterfaces 6.0.0 -> 6.0.1 |
| 322 | > dotnet run Make/build.cs --dry-run |
| 323 | Changed (manual):······NDOInterfaces··········6.0.0 -> 6.0.1 |
| 324 | Changed (propagated):··NDO.Mapping············6.0.0 -> 6.0.1 |
| 325 | ······················ NDO.ProviderFactory····6.0.0 -> 6.0.1 |
| 326 | ······················ NDO.SchemaGenerator····6.0.0 -> 6.0.1 |
| 327 | ······················ NDO.dll················6.0.0 -> 6.0.1 |
| 328 | ······················ ndo.sqlserver··········5.1.0 -> 5.1.1·· (… other providers) |
| 329 | ······················ NDO.JsonFormatter······5.1.1 -> 5.1.2 |
| 330 | Reference updates:···· SimpleMappingTool/Mapping.csproj··NDO.mapping 5.1.1 -> 6.0.1 |
| 331 | ······················ Provider/.../SqlServerUISupport.csproj··NDOInterfaces 5.1.0 -> 6.0.1 |
| 332 | ······················ … |
| 333 | Build order:·········· NDOInterfaces, NDO.Mapping, NDO.ProviderFactory, … |
| 334 | > dotnet run Make/build.cs |
| 335 | ``` |
| 336 | |
| 337 | ### 5.6 Propagation policy |
| 338 | |
| 339 | By default a dependent package gets a **patch** bump. If the developer has |
| 340 | already raised a dependent's version in the manifest, for example to a new |
| 341 | minor version for an API change, that manual version wins and the package is |
| 342 | not bumped again. |
| 343 | |
| 344 | Note: with ProjectReferences, the dependency in the produced nuspec is a |
| 345 | *minimum* version (`>= x`). Bumping the dependent is still necessary. It |
| 346 | guarantees that the published dependent package is a new artifact that points |
| 347 | to the new dependency, and that old consumers don't receive a changed package |
| 348 | under an unchanged version. |
| 349 | |
| 350 | ## 6. Migration Steps |
| 351 | |
| 352 | 1. **Create the manifest.** Write `Make/packages.json` from the current project |
| 353 | ·· versions (table 2.1). |
| 354 | 2. **Implement the script.** Write `Make/build.cs` with `--dry-run` first, and |
| 355 | ·· verify the report against the current repository. A first run without manual |
| 356 | ·· changes must report "nothing changed". |
| 357 | 3. **Unify version formats.** Use 4-part Assembly/FileVersion everywhere; this |
| 358 | ·· is done automatically on the first patch. |
| 359 | 4. **Replace the copy targets.** Remove the `cmd copy` `PostBuild` targets, or |
| 360 | ·· replace them with a central `PackageOutputPath`. |
| 361 | 5. **Add a `nuget.config`** at the repository root with `BuiltPackages` as a |
| 362 | ·· relative package source. This removes the dependency on the user-level |
| 363 | ·· source (currently pointing to `C:\Projekte\NDO\BuiltPackages`). |
| 364 | 6. **Retire the old patch step.** Remove the `PatchNdoVersion` target and the |
| 365 | ·· tool from `Make/NDO.proj`. Then keep `NDO.proj` only as a thin wrapper for |
| 366 | ·· the VSIX build, or delete it. |
| 367 | 7. **Clean up legacy scripts.** Delete or fix `Make/DebugBuild.cmd`. |
| 368 | 8. **Optional: Central Package Management.** Introduce `Directory.Packages.props` |
| 369 | ·· for the NDO package versions used by consumers. |
| 370 | 9. **Optional: modernize the remaining legacy projects.** Convert |
| 371 | ·· `NDOEnhancer.BuildTask` and `UISupport/NDO.UISupport` to SDK-style so that |
| 372 | ·· only the VSIX still needs Visual Studio's MSBuild. |
| 373 | |
| 374 | ## 7. Open Questions |
| 375 | |
| 376 | - **Test projects.** Should test projects (IntegrationTests, FormatterUnitTests, |
| 377 | ··PureBusinessClasses, UnitTestGenerator/*) always follow the newest package |
| 378 | ··versions, or keep pinned versions? Alternatively, should they switch to |
| 379 | ··ProjectReferences, as the NDODLL tests already do? |
| 380 | - **Provider propagation.** Should providers be bumped when NDOInterfaces |
| 381 | ··changes? They depend on it through a ProjectReference, so the default policy |
| 382 | ··says yes. |
| 383 | - **VSIX version.** Should the VSIX (`NDOPackage/source.extension.vsixmanifest`, |
| 384 | ··currently 5.0.0) be part of the manifest and follow NDO.dll or NDO.Build? |
| 385 | - **Pre-release versions.** Is a pre-release suffix (`6.1.0-beta1`) needed? |
| 386 | ··`NuGet.Versioning` supports it, but Assembly/FileVersion then have to drop the suffix. |
| 387 | |
| 388 | Resume this session with: |
| 389 | claude --resume f5170928-a07b-4b74-8448-44f4716daaa0 |