Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 19a4ae9

Browse files
committed
Build Design project's parent when not under solution build
The reason we build the Controls library first is that we have a dependency on the XML Doc file it generates. The Doc file is embedded within the Design library and it uses it's type-info to populate metadata automatically.
1 parent 3b14db3 commit 19a4ae9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

build/Windows.Toolkit.VisualStudio.Design.targets

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<OutputPath>$(ParentProjectOutputPath)Design\</OutputPath>
66
</PropertyGroup>
77

8+
<ItemGroup Condition="'$(SolutionDir)' == '' OR '$(SolutionDir)' == '*Undefined*'">
9+
<ProjectReference Include="..\$(ParentProjectName)\$(ParentProjectName)$(MSBuildProjectExtension)">
10+
<Private>False</Private>
11+
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
12+
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties>
13+
</ProjectReference>
14+
</ItemGroup>
15+
816
<ItemGroup>
917
<PackageReference Include="Microsoft.VisualStudio.DesignTools.Extensibility" Version="16.4.29519.181" ExcludeAssets="Runtime" />
1018
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="$(TargetPlatformBaseVersion).$(TargetPlatformMinRevision).*" />

0 commit comments

Comments
 (0)