Skip to content

Commit 7f4a172

Browse files
Remove unused Shared Project property and use None include to display.
1 parent b3a5ca3 commit 7f4a172

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

UITests/UITests.App/UITests.App.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
2828
<GenerateAppxPackageOnBuild>true</GenerateAppxPackageOnBuild>
2929
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
30+
<IsTestHost>true</IsTestHost>
3031
</PropertyGroup>
3132
<Target Name="Pack">
3233
</Target>

UITests/UITests.Tests.Shared/UITests.Tests.Shared.projitems

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<Choose>
1313
<!-- When we're in the test harness include all '*Test.cs' files -->
14-
<When Condition="'$(IsTestHarness)' == 'true' or '$(IsSharedProject)' == 'true'">
14+
<When Condition="'$(IsTestHarness)' == 'true'">
1515
<ItemGroup>
1616
<Compile Include="**\*Test.cs" Exclude="**\bin\**\*Test.cs;**\obj\**\*Test.cs"/>
1717
<!-- Base test helpers -->
@@ -24,11 +24,22 @@
2424

2525
<Choose>
2626
<!-- When we're in the UI app used by the test harness, include all the pages -->
27-
<When Condition="'$(IsTestHarness)' != 'true' or '$(IsSharedProject)' == 'true'">
27+
<When Condition="'$(IsTestHost)' == 'true'">
2828
<ItemGroup>
2929
<Page Include="**\*Page.xaml" Exclude="**\bin\**\*Page.xaml;**\obj\**\*Page.xaml" SubType="Designer" Generator="MSBuild:Compile" />
3030
<Compile Include="**\*Page.xaml.cs" DependentUpon="%(Filename)" />
3131
</ItemGroup>
3232
</When>
3333
</Choose>
34+
35+
<!-- Have a None Include as well to make all items visible in VS in the Shared Project -->
36+
<ItemGroup>
37+
<None Include="**\*Test.cs" Exclude="**\bin\**\*Test.cs;**\obj\**\*Test.cs"/>
38+
<None Include="**\*Page.xaml" Exclude="**\bin\**\*Page.xaml;**\obj\**\*Page.xaml" SubType="Designer" Generator="MSBuild:Compile" />
39+
<None Include="**\*Page.xaml.cs" DependentUpon="%(Filename)" />
40+
<!-- Base test helpers -->
41+
<None Include="$(MSBuildThisFileDirectory)UITest.cs" />
42+
<None Include="$(MSBuildThisFileDirectory)TestAssembly.cs" />
43+
<None Include="$(MSBuildThisFileDirectory)TestPageAttribute.cs" />
44+
</ItemGroup>
3445
</Project>

UITests/UITests.Tests.Shared/UITests.Tests.Shared.shproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
<PropertyGroup Label="Globals">
44
<ProjectGuid>1d8b0260-5c17-41da-9c38-1e37441b3925</ProjectGuid>
55
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
6-
7-
<IsSharedProject>true</IsSharedProject>
86
</PropertyGroup>
97
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
108
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />

0 commit comments

Comments
 (0)