Skip to content

Commit 27d3e24

Browse files
committed
Update DiffEngineViewer.Windows.Tests.csproj
1 parent 16d5c29 commit 27d3e24

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/DiffEngineViewer.Windows.Tests/DiffEngineViewer.Windows.Tests.csproj

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
<Using Include="System.Windows.Forms" />
1010
<!--
1111
The core links DiffEngine's Inline sources, so InlinePatch and friends are in that namespace.
12-
No alias needed here, unlike DiffEngineViewer.Tests: this project never references the real
13-
DiffEngine assembly, so there is only one of each type in scope.
1412
-->
1513
<Using Include="DiffEngine" />
1614
<PackageReference Include="Verify.TUnit" />
@@ -21,6 +19,17 @@
2119
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
2220
<ProjectReference Include="..\DiffEngineViewer.Windows\DiffEngineViewer.Windows.csproj" />
2321
<!--
22+
Aliased, exactly as DiffEngineViewer.Tests does it, and for the same reason: the viewer links
23+
DiffEngine's Inline sources rather than referencing them, so both assemblies declare a
24+
DiffEngine namespace and the shared fixtures name types that exist in each.
25+
Nothing here wants the engine's copies - this reference is what displaces the DiffEngine
26+
assembly Verify drags in transitively, which is where the second declaration came from. Verify
27+
31 depended on a DiffEngine without the Inline types, so there was nothing to collide with and
28+
the reference could be left out; Verify 32 depends on one with them, and every unqualified
29+
InlinePatch became ambiguous.
30+
-->
31+
<ProjectReference Include="..\DiffEngine\DiffEngine.csproj" Aliases="engine" />
32+
<!--
2433
Linked rather than shared through a helper package: the same fixtures back the ASCII snapshots,
2534
so the WinForms baselines describe the same screens the text ones do.
2635
-->

0 commit comments

Comments
 (0)