Skip to content

Commit

Permalink
Build Design project's parent when not under solution build
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nirmal4G committed Jul 20, 2021
1 parent 39a0013 commit a690457
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/Windows.Toolkit.VisualStudio.Design.targets
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
<OutputPath>$(ParentProjectOutputPath)Design\</OutputPath>
</PropertyGroup>

<ItemGroup Condition="'$(SolutionDir)' == '' OR '$(SolutionDir)' == '*Undefined*'">
<ProjectReference Include="..\$(ParentProjectName)\$(ParentProjectName)$(MSBuildProjectExtension)">
<Private>False</Private>
<ReferenceOutputAssembly>False</ReferenceOutputAssembly>
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties>
</ProjectReference>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.DesignTools.Extensibility" Version="16.4.29519.181" ExcludeAssets="Runtime" />
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="$(TargetPlatformBaseVersion).$(TargetPlatformMinRevision).*" />
Expand Down

0 comments on commit a690457

Please sign in to comment.