Skip to content

Commit

Permalink
try to resolve using external package if local build doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingzhe Huang (from Dev Box) committed Oct 12, 2024
1 parent fe86d38 commit f96c7b9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/http-client-csharp/eng/scripts/Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ Import-Module "$PSScriptRoot\Generation.psm1" -DisableNameChecking -Force;
$packageRoot = Resolve-Path (Join-Path $PSScriptRoot '..' '..')
$solutionDir = Join-Path $packageRoot 'generator'
# absolute path to locally built emitter module
$emitterPath = Resolve-Path (Join-Path $PSScriptRoot '..' '..' 'dist' 'emitter\')
$emitterPath = Resolve-Path (Join-Path $PSScriptRoot '..' '..' 'dist' 'emitter\') -ErrorAction SilentlyContinue
if (-not $emitterPath) {
$emitterPath = "@typespec/http-client-csharp"
}

if (-not $LaunchOnly) {
Refresh-Build
Expand Down

0 comments on commit f96c7b9

Please sign in to comment.