Skip to content

Commit

Permalink
Merge pull request #4 from solrevdev/solrevdev/dotnet8-support
Browse files Browse the repository at this point in the history
Add .NET 8 support - see issue #3
  • Loading branch information
praeclarum authored Nov 22, 2023
2 parents 67d3b72 + fe80966 commit 8a0a979
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.101
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
Expand Down
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/AskGPT/bin/Debug/net7.0/AskGPT.dll",
"program": "${workspaceFolder}/AskGPT/bin/Debug/net8.0/AskGPT.dll",
"args": ["how are you doing today?"],
"cwd": "${workspaceFolder}/AskGPT",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
Expand All @@ -23,4 +23,4 @@
"request": "attach"
}
]
}
}
2 changes: 1 addition & 1 deletion AskGPT/AskGPT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackAsTool>true</PackAsTool>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ ask what is the meaning of life

## Installation

1. [Install .NET 7](https://dotnet.microsoft.com/download/dotnet/7.0)
1. [Install .NET 8](https://dotnet.microsoft.com/download/dotnet/8.0)
1. Install the tool by running: `dotnet tool install -g AskGPT`
1. Create an API key at [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys)
1. Create a file called `~/.config/AskGPT/apikey.txt` with your API key in it
Expand Down
5 changes: 3 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"sdk": {
"version": "7.0.101"
"version": "7.0.101",
"rollForward": "latestMajor"
}
}
}

0 comments on commit 8a0a979

Please sign in to comment.