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

Commit f620668

Browse files
authored
[Touch.Client] Adjust project configurations. (#83)
Make sure any possible project configuration (not only Debug and Release) has an OutputPath set and the NUNITLITE_NUGET variable set. Both are needed to build the projects, and we use custom configurations when building some of our test projects (such as Debug[32|64] for instance).
1 parent 545400b commit f620668

File tree

5 files changed

+20
-25
lines changed

5 files changed

+20
-25
lines changed

Touch.Client/iOS/Touch.Client-iOS.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,23 @@
1212
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
1313
<AssemblyName>Touch.Client</AssemblyName>
1414
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
15+
<OutputPath>bin\$(Configuration)</OutputPath>
16+
<DefineConstants>NUNITLITE_NUGET;$(DefineConstants)</DefineConstants>
1517
</PropertyGroup>
1618
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
17-
<OutputPath>bin\Debug</OutputPath>
1819
<DebugSymbols>true</DebugSymbols>
1920
<DebugType>full</DebugType>
2021
<Optimize>false</Optimize>
21-
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
22+
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
26-
<OutputPath>bin\Release</OutputPath>
2727
<DebugType>full</DebugType>
2828
<Optimize>true</Optimize>
29-
<DefineConstants>NUNITLITE_NUGET</DefineConstants>
29+
<DefineConstants>$(DefineConstants)</DefineConstants>
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
32-
<MtouchVerbosity></MtouchVerbosity>
3332
</PropertyGroup>
3433
<ItemGroup>
3534
<Reference Include="System" />

Touch.Client/macOS/full/Touch.Client-macOS-full.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,23 @@
1212
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<UseXamMacFullFramework>true</UseXamMacFullFramework>
1414
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
15+
<OutputPath>bin\$(Configuration)</OutputPath>
16+
<DefineConstants>NUNITLITE_NUGET;$(DefineConstants)</DefineConstants>
1517
</PropertyGroup>
1618
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
17-
<OutputPath>bin\Debug</OutputPath>
1819
<DebugSymbols>true</DebugSymbols>
1920
<DebugType>full</DebugType>
2021
<Optimize>false</Optimize>
21-
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
22+
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
26-
<OutputPath>bin\Release</OutputPath>
2727
<DebugType>full</DebugType>
2828
<Optimize>true</Optimize>
29-
<DefineConstants>NUNITLITE_NUGET</DefineConstants>
29+
<DefineConstants>$(DefineConstants)</DefineConstants>
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
32-
<MtouchVerbosity></MtouchVerbosity>
3332
</PropertyGroup>
3433
<ItemGroup>
3534
<Reference Include="System" />

Touch.Client/macOS/mobile/Touch.Client-macOS-mobile.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,23 @@
1212
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
1313
<TargetFrameworkIdentifier>Xamarin.Mac</TargetFrameworkIdentifier>
1414
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
15+
<OutputPath>bin\$(Configuration)</OutputPath>
16+
<DefineConstants>NUNITLITE_NUGET;$(DefineConstants)</DefineConstants>
1517
</PropertyGroup>
1618
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
17-
<OutputPath>bin\Debug</OutputPath>
1819
<DebugSymbols>true</DebugSymbols>
1920
<DebugType>full</DebugType>
2021
<Optimize>false</Optimize>
21-
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
22+
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
26-
<OutputPath>bin\Release</OutputPath>
2727
<DebugType>full</DebugType>
2828
<Optimize>true</Optimize>
29-
<DefineConstants>NUNITLITE_NUGET</DefineConstants>
29+
<DefineConstants>$(DefineConstants)</DefineConstants>
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
32-
<MtouchVerbosity></MtouchVerbosity>
3332
</PropertyGroup>
3433
<ItemGroup>
3534
<Reference Include="System" />

Touch.Client/tvOS/Touch.Client-tvOS.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,23 @@
1212
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
1313
<AssemblyName>Touch.Client</AssemblyName>
1414
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
15+
<OutputPath>bin\$(Configuration)</OutputPath>
16+
<DefineConstants>NUNITLITE_NUGET;$(DefineConstants)</DefineConstants>
1517
</PropertyGroup>
1618
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
17-
<OutputPath>bin\Debug</OutputPath>
1819
<DebugSymbols>true</DebugSymbols>
1920
<DebugType>full</DebugType>
2021
<Optimize>false</Optimize>
21-
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
22+
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
26-
<OutputPath>bin\Release</OutputPath>
2727
<DebugType>full</DebugType>
2828
<Optimize>true</Optimize>
29-
<DefineConstants>NUNITLITE_NUGET</DefineConstants>
29+
<DefineConstants>$(DefineConstants)</DefineConstants>
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
32-
<MtouchVerbosity></MtouchVerbosity>
3332
</PropertyGroup>
3433
<ItemGroup>
3534
<Reference Include="System" />

Touch.Client/watchOS/Touch.Client-watchOS.csproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,23 @@
1212
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
1313
<AssemblyName>Touch.Client</AssemblyName>
1414
<RestoreProjectStyle>PackageReference</RestoreProjectStyle>
15+
<OutputPath>bin\$(Configuration)</OutputPath>
16+
<DefineConstants>NUNITLITE_NUGET;$(DefineConstants)</DefineConstants>
1517
</PropertyGroup>
1618
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
17-
<OutputPath>bin\Debug</OutputPath>
1819
<DebugSymbols>true</DebugSymbols>
1920
<DebugType>full</DebugType>
2021
<Optimize>false</Optimize>
21-
<DefineConstants>DEBUG;NUNITLITE_NUGET</DefineConstants>
22+
<DefineConstants>DEBUG;$(DefineConstants)</DefineConstants>
2223
<ErrorReport>prompt</ErrorReport>
2324
<WarningLevel>4</WarningLevel>
2425
</PropertyGroup>
2526
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
26-
<OutputPath>bin\Release</OutputPath>
2727
<DebugType>full</DebugType>
2828
<Optimize>true</Optimize>
29-
<DefineConstants>NUNITLITE_NUGET</DefineConstants>
29+
<DefineConstants>$(DefineConstants)</DefineConstants>
3030
<ErrorReport>prompt</ErrorReport>
3131
<WarningLevel>4</WarningLevel>
32-
<MtouchVerbosity></MtouchVerbosity>
3332
</PropertyGroup>
3433
<ItemGroup>
3534
<Reference Include="System" />

0 commit comments

Comments
 (0)