Skip to content

seesharprun/demo-dotnet-tool-multi-target

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Demo of a multi-targeted .NET tool

The .NET tool is developed in .NET 8, but you can install it in .NET 6 or 7 environments using the included devcontainer specifications.

Included environments

Version Link to devcontainer spec Open in GitHub Codespaces
.NET 6 net60/devcontainer.json Open in GitHub Codespaces
.NET 7 net70/devcontainer.json Open in GitHub Codespaces
.NET 8 net80/devcontainer.json Open in GitHub Codespaces

Test

To test this process, follow these steps:

  1. Package the multi-targeted project on your local .NET 8 machine:

    cd src/tool
    dotnet pack
  2. The package will be in the src/tool/nupkg/ folder.

  3. Open any of the three devcontainer images in a GitHub Codespace.

  4. Validate your version of .NET

    dotnet --list-sdks
    
    dotnet --version
  5. Upload the package to your codespace in any folder.

  6. Install the local package:

    dotnet tool install --add-source <path-to-folder-with-package> --global Demo.Tool.Speak
  7. Test the tool:

    speak
    
    speak "<your-name>"

About

Demo showing multi-targeting of a .NET tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages