Skip to content

Commit

Permalink
chore: fix Build
Browse files Browse the repository at this point in the history
  • Loading branch information
kazo0 committed Sep 25, 2024
1 parent 26e1bee commit 404aae0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 10 deletions.
41 changes: 31 additions & 10 deletions testing/TestHarness/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,17 +1,38 @@
<Project>
<Import Project="..\..\Directory.Build.props" />

<PropertyGroup>
<ImplicitUsings>enable</ImplicitUsings>
<!-- https://github.com/unoplatform/private/issues/332 -->
<Nullable>annotations</Nullable>
<NoWarn>$(NoWarn);NU5104;NU1504;NU1505;CS1591;MSB3277;XA0101;CS8785;CS8669;CA1416</NoWarn>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<!--
Adding NoWarn to remove build warnings
NU1507: Warning when there are multiple package sources when using CPM with no source mapping
NETSDK1201: Warning that specifying RID won't create self containing app
PRI257: Ignore default language (en) not being one of the included resources (eg en-us, en-uk)
-->
<NoWarn>$(NoWarn);NU1507;NETSDK1201;PRI257</NoWarn>
<ConditionalCompilationSymbols>
<ConditionalCompilationSymbol Name="UNO_EXT_TIMERS" Comment="Controls whether performance timers are enabled (off by default)" />
</ConditionalCompilationSymbols>


<!--<DefineConstants>$(DefineConstants);UNO_EXT_TIMERS</DefineConstants>-->
</PropertyGroup>

<!-- See https://aka.platform.uno/using-uno-sdk#implicit-packages for more information regarding the Implicit Packages version properties. -->
<!-- <PropertyGroup>
<UnoToolkitVersion>6.0.24</UnoToolkitVersion>
<UnoThemesVersion>5.0.13</UnoThemesVersion>
</PropertyGroup> -->
<PropertyGroup>
<DebugType>portable</DebugType>
<DebugSymbols>True</DebugSymbols>
<SynthesizeLinkMetadata>true</SynthesizeLinkMetadata>
<RootNamespace>TestHarness</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>

<!--
Adding NoWarn to remove build warnings
NU1507: Warning when there are multiple package sources when using CPM with no source mapping
NETSDK1201: Warning that specifying RID won't create self containing app
PRI257: Ignore default language (en) not being one of the included resources (eg en-us, en-uk)
-->
<NoWarn>$(NoWarn);NU1507;NETSDK1201;PRI257</NoWarn>
</PropertyGroup>
</Project>
14 changes: 14 additions & 0 deletions testing/TestHarness/TestHarness/TestHarness.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,21 @@
<ProjectReference Include="..\..\..\src\Uno.Extensions.Validation\Uno.Extensions.Validation.csproj" />
<ProjectReference Include="..\..\..\src\Uno.Extensions.Validation.Fluent\Uno.Extensions.Validation.Fluent.csproj" />
<ProjectReference Include="..\TestHarness.Core\TestHarness.Core.csproj" />

<PackageReference Include="Uno.Core.Extensions.Logging.Singleton"/>
<PackageReference Include="Uno.WinUI" />
<PackageReference Include="Uno.UI.Adapter.Microsoft.Extensions.Logging"/>
<!--<PackageReference Include="Uno.Wasm.Bootstrap" />
<PackageReference Include="Uno.Wasm.Bootstrap.DevServer" />
<PackageReference Include="Uno.Resizetizer" />-->
</ItemGroup>

<ItemGroup Condition="'$(IsBrowserWasm)'=='true'">
<PackageReference Include="Uno.Extensions.Logging.WebAssembly.Console" />
</ItemGroup>

<ItemGroup Condition="'$(IsIOSOrCatalyst)' == 'true'">
<PackageReference Include="Uno.Extensions.Logging.OSLog" />
</ItemGroup>

</Project>

0 comments on commit 404aae0

Please sign in to comment.