mirror of https://github.com/dotnet/tye.git
Browse Source
* Extract Azure Functions version from project file. * Push Azure Functions version into run info. * Get version-specific path. * Switch to executable. * Create shell scripts for installing/uninstalling Tye. * Updates per PR feedback.pull/1290/head
committed by
GitHub
11 changed files with 136 additions and 39 deletions
@ -0,0 +1,3 @@ |
|||
@ECHO OFF |
|||
SETLOCAL |
|||
PowerShell -NoProfile -NoLogo -ExecutionPolicy ByPass -Command "[System.Threading.Thread]::CurrentThread.CurrentCulture = ''; [System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; try { & '%~dp0install-tye.ps1' %*; exit $LASTEXITCODE } catch { write-host $_; exit 1 }" |
|||
@ -0,0 +1,4 @@ |
|||
|
|||
$versionPrefix = Select-Xml -Path .\eng\Versions.props -XPath "/Project/PropertyGroup/VersionPrefix" | ForEach-Object { $_.Node.InnerXml } |
|||
|
|||
dotnet tool install microsoft.tye -g --version "$versionPrefix-dev" --add-source ./artifacts/packages/Debug/Shipping |
|||
@ -0,0 +1,5 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
versionprefix=`awk -F'[<>]' '/VersionPrefix.*VersionPrefix/{print $3}' ./eng/Versions.props` |
|||
|
|||
dotnet tool install microsoft.tye -g --version "$versionprefix-dev" --add-source ./artifacts/packages/Debug/Shipping |
|||
@ -0,0 +1,2 @@ |
|||
@echo off |
|||
dotnet tool uninstall microsoft.tye -g |
|||
@ -0,0 +1,3 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
dotnet tool uninstall microsoft.tye -g |
|||
Loading…
Reference in new issue