Skip to content

Commit

Permalink
net8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nightroman committed Nov 19, 2023
1 parent e3ffb96 commit c5aba35
Show file tree
Hide file tree
Showing 242 changed files with 1,418 additions and 2,046 deletions.
2 changes: 1 addition & 1 deletion .build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
param(
$Platform = (property Platform x64),
$Configuration = (property Configuration Release),
$TargetFramework = (property TargetFramework net7.0)
$TargetFramework = (property TargetFramework net8.0)
)

$FarHome = "C:\Bin\Far\$Platform"
Expand Down
4 changes: 2 additions & 2 deletions CopyColor/.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ task build meta, {
task publish {
$null = mkdir $ModuleRoot -Force
Copy-Item -Destination $ModuleRoot @(
"bin\$Configuration\net7.0-windows\$ModuleName.dll"
"bin\$Configuration\net7.0-windows\$ModuleName.pdb"
"bin\$Configuration\net8.0-windows\$ModuleName.dll"
"bin\$Configuration\net8.0-windows\$ModuleName.pdb"
)
}

Expand Down
2 changes: 1 addition & 1 deletion CopyColor/CopyColor.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<FarHome Condition="'$(FarHome)' == ''">C:\Bin\Far\x64</FarHome>
<TargetFramework>net7.0-windows</TargetFramework>
<TargetFramework>net8.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions CopyColor/History.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
https://www.nuget.org/packages/FarNet.CopyColor

= 5.0.0 =

Requires FarNet 8

= 4.0.2 =

Use ClipboardHelper by Arthur Teplitzki.
Expand Down
2 changes: 1 addition & 1 deletion CopyColor/TheTool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class TheTool : ModuleTool
{
const string ModuleName = "CopyColor";
readonly static Guid Colorer = new("d2f36b62-a470-418d-83a3-ed7a3710e5b5");
readonly static string[] Colors = { "#000000", "#000080", "#008000", "#008080", "#800000", "#800080", "#808000", "#c0c0c0", "#808080", "#0000ff", "#00ff00", "#00ffff", "#ff0000", "#ff00ff", "#ffff00", "#ffffff", };
readonly static string[] Colors = ["#000000", "#000080", "#008000", "#008080", "#800000", "#800080", "#808000", "#c0c0c0", "#808080", "#0000ff", "#00ff00", "#00ffff", "#ff0000", "#ff00ff", "#ffff00", "#ffffff",];

static string EncodeHtml(string html)
{
Expand Down
4 changes: 2 additions & 2 deletions Drawer/.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ task build meta, {
task publish {
$null = mkdir $ModuleRoot -Force
Copy-Item -Destination $ModuleRoot @(
"bin\$Configuration\net7.0\$ModuleName.dll"
"bin\$Configuration\net7.0\$ModuleName.pdb"
"bin\$Configuration\net8.0\$ModuleName.dll"
"bin\$Configuration\net8.0\$ModuleName.pdb"
)
}

Expand Down
2 changes: 1 addition & 1 deletion Drawer/CurrentWordDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace FarNet.Drawer;
[ModuleDrawer(Name = Settings.CurrentWordName, Priority = 2, Id = Settings.CurrentWordGuid)]
public class CurrentWordDrawer : ModuleDrawer
{
EditorColor NewColorKeepForeground(int lineIndex, int start, int end, ConsoleColor fg, ConsoleColor bg)
static EditorColor NewColorKeepForeground(int lineIndex, int start, int end, ConsoleColor fg, ConsoleColor bg)
{
if (bg == ConsoleColor.Yellow)
{
Expand Down
2 changes: 1 addition & 1 deletion Drawer/Drawer.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<FarHome Condition="'$(FarHome)' == ''">C:\Bin\Far\x64</FarHome>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="FarNet">
Expand Down
4 changes: 4 additions & 0 deletions Drawer/History.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
https://www.nuget.org/packages/FarNet.Drawer

= 4.0.0 =

Requires FarNet 8

= 3.0.1 =

master -> main, update links.
Expand Down
2 changes: 1 addition & 1 deletion Drawer/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class CurrentWord

public class FixedColumn
{
public int[] ColumnNumbers { get; set; } = new int[] { 80, 120 };
public int[] ColumnNumbers { get; set; } = [80, 120];

public ConsoleColor ColorForeground { get; set; } = ConsoleColor.Black;

Expand Down
2 changes: 1 addition & 1 deletion EditorKit/EditorKit.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<FarHome Condition="'$(FarHome)' == ''">C:\Bin\Far\x64</FarHome>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 4 additions & 0 deletions EditorKit/History.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
https://www.nuget.org/packages/FarNet.EditorKit

= 2.0.0 =

Requires FarNet 8

= 1.0.2 =

editorconfig 0.14.0
Expand Down
4 changes: 2 additions & 2 deletions Explore/.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ task build meta, {
task publish {
$null = mkdir $ModuleRoot -Force
Copy-Item -Destination $ModuleRoot @(
"bin\$Configuration\net7.0\$ModuleName.dll"
"bin\$Configuration\net7.0\$ModuleName.pdb"
"bin\$Configuration\net8.0\$ModuleName.dll"
"bin\$Configuration\net8.0\$ModuleName.pdb"
)
}

Expand Down
2 changes: 1 addition & 1 deletion Explore/Explore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<FarHome Condition="'$(FarHome)' == ''">C:\Bin\Far\x64</FarHome>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<Reference Include="$(FarHome)\FarNet\FarNet.dll">
Expand Down
4 changes: 4 additions & 0 deletions Explore/History.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
https://www.nuget.org/packages/FarNet.Explore

= 5.0.0 =

Requires FarNet 8

= 4.0.2 =

Parameters
Expand Down
10 changes: 4 additions & 6 deletions Explore/TheCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ public override void Invoke(object sender, ModuleCommandEventArgs e)
}

// the module panel
Panel panel = Far.Api.Panel as Panel;
if (panel == null)
if (Far.Api.Panel is not Panel panel)
{
Far.Api.Message("This is not a module panel.");
return;
Expand All @@ -33,16 +32,15 @@ public override void Invoke(object sender, ModuleCommandEventArgs e)
var search = new SearchFileCommand(panel.Explorer);

// parameters
var parameters = new string[]
{
string[] parameters = [
"-Asynchronous",
"-Depth",
"-Directory",
"-File",
"-Recurse",
"-XFile",
"-XPath",
};
];

// parse, setup the search
bool async = false;
Expand All @@ -61,7 +59,7 @@ public override void Invoke(object sender, ModuleCommandEventArgs e)
if (!Far.Api.IsMaskValid(mask))
throw new ModuleException("Invalid mask.");

search.Filter = delegate(Explorer explorer, FarFile file)
search.Filter = delegate (Explorer explorer, FarFile file)
{
return Far.Api.IsMaskMatch(file.Name, mask);
};
Expand Down
6 changes: 6 additions & 0 deletions FSharpFar/History.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
https://www.nuget.org/packages/FarNet.FSharpFar

= 4.0.0 =

Requires .NET 8.0, FarNet 8.0.0

Keep several open sessions again.

= 3.1.1 =

FSharp.Core 7.0.401
Expand Down
2 changes: 1 addition & 1 deletion FSharpFar/src/FSharpFar/Config.fs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ module Config =
addProperty "StartProgram" (getFarExePath ())

//! use `windows` or charting is not happy
addProperty "TargetFramework" "net7.0-windows"
addProperty "TargetFramework" "net8.0-windows"
addProperty "UseWindowsForms" "true"
addProperty "DisableImplicitFSharpCoreReference" "true"

Expand Down
6 changes: 3 additions & 3 deletions FSharpFar/src/FSharpFar/FSharpFar.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<DisableImplicitFSharpCoreReference>true</DisableImplicitFSharpCoreReference>
<FarHome Condition="'$(FarHome)' == ''">C:\Bin\Far\x64</FarHome>
<MyOutDir>$(FarHome)\FarNet\Modules\$(AssemblyName)</MyOutDir>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<WarningLevel>5</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
Expand Down Expand Up @@ -41,8 +41,8 @@
<HintPath>$(FarHome)\FarNet\FarNet.dll</HintPath>
<Private>False</Private>
</Reference>
<PackageReference Include="FSharp.Core" Version="7.0.401" />
<PackageReference Include="FSharp.Compiler.Service" Version="43.7.401" />
<PackageReference Include="FSharp.Core" Version="8.0.100" />
<PackageReference Include="FSharp.Compiler.Service" Version="43.8.100" />
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="ib publish -Configuration $(Configuration) -FarHome $(FarHome)" />
Expand Down
Loading

0 comments on commit c5aba35

Please sign in to comment.