Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit f0d9342

Browse files
committed
Minor fixes
1 parent 4bc076d commit f0d9342

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

.azure-pipelines/release-cli.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ stages:
132132
targetType: inline
133133
script: |
134134
New-Item $(outputDir) -ItemType Directory -Force
135-
echo "Test file" > $(outputDir)/mgc
136-
echo "Test file2" > $(outputDir)/mgc.txt
135+
echo "Test file" > $(outputDir)/mgc-beta
136+
echo "Test file2" > $(outputDir)/mgc-beta.txt
137137
verbosePreference: '$(OUTPUT_PREFERENCE)'
138138
debugPreference: '$(OUTPUT_PREFERENCE)'
139139
informationPreference: '$(OUTPUT_PREFERENCE)'
@@ -356,7 +356,7 @@ stages:
356356
$extractPath = Join-Path -Path '$(WORKING_DIR)' -ChildPath artifacts
357357
Expand-EsrpArtifacts -SourceDir $downloadDir -OutputDir $extractPath -FileNameTemplate '$(fileNameTemplate)' -BranchOrTagName '$(branchOrTagName)' -RuntimeIdentifier '$(rid)' -PackageType $(packageType) -TarCompression $(compressionProgram) -Cleanup
358358
359-
Move-NonExecutableItems -SourcePath $extractPath -ExecutableItemNames mgc,mgc.exe
359+
Move-NonExecutableItems -SourcePath $extractPath -ExecutableItemNames mgc-beta,mgc-beta.exe
360360
Write-Host "##vso[task.setvariable variable=ARTIFACTS_PATH]$extractPath"
361361
verbosePreference: '$(OUTPUT_PREFERENCE)'
362362
debugPreference: '$(OUTPUT_PREFERENCE)'
@@ -367,7 +367,7 @@ stages:
367367
- template: templates/prepare-unsigned-executable-darwin.yaml
368368
parameters:
369369
executablePath: $(ARTIFACTS_PATH)
370-
executableName: mgc
370+
executableName: mgc-beta
371371
zipName: $(ZIP_NAME)
372372
targetRuntime: $(rid)
373373

@@ -459,7 +459,7 @@ stages:
459459
. $(powershellScriptsDir)/BuildTools.ps1
460460
$zipPath = Join-Path -Path '$(ARTIFACTS_PATH)' -ChildPath '$(ZIP_NAME)'
461461
$fileName = Get-FileName -FileNameTemplate '$(fileNameTemplate)' -BranchOrTagName '$(branchOrTagName)' -RuntimeIdentifier '$(rid)'
462-
Update-SignedArchive -InputFile $zipPath -ReportDir '$(WORKING_DIR)' -OutputDir '$(WORKING_DIR)' -OutputFileName "$fileName" -ExeNames mgc -Cleanup
462+
Update-SignedArchive -InputFile $zipPath -ReportDir '$(WORKING_DIR)' -OutputDir '$(WORKING_DIR)' -OutputFileName "$fileName" -ExeNames mgc-beta -Cleanup
463463
verbosePreference: '$(OUTPUT_PREFERENCE)'
464464
debugPreference: '$(OUTPUT_PREFERENCE)'
465465
informationPreference: '$(OUTPUT_PREFERENCE)'

.vscode/launch.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"type": "coreclr",
1010
"request": "launch",
1111
"preLaunchTask": "build",
12-
"program": "${workspaceFolder}/src/bin/Debug/net7.0/mgc.dll",
12+
"program": "${workspaceFolder}/src/bin/Debug/net7.0/mgc-beta.dll",
1313
"args": ["-h"],
1414
"cwd": "${workspaceFolder}/src",
1515
"envFile": "${workspaceFolder}/src/.env",
@@ -21,7 +21,7 @@
2121
"type": "coreclr",
2222
"request": "launch",
2323
"preLaunchTask": "build",
24-
"program": "${workspaceFolder}/src/bin/Debug/net7.0/mgc.dll",
24+
"program": "${workspaceFolder}/src/bin/Debug/net7.0/mgc-beta.dll",
2525
"args": ["login"],
2626
"cwd": "${workspaceFolder}/src",
2727
"envFile": "${workspaceFolder}/src/.env",
@@ -33,7 +33,7 @@
3333
"type": "coreclr",
3434
"request": "launch",
3535
"preLaunchTask": "build",
36-
"program": "${workspaceFolder}/src/bin/Debug/net7.0/mgc.dll",
36+
"program": "${workspaceFolder}/src/bin/Debug/net7.0/mgc-beta.dll",
3737
"args": ["me", "get", "--output", "TABLE"],
3838
"cwd": "${workspaceFolder}/src",
3939
"envFile": "${workspaceFolder}/src/.env",
@@ -45,7 +45,7 @@
4545
"type": "coreclr",
4646
"request": "launch",
4747
"preLaunchTask": "build",
48-
"program": "${workspaceFolder}/src/bin/Debug/net6.0/mgc.dll",
48+
"program": "${workspaceFolder}/src/bin/Debug/net6.0/mgc-beta.dll",
4949
"args": ["users", "item", "patch", "--user-id", "[email protected]", "--body", "{\"officeLocation\": \"NewLocation\"}", "--debug"],
5050
"cwd": "${workspaceFolder}/src",
5151
"envFile": "${workspaceFolder}/src/.env",
@@ -58,4 +58,4 @@
5858
"request": "attach"
5959
}
6060
]
61-
}
61+
}

src/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static async Task<int> Main(string[] args)
7373
{
7474
var message = ex switch
7575
{
76-
_ when ex is AuthenticationRequiredException => "Token acquisition failed. Run mgc login command first to get an access token.",
76+
_ when ex is AuthenticationRequiredException => "Token acquisition failed. Run mgc-beta login command first to get an access token.",
7777
_ when ex is TaskCanceledException => string.Empty,
7878
ODataError _e when ex is ODataError => $"Error {_e.ResponseStatusCode}({_e.Error?.Code}) from API:\n {_e.Error?.Message}",
7979
ApiException _e when ex is ApiException => $"Error {_e.ResponseStatusCode} from API.",

src/msgraph-cli-beta.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<ImplicitUsings>disable</ImplicitUsings>
88
<Nullable>enable</Nullable>
99
<AssemblyName>mgc-beta</AssemblyName>
10-
<Version>1.0.0-preview.1</Version>
10+
<Version>0.1.0-preview.1</Version>
1111
</PropertyGroup>
1212

1313
<PropertyGroup>

0 commit comments

Comments
 (0)