Commit b7594ff
committed
fix(tests): Repair InstallValidatorTests build and runtime failures
The SDK-format migration (d9f4aaf) incorrectly converted the original
FwBuildTasks assembly reference into a ProjectReference with Build=false
and Private=False. This prevented FwBuildTasks.dll from being copied to
the test output directory, causing a runtime FileNotFoundException.
Incremental builds masked the issue by reusing stale DLLs.
Changes:
- Restore the original direct assembly Reference pattern for
FwBuildTasks, pointing to BuildTools/FwBuildTasks/$(Configuration)/
with Private=True so the DLL is copied to Output/<Configuration>/
- Add Compile Remove for AssemblyInfoForTests.cs and
AssemblyInfoForUiIndependentTests.cs, matching the sibling
InstallerArtifactsTests project (this project does not reference the
FW core assemblies those files depend on)
- Replace the GAC reference Microsoft.Build.Utilities.v4.0 with a
direct reference to Microsoft.Build.Utilities.Core from BuildTools
(needed for the MSBuild Task base type used by LogMetadata)
- Add Nullable=annotations to support string? syntax in
WixInstallerArtifactsTests.cs
- Fix malformed XML (OutputType and NoWarn were concatenated on one line)1 parent 52d8b79 commit b7594ff
File tree
1 file changed
+15
-7
lines changed- Src/InstallValidator/InstallValidatorTests
1 file changed
+15
-7
lines changedLines changed: 15 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | | - | |
28 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
| |||
0 commit comments