-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some Codefactor issues & rewrite part of the build-plugin script …
…to use functions & associative array
- Loading branch information
Showing
10 changed files
with
150 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,49 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Project Sdk="Microsoft.NET.Sdk" InitialTargets="EnsureOTDVersion"> | ||
|
||
<!-- Do not build the solution, it won't work with multi-targetting --> | ||
|
||
<Target Name="EnsureOTDVersion" BeforeTargets="PrepareForBuild"> | ||
<!-- Default to OTD 0.5.x --> | ||
<PropertyGroup Condition="'$(OTDVersion)' == ''"> | ||
<OTDVersion>OTD05</OTDVersion> | ||
</PropertyGroup> | ||
</Target> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<LangVersion>preview</LangVersion> | ||
<RootNamespace>TouchGestures.Lib</RootNamespace> | ||
<NoWarn>$(NoWarn); NETSDK1138; VSTHRD200</NoWarn> | ||
<Nullable>enable</Nullable> | ||
<!-- TODO: Change obj path to obj/0.5.x to avoid conflicts with 0.6.x (.NET bug) --> | ||
</PropertyGroup> | ||
|
||
<!-- Target Frameworks --> | ||
|
||
<PropertyGroup Condition="'$(OTDVersion)' == 'OTD05' Or '$(OTDVersion)' == ''"> | ||
<TargetFramework>net5.0</TargetFramework> | ||
<LangVersion>preview</LangVersion> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(OTDVersion)' == 'OTD06'"> | ||
<TargetFramework>net6.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<!-- Debug Symbols --> | ||
|
||
<!-- Only Embed debug symbols for the Release configuration --> | ||
<PropertyGroup Condition="'$(Configuration)' == 'Release'"> | ||
<DebugType>embedded</DebugType> | ||
</PropertyGroup> | ||
|
||
<!-- Dependencies --> | ||
|
||
<!-- Only for OTD 0.5.x (Running on .NET 5) --> | ||
<ItemGroup> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'net5.0'"> | ||
<ProjectReference Include="../.modules/OpenTabletDriver.External/.modules/OpenTabletDriver/OpenTabletDriver.Desktop/OpenTabletDriver.Desktop.csproj" PrivateAssets="all" /> | ||
<ProjectReference Include="../.modules/OpenTabletDriver.External/OpenTabletDriver.External.Common/OpenTabletDriver.External.Common.csproj" /> | ||
</ItemGroup> | ||
|
||
<!-- Only for OTD 0.6.x (Running on .NET 6) --> | ||
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'"> | ||
<ProjectReference Include="../.modules/OpenTabletDriver.External-0.6.x/.modules/OpenTabletDriver/OpenTabletDriver.Desktop/OpenTabletDriver.Desktop.csproj" PrivateAssets="all" /> | ||
<ProjectReference Include="../.modules/OpenTabletDriver.External-0.6.x/OpenTabletDriver.External.Common/OpenTabletDriver.External.Common.csproj" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env bash | ||
|
||
versions=("0.5.x" "0.6.x") | ||
|
||
|