Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
revert script change to unblock CI
  • Loading branch information
live1206 committed Nov 29, 2024
commit 717f65f33d1dfb9c6a7b5c3662aa1de2181cdc11
8 changes: 0 additions & 8 deletions eng/scripts/typespec/Generate-Code.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ function Refresh-Build {

$testProjectsLocalDir = Join-Path $packageRoot 'generator' 'TestProjects' 'Local'
$basicTypespecTestProject = Join-Path $testProjectsLocalDir "Basic-TypeSpec"
$mgmtTypespecTestProject = Join-Path $testProjectsLocalDir "Mgmt-TypeSpec"

Push-Location $packageRoot

Expand All @@ -48,13 +47,6 @@ Invoke-LoggedCommand (Get-TspCommand "$basicTypespecTestProject/Basic-TypeSpec.t
Write-Host "Building BasicTypeSpec" -ForegroundColor Cyan
Invoke-LoggedCommand "dotnet build $packageRoot/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj"

Write-Host "Generating MgmtTypeSpec" -ForegroundColor Cyan
Invoke-LoggedCommand (Get-TspCommand "$mgmtTypespecTestProject/main.tsp" $mgmtTypespecTestProject)

# skip the build for now, we know it won't build
# Write-Host "Building MgmtTypeSpec" -ForegroundColor Cyan
# Invoke-LoggedCommand "dotnet build $packageRoot/generator/TestProjects/Local/Mgmt-TypeSpec/src/MgmtTypeSpec.csproj"

Pop-Location

Write-Host 'Code generation is completed.'