Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use net6.0 #25

Merged
merged 2 commits into from
Jul 19, 2022
Merged

Use net6.0 #25

merged 2 commits into from
Jul 19, 2022

Conversation

nightroman
Copy link
Owner

@nightroman nightroman commented Jul 19, 2022

FarNet v6 and modules on .NET 6

FarNet requires .NET 6 SDK or runtime, see https://github.com/nightroman/FarNet#readme

Caution

Consider FarNet 6.0.x as unstable versions.

FarNet 6 "works on my machine", maybe by chance. Something might not work on
different machines / environments. Make a copy of Far Manager together with
installed old FarNet and modules.

Please report found issues. If it works, please let me know, too, all facts are
useful. Use the repository issues or discussions.

Main file structure changes

%FARHOME%

  • \
    • Far.exe.config removed
    • fsx.exe.config removed
    • fsx.exe moved to FarNet\Modules\FSharpFar
    • FSharp.Core.dll moved to FarNet\Modules\FSharpFar
    • FSharp.Core.xml moved to FarNet\Modules\FSharpFar
  • FarNet\
    • FarNet.Tools.dll removed / merged with FarNet.dll
    • FarNet.FSharp.dll moved to FarNet\Modules\FSharpFar
    • FarNet.FSharp.xml moved to FarNet\Modules\FSharpFar
    • NHunspell removed, move your dictionary folders to %FARPROFILE%\FarNet\RightWords

FarNet changes

The plugin and API did not change much.

  • Removed FarNet.Tools.dll, types moved to FarNet.dll not changed.
  • Modules are now developed with net6.0+.

FarNet.PowerShellFar changes

The module did not change much. Changes in PowerShell:

  • It's PowerShell 7.2.5, not 5.1, some things are slightly different, mostly better.
  • Module auto import is no more, use Import-Module before calling its commands.
  • WMI cmdlets are no more. CIM cmdlets replace them but they do not work yet.
  • PowerShell jobs do not work yet, use Start-FarTask, better in many ways.

FarNet.FSharp changes

The file structure changed as described above.
In brief, all files are in the module folder.
The module itself did not change much.

FarNet.RightWords changes

  • Uses WeCantSpell.Hunspell instead of NHunspell.
  • Thesaurus and its files are no longer used.
  • Custom user dictionaries did not change.

Upgrade your language dictionaries:

  • Move dictionary folders from %FARHOME%\FarNet\NHunspell to %FARPROFILE%\FarNet\RightWords
  • Convert dictionaries to UTF8 (recommended, see README for steps, e.g. KOI8-R is not supported)

Other FarNet modules

All other modules are upgraded and published on NuGet without changes.

FarNet.template

FarNet.template is upgraded and published on NuGet.

FarNet libraries

FarNet.FSharp.Charting is upgraded

2022-08-15 FarNet.FSharp.Data is upgraded

2022-08-18 FarNet.FSharp.PowerShell is upgraded

- Use crafted assembly resolution.
- ModuleSettingsBase - write indented
- Loading, use C++ AppState.
- Move FarNet.Tools to FarNet
- Retire FSharpFar/samples/Charting
- Upgrade docs
- Rework F# tests, use Test.Add, etc.
- Fix Process.Start UseShellExecute
@nightroman nightroman merged commit 5a8f0f1 into master Jul 19, 2022
This was referenced Jul 19, 2022
@nightroman nightroman deleted the FarNet6 branch July 21, 2022 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant