Skip to content

Commit ea41b48

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 20c61f9 commit ea41b48

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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)