@@ -160,7 +160,7 @@ foreach ($directory in $directories) {
160160 if (-not (Test-Path $generationDir )) {
161161 New-Item - ItemType Directory - Path $generationDir | Out-Null
162162 }
163-
163+
164164 if ($folders.Contains (" versioning" )) {
165165 Generate- Versioning $directory.FullName $generationDir - generateStub $stubbed
166166 $spectorLaunchProjects.Add ($ ($folders -join " -" ) + " -v1" , $ (" TestProjects/Spector/$ ( $subPath.Replace ([System.IO.Path ]::DirectorySeparatorChar, ' /' )) " ) + " /v1" )
@@ -180,7 +180,7 @@ foreach ($directory in $directories) {
180180 if ($LaunchOnly ) {
181181 continue
182182 }
183-
183+
184184 Write-Host " Generating $subPath " - ForegroundColor Cyan
185185 Invoke (Get-TspCommand $specFile $generationDir $stubbed - forceNewProject $ForceNewProject )
186186
@@ -194,25 +194,24 @@ foreach ($directory in $directories) {
194194if ($null -eq $filter ) {
195195 Write-Host " Writing new launch settings" - ForegroundColor Cyan
196196 $mgcExe = " `$ (SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.exe"
197- $sampleExe = " `$ (SolutionDir)/../generator/artifacts/bin/SamplePlugin/Debug/net8.0/Microsoft.Generator.CSharp.exe"
198197 $basicSpec = " TestProjects/Local/Basic-TypeSpec"
199198 $mgmtSpec = " TestProjects/Local/Mgmt-TypeSpec"
200199
201200 $launchSettings = @ {}
202201 $launchSettings.Add (" profiles" , @ {})
203202 $launchSettings [" profiles" ].Add(" Basic-TypeSpec" , @ {})
204- $launchSettings [" profiles" ][" Basic-TypeSpec" ].Add(" commandLineArgs" , " `$ (SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.dll `$ (SolutionDir)/$basicSpec -p AzureClientPlugin " )
203+ $launchSettings [" profiles" ][" Basic-TypeSpec" ].Add(" commandLineArgs" , " `$ (SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.dll `$ (SolutionDir)/$basicSpec -g AzureClientGenerator " )
205204 $launchSettings [" profiles" ][" Basic-TypeSpec" ].Add(" commandName" , " Executable" )
206205 $launchSettings [" profiles" ][" Basic-TypeSpec" ].Add(" executablePath" , " dotnet" )
207-
206+
208207 $launchSettings [" profiles" ].Add(" Mgmt-TypeSpec" , @ {})
209- $launchSettings [" profiles" ][" Mgmt-TypeSpec" ].Add(" commandLineArgs" , " `$ (SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.dll `$ (SolutionDir)/$mgmtSpec -p AzureClientPlugin " )
208+ $launchSettings [" profiles" ][" Mgmt-TypeSpec" ].Add(" commandLineArgs" , " `$ (SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.dll `$ (SolutionDir)/$mgmtSpec -g AzureClientGenerator " )
210209 $launchSettings [" profiles" ][" Mgmt-TypeSpec" ].Add(" commandName" , " Executable" )
211210 $launchSettings [" profiles" ][" Mgmt-TypeSpec" ].Add(" executablePath" , " dotnet" )
212211
213212 foreach ($kvp in $spectorLaunchProjects.GetEnumerator ()) {
214213 $launchSettings [" profiles" ].Add($kvp.Key , @ {})
215- $launchSettings [" profiles" ][$kvp.Key ].Add(" commandLineArgs" , " `$ (SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.dll `$ (SolutionDir)/$ ( $kvp.Value ) -p AzureStubPlugin " )
214+ $launchSettings [" profiles" ][$kvp.Key ].Add(" commandLineArgs" , " `$ (SolutionDir)/../dist/generator/Microsoft.Generator.CSharp.dll `$ (SolutionDir)/$ ( $kvp.Value ) -g AzureClientGenerator " )
216215 $launchSettings [" profiles" ][$kvp.Key ].Add(" commandName" , " Executable" )
217216 $launchSettings [" profiles" ][$kvp.Key ].Add(" executablePath" , " dotnet" )
218217 }
0 commit comments