.NET Standard 2.1 & .NET 5.0

This commit is contained in:
JFronny 2020-11-11 16:37:36 +01:00
parent 454d902f04
commit bb5ea72041
9 changed files with 12 additions and 14 deletions

View File

@ -2,7 +2,7 @@
tags:
- windows
image: mcr.microsoft.com/dotnet/core/sdk
image: mcr.microsoft.com/dotnet/sdk
uptool:
extends:

View File

@ -2,7 +2,7 @@
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.CC-Functions/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.CC-Functions/riderModule.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/.idea.CC-Functions/.idea/riderModule.iml" filepath="$PROJECT_DIR$/.idea/.idea.CC-Functions/.idea/riderModule.iml" />
</modules>
</component>
</project>

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>8</LangVersion>
</PropertyGroup>

View File

@ -129,18 +129,17 @@ namespace CC_Functions.Commandline.TUI
break;
case ConsoleKey.Enter:
if (selectable.Any() && selectable.Length >= TabPoint && selectable[TabPoint].Enabled)
{
selectable[TabPoint].InvokeClick(this);
render = true;
}
break;
case ConsoleKey.Escape:
Close?.Invoke(this, new EventArgs());
break;
default:
if (selectable.Any() && selectable.Length >= TabPoint && selectable[TabPoint].Enabled)
selectable[TabPoint].InvokeInput(this, input);
InvokeInput(this, input);
break;
}
if (selectable.Any() && selectable.Length >= TabPoint && selectable[TabPoint].Enabled)
selectable[TabPoint].InvokeInput(this, input);
InvokeInput(this, input);
render = true;
}
if (_wndWidth != Console.WindowWidth || _wndHeight != Console.WindowHeight)

View File

@ -135,7 +135,6 @@ namespace CC_Functions.Commandline.TUI
case ConsoleKey.Enter:
if (lines.Length < Size.Height)
{
tmp = lines.ToList();
lines[Cursor.Y] = lines[Cursor.Y].Insert(Math.Max(Cursor.X, 0), "\n");
Cursor.Y++;
Cursor.X = 0;

View File

@ -18,7 +18,7 @@
<FileVersion>1.0.0.0</FileVersion>
<VersionSuffix>0.0</VersionSuffix>
<PackageVersion>1.1.$(VersionSuffix)</PackageVersion>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DocumentationFile>bin\Debug\Core.xml</DocumentationFile>

View File

@ -17,7 +17,7 @@
<FileVersion>1.0.0.0</FileVersion>
<VersionSuffix>0.0</VersionSuffix>
<PackageVersion>1.1.$(VersionSuffix)</PackageVersion>
<TargetFramework>netstandard2.0</TargetFramework>
<TargetFramework>netstandard2.1</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DocumentationFile>bin\Debug\Misc.xml</DocumentationFile>

View File

@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<OutputType>WinExe</OutputType>
<RootNamespace>CC_Functions.W32.Test</RootNamespace>
<AssemblyName>CC_Functions.W32.Test</AssemblyName>

View File

@ -5,7 +5,7 @@
<AssemblyName>CC-Functions.W32</AssemblyName>
<LangVersion>8</LangVersion>
<UseWindowsForms>true</UseWindowsForms>
<TargetFrameworks>net461;netcoreapp3.1</TargetFrameworks>
<TargetFramework>net5.0</TargetFramework>
<Deterministic>false</Deterministic>
<Authors>JFronny</Authors>
<Description>W32 Additions for CC-Functions</Description>