microsoft / vscode-tye

A Visual Studio Code extension for Tye development
Other
25 stars 9 forks source link

Add support for manifest-defined tool #194

Open Stan-RED opened 2 years ago

Stan-RED commented 2 years ago

Projects could use a specific version of Tye, defined by tool-manifest, for example the most actual Tye taken from CI/CD:

dotnet new tool-manifest
dotnet tool install Microsoft.Tye --prerelease `
    --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json

Information about this is stored in .config/dotnet-tools.json

{
  "version": 1,
  "isRoot": true,
  "tools": {
   "microsoft.tye": {
      "version": "0.12.0-alpha.22328.1",
      "commands": [
        "tye"
      ]
    }
  }
}

In such case it could be better to use this particular version of the tool.