Skip to content

Commit 906096a

Browse files
committed
Updates
1 parent fe1df4b commit 906096a

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/DevCenter/DevCenterData.AutoRest/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ input-file:
3737
title: DevCenterdata
3838
subject-prefix: DevCenter
3939
endpoint-resource-id-key-name: https://devcenter.azure.com
40+
root-module-name: $(prefix).DevCenter
4041
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
4142
use-extension:
4243
"@autorest/powershell": "3.x"

tools/BuildScripts/AdaptAutorestModule.ps1

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ if (($null -eq $ModuleRootName) -or ('' -eq $ModuleRootName) -or ('$(root-module
3535
Exit 1
3636
}
3737

38-
$ModuleRootName = $ModuleRootName -replace 'data$',''
39-
4038
$RepoRoot = ($PSScriptRoot | Split-Path -Parent | Split-Path -Parent)
4139
$SourceDirectory = Join-Path $RepoRoot 'src'
4240
$GeneratedDirectory = Join-Path $RepoRoot 'generated'
@@ -248,11 +246,7 @@ try{
248246
}
249247
& $resolveScriptPath -ModuleName $ModuleRootName -ArtifactFolder $artifacts -Psd1Folder $parentModulePath
250248
} -ArgumentList $RepoRoot, $ModuleRootName, $parentModuleName, $SubModuleName, $subModuleNameTrimmed
251-
try {
252-
$job | Wait-Job | Receive-Job
253-
} catch {
254-
Write-Warning "Error: $($_.Exception.Message)"
255-
}
249+
$job | Wait-Job | Receive-Job
256250
$job | Remove-Job
257251
} finally {
258252
if (Test-Path $tempCsprojPath) {

0 commit comments

Comments
 (0)