The .NET tool is developed in .NET 8, but you can install it in .NET 6 or 7 environments using the included devcontainer specifications.
Version | Link to devcontainer spec | Open in GitHub Codespaces |
---|---|---|
.NET 6 | net60/devcontainer.json | |
.NET 7 | net70/devcontainer.json | |
.NET 8 | net80/devcontainer.json |
To test this process, follow these steps:
-
Package the multi-targeted project on your local .NET 8 machine:
cd src/tool dotnet pack
-
The package will be in the
src/tool/nupkg/
folder. -
Open any of the three devcontainer images in a GitHub Codespace.
-
Validate your version of .NET
dotnet --list-sdks dotnet --version
-
Upload the package to your codespace in any folder.
-
Install the local package:
dotnet tool install --add-source <path-to-folder-with-package> --global Demo.Tool.Speak
-
Test the tool:
speak speak "<your-name>"