Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Commit ef92ff9

Browse files
authored
Add tvOS version of Touch.Client. (#64)
Also rename Touch.Client to Touch.Client-iOS, and make sure to use different output and intermediate paths in the two project files, so that they don't output files in the same directories.
1 parent 705964d commit ef92ff9

File tree

3 files changed

+124
-4
lines changed

3 files changed

+124
-4
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,26 @@
77
<SchemaVersion>2.0</SchemaVersion>
88
<ProjectGuid>{F611ED96-54B5-4975-99BB-12F50AF95936}</ProjectGuid>
99
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
10-
<TemplateGuid>{a52b8a63-bc84-4b47-910d-692533484892}</TemplateGuid>
1110
<OutputType>Library</OutputType>
1211
<RootNamespace>Touch.Client</RootNamespace>
1312
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
1413
<AssemblyName>Touch.Client</AssemblyName>
1514
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
15+
<BaseIntermediateOutputPath>obj\iOS</BaseIntermediateOutputPath>
1616
</PropertyGroup>
1717
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1818
<DebugSymbols>true</DebugSymbols>
1919
<DebugType>full</DebugType>
2020
<Optimize>false</Optimize>
21-
<OutputPath>bin\Debug</OutputPath>
21+
<OutputPath>bin\iOS\Debug</OutputPath>
2222
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
2323
<ErrorReport>prompt</ErrorReport>
2424
<WarningLevel>4</WarningLevel>
2525
</PropertyGroup>
2626
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2727
<DebugType>full</DebugType>
2828
<Optimize>true</Optimize>
29-
<OutputPath>bin\Release</OutputPath>
29+
<OutputPath>bin\iOS\Release</OutputPath>
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
3232
<MtouchVerbosity></MtouchVerbosity>
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{A571BB52-F57E-4ED0-ADC0-95656E866C18}</ProjectGuid>
9+
<ProjectTypeGuids>{06FA79CB-D6CD-4721-BB4B-1BD202089C55};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
10+
<OutputType>Library</OutputType>
11+
<RootNamespace>Touch.Client</RootNamespace>
12+
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
13+
<AssemblyName>Touch.Client</AssemblyName>
14+
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
15+
<BaseIntermediateOutputPath>obj\tvOS</BaseIntermediateOutputPath>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\tvOS\Debug</OutputPath>
22+
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
</PropertyGroup>
26+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
27+
<DebugType>full</DebugType>
28+
<Optimize>true</Optimize>
29+
<OutputPath>bin\tvOS\Release</OutputPath>
30+
<ErrorReport>prompt</ErrorReport>
31+
<WarningLevel>4</WarningLevel>
32+
<MtouchVerbosity></MtouchVerbosity>
33+
</PropertyGroup>
34+
<ItemGroup>
35+
<Reference Include="System" />
36+
<Reference Include="System.Xml" />
37+
<Reference Include="System.Core" />
38+
<Reference Include="Xamarin.TVOS" />
39+
</ItemGroup>
40+
<ItemGroup>
41+
<Folder Include="Resources\" />
42+
</ItemGroup>
43+
<ItemGroup>
44+
<Compile Include="..\NUnitLite\TouchRunner\HttpTextWriter.cs">
45+
<Link>HttpTextWriter.cs</Link>
46+
</Compile>
47+
<Compile Include="..\NUnitLite\TouchRunner\NUnitOutputTextWriter.cs">
48+
<Link>NUnitOutputTextWriter.cs</Link>
49+
</Compile>
50+
<Compile Include="..\NUnitLite\TouchRunner\Options.cs">
51+
<Link>Options.cs</Link>
52+
</Compile>
53+
<Compile Include="..\NUnitLite\TouchRunner\TcpTextWriter.cs">
54+
<Link>TcpTextWriter.cs</Link>
55+
</Compile>
56+
<Compile Include="..\NUnitLite\TouchRunner\TestCaseElement.cs">
57+
<Link>TestCaseElement.cs</Link>
58+
</Compile>
59+
<Compile Include="..\NUnitLite\TouchRunner\TestElement.cs">
60+
<Link>TestElement.cs</Link>
61+
</Compile>
62+
<Compile Include="..\NUnitLite\TouchRunner\TestResultElement.cs">
63+
<Link>TestResultElement.cs</Link>
64+
</Compile>
65+
<Compile Include="..\NUnitLite\TouchRunner\TestRocks.cs">
66+
<Link>TestRocks.cs</Link>
67+
</Compile>
68+
<Compile Include="..\NUnitLite\TouchRunner\TestSuiteElement.cs">
69+
<Link>TestSuiteElement.cs</Link>
70+
</Compile>
71+
<Compile Include="..\NUnitLite\TouchRunner\TouchOptions.cs">
72+
<Link>TouchOptions.cs</Link>
73+
</Compile>
74+
<Compile Include="..\NUnitLite\TouchRunner\TouchRunner.cs">
75+
<Link>TouchRunner.cs</Link>
76+
</Compile>
77+
<Compile Include="..\NUnitLite\TouchRunner\TouchViewController.cs">
78+
<Link>TouchViewController.cs</Link>
79+
</Compile>
80+
</ItemGroup>
81+
<ItemGroup>
82+
<PackageReference Include="NUnitLite">
83+
<Version>3.12.0</Version>
84+
</PackageReference>
85+
<PackageReference Include="MonoTouch.Dialog" CopyLocal="true" IncludeAssets="all">
86+
<Version>2.0.0-pre1</Version>
87+
<IncludeAssets>all</IncludeAssets>
88+
<CopyLocal>true</CopyLocal>
89+
</PackageReference>
90+
<PackageReference Include="NUnit.Extension.NUnitV2ResultWriter">
91+
<Version>3.6.0</Version>
92+
</PackageReference>
93+
</ItemGroup>
94+
<!-- Make sure MonoTouch.Dialog ends up in the output folder -->
95+
<Target Name="ClearReferenceCopyLocalPaths" AfterTargets="ResolveAssemblyReferences">
96+
<ItemGroup>
97+
<ReferenceCopyLocalPaths Include="@(Reference)" Condition="'%(Reference.Filename)' == 'MonoTouch.Dialog'" />
98+
</ItemGroup>
99+
</Target>
100+
101+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\TVOS\Xamarin.TVOS.CSharp.targets" />
102+
</Project>

Touch.Unit.sln

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "monotouch.tests", "monotouc
88
EndProject
99
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Touch.Server", "Touch.Server\Touch.Server.csproj", "{A1303AE1-2693-4DF7-A17B-20C2ABA1E2ED}"
1010
EndProject
11-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Touch.Client", "Touch.Client\Touch.Client.csproj", "{F611ED96-54B5-4975-99BB-12F50AF95936}"
11+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Touch.Client-tvOS", "Touch.Client\Touch.Client-tvOS.csproj", "{A571BB52-F57E-4ED0-ADC0-95656E866C18}"
12+
EndProject
13+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Touch.Client-iOS", "Touch.Client\Touch.Client-iOS.csproj", "{F611ED96-54B5-4975-99BB-12F50AF95936}"
1214
EndProject
1315
Global
1416
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -86,6 +88,22 @@ Global
8688
{A1303AE1-2693-4DF7-A17B-20C2ABA1E2ED}.Release|iPhone.Build.0 = Release|iPhone
8789
{A1303AE1-2693-4DF7-A17B-20C2ABA1E2ED}.Release|iPhoneSimulator.ActiveCfg = Release|iPhone
8890
{A1303AE1-2693-4DF7-A17B-20C2ABA1E2ED}.Release|iPhoneSimulator.Build.0 = Release|iPhone
91+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
92+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
93+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
94+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
95+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Debug|iPhone.ActiveCfg = Debug|Any CPU
96+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Debug|iPhone.Build.0 = Debug|Any CPU
97+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Release|iPhone.ActiveCfg = Release|Any CPU
98+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.Release|iPhone.Build.0 = Release|Any CPU
99+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AdHoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
100+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AdHoc|iPhoneSimulator.Build.0 = Debug|Any CPU
101+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
102+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
103+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AdHoc|iPhone.ActiveCfg = Debug|Any CPU
104+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AdHoc|iPhone.Build.0 = Debug|Any CPU
105+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
106+
{A571BB52-F57E-4ED0-ADC0-95656E866C18}.AppStore|iPhone.Build.0 = Debug|Any CPU
89107
{F611ED96-54B5-4975-99BB-12F50AF95936}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
90108
{F611ED96-54B5-4975-99BB-12F50AF95936}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
91109
{F611ED96-54B5-4975-99BB-12F50AF95936}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU

0 commit comments

Comments
 (0)