File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 27
27
<AppxPackageSigningTimestampDigestAlgorithm >SHA256</AppxPackageSigningTimestampDigestAlgorithm >
28
28
<GenerateAppxPackageOnBuild >true</GenerateAppxPackageOnBuild >
29
29
<AppxPackageSigningEnabled >True</AppxPackageSigningEnabled >
30
+ <IsTestHost >true</IsTestHost >
30
31
</PropertyGroup >
31
32
<Target Name =" Pack" >
32
33
</Target >
Original file line number Diff line number Diff line change 11
11
12
12
<Choose >
13
13
<!-- 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'" >
15
15
<ItemGroup >
16
16
<Compile Include =" **\*Test.cs" Exclude =" **\bin\**\*Test.cs;**\obj\**\*Test.cs" />
17
17
<!-- Base test helpers -->
24
24
25
25
<Choose >
26
26
<!-- 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'" >
28
28
<ItemGroup >
29
29
<Page Include =" **\*Page.xaml" Exclude =" **\bin\**\*Page.xaml;**\obj\**\*Page.xaml" SubType =" Designer" Generator =" MSBuild:Compile" />
30
30
<Compile Include =" **\*Page.xaml.cs" DependentUpon =" %(Filename)" />
31
31
</ItemGroup >
32
32
</When >
33
33
</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 >
34
45
</Project >
Original file line number Diff line number Diff line change 3
3
<PropertyGroup Label =" Globals" >
4
4
<ProjectGuid >1d8b0260-5c17-41da-9c38-1e37441b3925</ProjectGuid >
5
5
<MinimumVisualStudioVersion >14.0</MinimumVisualStudioVersion >
6
-
7
- <IsSharedProject >true</IsSharedProject >
8
6
</PropertyGroup >
9
7
<Import Project =" $(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition =" Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
10
8
<Import Project =" $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
You can’t perform that action at this time.
0 commit comments