Skip to content
This repository has been archived by the owner on Apr 28, 2024. It is now read-only.

Upgrade to Net8.0 #1

Merged
merged 5 commits into from
Apr 25, 2024
Merged

Upgrade to Net8.0 #1

merged 5 commits into from
Apr 25, 2024

Conversation

Lemon73-Computing
Copy link
Owner

@Lemon73-Computing Lemon73-Computing commented Apr 24, 2024

  • TargetFramework

    • net 6.0 -> 8.0
  • Nuget

    • Nuke.Common 6.2.1 -> 8.0.0
    • Microsoft.SourceLink.GitHub 1.0.0 -> 8.0.0
    • Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers 0.4.410601 -> 0.4.421302
  • Github Actions

    • actions/checkout@v2 -> v4
    • actions/setup-dotnet@v1 -> v4

Copy link
Owner Author

@Lemon73-Computing Lemon73-Computing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Lemon73-Computing
Copy link
Owner Author

how to use this:

cd src/ElectronNET.CLI
dotnet build # ?
dotnet pack -c Release
dotnet tool install --global --add-source ./bin/Release/net8.0/publish/dotnet-electronize ElectronNET.CLI

you can use electronize command on net8.0

@Lemon73-Computing
Copy link
Owner Author

Lemon73-Computing commented Apr 24, 2024

but, this is error (can i move this command on blazor app?)

Adding our config file to your project...
Search your .csproj/fsproj to add the needed electron.manifest.json...
Found your :  - check for existing config or update it.
Unhandled exception. System.AggregateException: One or more errors occurred. (Value cannot be null. (Parameter 'path'))
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 'path')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at System.ArgumentException.ThrowNullOrEmptyException(String argument, String paramName)
   at System.IO.Strategies.FileStreamHelpers.ValidateArguments(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.File.Open(String path, FileMode mode, FileAccess access)
   at ElectronNET.CLI.Commands.InitCommand.EditProjectFile(String projectFile) in /home/lemon73/Repo/Electron.NET/src/ElectronNET.CLI/Commands/InitCommand.cs:line 166
   at ElectronNET.CLI.Commands.InitCommand.<>c.<ExecuteAsync>b__13_0() in /home/lemon73/Repo/Electron.NET/src/ElectronNET.CLI/Commands/InitCommand.cs:line 88
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at ElectronNET.CLI.Program.Main(String[] args) in /home/lemon73/Repo/Electron.NET/src/ElectronNET.CLI/Program.cs:line 59
Aborted

@Lemon73-Computing
Copy link
Owner Author

This is working!!

@Lemon73-Computing Lemon73-Computing changed the title [WIP] Upgrade to Net8.0 Upgrade to Net8.0 Apr 25, 2024
@Lemon73-Computing Lemon73-Computing merged commit 47675bc into dev Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant