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

Update Terminal.Gui to 1.16.0, and make psedit compatible again #63

Merged
merged 4 commits into from
May 8, 2024

Conversation

halvarsson
Copy link
Collaborator

Updated Terminal.Gui reference to 1.16.0, as we were previously locked on 1.10.0 due to dropped support for .NET Standard 2.0 in Terminal.Gui

In order to solve this, we now multi-target .NET Standard 2.1 & .NET Framework 4.7.2

This is a solution suggested here, and is the same approach used in PSScriptAnalyzer etc.

The psd1 file will now evaluate if its running under Core (and then load the .NET Standard 2.1 dll) and if not, then we fallback to a .NET Framework 4.7.2 based build of psedit.

Module folder now looks like this:

 coreclr (.NET Standard 2.1 build)
 clr (.NET Framework 4.7.1 build)
 psedit.psd1

I also updated the following

  • Updated vscode launch/tasks json files, and confirmed launching/debugging still works
  • Updated yml workflows for GitHub, as dotnet publish is no longer supported. We must use dotnet build as publish is not supported for projects that multi targets.

…t for .NET Standard 2.0

Change from targetting .NET Standard to multi target .NET Standard 2.1 + .NET Framework 4.7.2

Updated vscode launch/tasks json files, and confirmed launching/debugging still works

Updated yml workflows for github, as dotnet publish is no longer supported. We must use dotnet build as publish is not supported for multi targetting projects
@halvarsson halvarsson closed this May 8, 2024
@halvarsson halvarsson reopened this May 8, 2024
@halvarsson halvarsson merged commit 2f562af into ironmansoftware:main May 8, 2024
2 checks passed
@halvarsson halvarsson deleted the multi-target-build branch May 8, 2024 17:33
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