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

Commit 83f09cf

Browse files
committed
Fix issue with the beta api calling v1 endpoints
1 parent a3254b6 commit 83f09cf

File tree

3 files changed

+49
-49
lines changed

3 files changed

+49
-49
lines changed

src/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ static IHostBuilder CreateHostBuilder(string[] args) =>
150150
{
151151
GraphProductPrefix = "graph-cli",
152152
GraphServiceLibraryClientVersion = $"{assemblyVersion?.Major ?? 0}.{assemblyVersion?.Minor ?? 0}.{assemblyVersion?.Build ?? 0}",
153-
GraphServiceTargetVersion = "1.0"
153+
GraphServiceTargetVersion = "beta"
154154
};
155-
return GraphCliClientFactory.GetDefaultClient(options, loggingHandler: p.GetRequiredService<LoggingHandler>());
155+
return GraphCliClientFactory.GetDefaultClient(options, version: "beta", loggingHandler: p.GetRequiredService<LoggingHandler>());
156156
});
157157
services.AddSingleton<IAuthenticationProvider>(p =>
158158
{

src/msgraph-cli-beta.csproj

Lines changed: 2 additions & 2 deletions
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>0.1.0-preview.1</Version>
10+
<Version>0.1.1-preview.1</Version>
1111
</PropertyGroup>
1212

1313
<PropertyGroup>
@@ -26,7 +26,7 @@
2626
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
2727
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
2828
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
29-
<PackageReference Include="Microsoft.Graph.Cli.Core" Version="1.0.0-preview.1" />
29+
<PackageReference Include="Microsoft.Graph.Cli.Core" Version="1.0.0-preview.2" />
3030
<PackageReference Include="System.CommandLine.Hosting" Version="0.4.0-alpha.22272.1" />
3131
</ItemGroup>
3232
</Project>

src/packages.lock.json

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,17 @@
4141
},
4242
"Microsoft.Graph.Cli.Core": {
4343
"type": "Direct",
44-
"requested": "[1.0.0-preview.1, )",
45-
"resolved": "1.0.0-preview.1",
46-
"contentHash": "AEIEpWyJtgnKY/GsVjTGW5iXO481SqIXydgYCvJKtncgoNE0ImXoK33DCpZEJbL4WFinLfRyKAu0M9J82A8ovQ==",
44+
"requested": "[1.0.0-preview.2, )",
45+
"resolved": "1.0.0-preview.2",
46+
"contentHash": "1nPmDUPuad5W63m3iVY5C8AwIAeYURr5kXe64t3Y5MziueunUh4V0RcfKgR+wAFXY/e4NxDKWjrMc+wHE8PdEA==",
4747
"dependencies": {
4848
"Azure.Identity": "1.9.0",
4949
"JmesPath.Net": "1.0.308",
5050
"Microsoft.Extensions.Hosting": "7.0.1",
5151
"Microsoft.Extensions.Http": "7.0.0",
52-
"Microsoft.Graph.Core": "3.0.7",
52+
"Microsoft.Graph.Core": "3.0.9",
5353
"Microsoft.Kiota.Cli.Commons": "0.3.1-preview.1",
54-
"Microsoft.Kiota.Http.HttpClientLibrary": "1.0.4",
54+
"Microsoft.Kiota.Http.HttpClientLibrary": "1.0.6",
5555
"Spectre.Console": "0.47.0",
5656
"System.CommandLine": "2.0.0-beta4.22272.1"
5757
}
@@ -69,8 +69,8 @@
6969
},
7070
"Azure.Core": {
7171
"type": "Transitive",
72-
"resolved": "1.32.0",
73-
"contentHash": "NmnJxaNqKjPwnHXngVg63SrkwbJXrkT0mcK8uCx9rSq0nK6Q3Q+/GZRCaTWcdcECoRP5XK0lr3Ce8PZkHkuHNg==",
72+
"resolved": "1.33.0",
73+
"contentHash": "p06/5ueyCwKe09zqz7bPR6vbWRGrDy6Ot4aqjrjnowhFlXUBoljUdH+abDZP2vUuSZrOSstF4h860hBHWh8uHg==",
7474
"dependencies": {
7575
"Microsoft.Bcl.AsyncInterfaces": "1.1.1",
7676
"System.Diagnostics.DiagnosticSource": "4.6.0",
@@ -365,13 +365,13 @@
365365
},
366366
"Microsoft.Graph.Core": {
367367
"type": "Transitive",
368-
"resolved": "3.0.7",
369-
"contentHash": "MZHQdGhFOkBcSIarQ579gxvqHSFdrJOwskxhoAC35dVs6/H8Ol4HQP+Vh+kIUuViAI/O/hxiS0YDPeHhd9afzw==",
368+
"resolved": "3.0.9",
369+
"contentHash": "7qvVCvRlAjsgLgb6psFxb8N3pTLvzpffOOaKUez7u5tkO69nzUT0ofmQp5eyIQz/xxT4IXiB/CE1ycvYaalO5g==",
370370
"dependencies": {
371-
"Microsoft.IdentityModel.Protocols.OpenIdConnect": "6.30.1",
372-
"Microsoft.Kiota.Abstractions": "1.1.2",
373-
"Microsoft.Kiota.Authentication.Azure": "1.0.2",
374-
"Microsoft.Kiota.Http.HttpClientLibrary": "1.0.2",
371+
"Microsoft.IdentityModel.Protocols.OpenIdConnect": "6.31.0",
372+
"Microsoft.Kiota.Abstractions": "1.1.4",
373+
"Microsoft.Kiota.Authentication.Azure": "1.0.3",
374+
"Microsoft.Kiota.Http.HttpClientLibrary": "1.0.5",
375375
"Microsoft.Kiota.Serialization.Form": "1.0.1",
376376
"Microsoft.Kiota.Serialization.Json": "1.0.6",
377377
"Microsoft.Kiota.Serialization.Text": "1.0.1",
@@ -399,72 +399,72 @@
399399
},
400400
"Microsoft.IdentityModel.Abstractions": {
401401
"type": "Transitive",
402-
"resolved": "6.30.1",
403-
"contentHash": "1YVmnuYYz53M+KGa7HvZ+Vvqchwp97ngDk2I4QoiQi+HL7rpifvyaMyVMFhdlmoRlQcnSwJbNp7ulPctGnFfkQ=="
402+
"resolved": "6.31.0",
403+
"contentHash": "SBa2DGEZpMThT3ki6lOK5SwH+fotHddNBKH+pfqrlINnl999BreRS9G0QiLruwfmcTDnFr8xwmNjoGnPQqfZwg=="
404404
},
405405
"Microsoft.IdentityModel.JsonWebTokens": {
406406
"type": "Transitive",
407-
"resolved": "6.30.1",
408-
"contentHash": "H9o5zbuxfRKCEVULmxLCv1LTz1hmzaqG2Gk6X9Yq0QeJ1HeUQo1fwjaj+N1H55TQnZ8LNbmMdMCl/VqW3cJWvw==",
407+
"resolved": "6.31.0",
408+
"contentHash": "r0f4clrrlFApwSf2GRpS5X8hL54h1WUlZdq9ZoOy+cJOOqtNhhdfkfkqwxsTGCH/Ae7glOWNxykZzyRXpwcXVQ==",
409409
"dependencies": {
410-
"Microsoft.IdentityModel.Tokens": "6.30.1",
410+
"Microsoft.IdentityModel.Tokens": "6.31.0",
411411
"System.Text.Encoding": "4.3.0",
412412
"System.Text.Encodings.Web": "4.7.2",
413413
"System.Text.Json": "4.7.2"
414414
}
415415
},
416416
"Microsoft.IdentityModel.Logging": {
417417
"type": "Transitive",
418-
"resolved": "6.30.1",
419-
"contentHash": "zE6TG08T8MPZfkXqOWegvvIhKZRiYyj2xgr4QQuWyXypSGPyZrkBwJf5IXU4T3aIKqVfALSnAYCW/IqMaCY4gA==",
418+
"resolved": "6.31.0",
419+
"contentHash": "YzW5O27nTXxNgNKm+Pud7hXjUlDa2JshtRG+WftQvQIsBUpFA/WjhxG2uO8YanfXbb/IT9r8Cu/VdYkvZ3+9/g==",
420420
"dependencies": {
421-
"Microsoft.IdentityModel.Abstractions": "6.30.1"
421+
"Microsoft.IdentityModel.Abstractions": "6.31.0"
422422
}
423423
},
424424
"Microsoft.IdentityModel.Protocols": {
425425
"type": "Transitive",
426-
"resolved": "6.30.1",
427-
"contentHash": "jGmIsLKfgZC6p/oNZVt/OOl5hubV299x0cUFkQ7mDTb9G1kr5neuvgdohKKSGIEjec3Y4HMAb1sMX41OnIfRIA==",
426+
"resolved": "6.31.0",
427+
"contentHash": "Z6Vl3KKfVzfSunuNOk9juXxYWVhYVaWOt75xhN+TklDBMbwSoy0Go/4tnxp5A2XoTQVkoWY47p+X0MuMa8G12w==",
428428
"dependencies": {
429-
"Microsoft.IdentityModel.Logging": "6.30.1",
430-
"Microsoft.IdentityModel.Tokens": "6.30.1"
429+
"Microsoft.IdentityModel.Logging": "6.31.0",
430+
"Microsoft.IdentityModel.Tokens": "6.31.0"
431431
}
432432
},
433433
"Microsoft.IdentityModel.Protocols.OpenIdConnect": {
434434
"type": "Transitive",
435-
"resolved": "6.30.1",
436-
"contentHash": "Ps5Yy9HVEHkzRP0qjWO+Bmm45/EZ0TvMfQEKrbhFF+kspEZWAvoqVgnYZf21aqrr7kTXG9KH3CgyIcJPonhO2g==",
435+
"resolved": "6.31.0",
436+
"contentHash": "jSYqhKYhR7oU7qmnnMjkPsbjgZ7jQFee8z69K4VwEFXBrfy9wl57n/i1r1olzTwaxb1eRKye5GpdxwFfzJYjfA==",
437437
"dependencies": {
438-
"Microsoft.IdentityModel.Protocols": "6.30.1",
439-
"System.IdentityModel.Tokens.Jwt": "6.30.1"
438+
"Microsoft.IdentityModel.Protocols": "6.31.0",
439+
"System.IdentityModel.Tokens.Jwt": "6.31.0"
440440
}
441441
},
442442
"Microsoft.IdentityModel.Tokens": {
443443
"type": "Transitive",
444-
"resolved": "6.30.1",
445-
"contentHash": "iLEwF/zEopanfMQcIcq190S/bBjSj3v6UfqN37KqRqsKB9kkm3/tYCrIQOtvLKbEe/znQXC6HoQhknDTszPz2Q==",
444+
"resolved": "6.31.0",
445+
"contentHash": "Q1Ej/OAiqi5b/eB8Ozo5FnQ6vlxjgiomnWWenDi2k7+XqhkA2d5TotGtNXpWcWiGmrotNA/o8p51YesnziA0Sw==",
446446
"dependencies": {
447447
"Microsoft.CSharp": "4.5.0",
448-
"Microsoft.IdentityModel.Logging": "6.30.1",
448+
"Microsoft.IdentityModel.Logging": "6.31.0",
449449
"System.Security.Cryptography.Cng": "4.5.0"
450450
}
451451
},
452452
"Microsoft.Kiota.Abstractions": {
453453
"type": "Transitive",
454-
"resolved": "1.1.3",
455-
"contentHash": "KuI2IHOiU6eE0e1b5naICkV0uR18H8cCORCxayRtJvytBx+5yPORIHawyWu9t1g9yzCt1HhF/4vMbrVEWbqdow==",
454+
"resolved": "1.2.1",
455+
"contentHash": "yydlj/tebHpUFPrRTiQbLlAo0Ow+2zxGC+cC4Cxwy/qzbUlfi26ImM8u7hu4UPJsmUkh5m8zOZ+2L6jY7ML7bQ==",
456456
"dependencies": {
457457
"System.Diagnostics.DiagnosticSource": "[6.0.0, 8.0.0)",
458458
"Tavis.UriTemplates": "2.0.0"
459459
}
460460
},
461461
"Microsoft.Kiota.Authentication.Azure": {
462462
"type": "Transitive",
463-
"resolved": "1.0.2",
464-
"contentHash": "71ypENz5SzFdTETt8ydvyKGw6HsId8Ey/B0Ij1uc4CMQ1OI+v8ukzW6BBPeUXbhj5qEEBW41/aVQ1AxK+vn8fg==",
463+
"resolved": "1.0.3",
464+
"contentHash": "jRnYE73KVDsFYwxUgG53S+3rWx/1R/zsoMhJJoj7Q7dnNUuuUt9KXff8OJ8/DWDYVj0GXB0N67yfY+AfAr6XzA==",
465465
"dependencies": {
466-
"Azure.Core": "1.30.0",
467-
"Microsoft.Kiota.Abstractions": "1.1.0",
466+
"Azure.Core": "1.33.0",
467+
"Microsoft.Kiota.Abstractions": "1.1.4",
468468
"System.Diagnostics.DiagnosticSource": "[6.0.0, 8.0.0)"
469469
}
470470
},
@@ -482,10 +482,10 @@
482482
},
483483
"Microsoft.Kiota.Http.HttpClientLibrary": {
484484
"type": "Transitive",
485-
"resolved": "1.0.4",
486-
"contentHash": "oUaJJ2ISPGa5fcX6O/M8KZYhmM3KJqf5G4VDE7gC4kr31lxPaoOnBlTcFllOcxVD9Nv5emcDT/MFPsLQ/2wYcg==",
485+
"resolved": "1.0.6",
486+
"contentHash": "iWfcrXSROJcab4q5qRTcn1f5O5UDZQd1CRwFyOXiVaxk2/kMvSmWYM3Xjuv4cMcYTvM55dbmA1YWXlntW88m2w==",
487487
"dependencies": {
488-
"Microsoft.Kiota.Abstractions": "1.1.3",
488+
"Microsoft.Kiota.Abstractions": "1.2.1",
489489
"System.Diagnostics.DiagnosticSource": "[6.0.0, 8.0.0)",
490490
"System.Text.Json": "[6.0.0, 8.0.0)"
491491
}
@@ -607,11 +607,11 @@
607607
},
608608
"System.IdentityModel.Tokens.Jwt": {
609609
"type": "Transitive",
610-
"resolved": "6.30.1",
611-
"contentHash": "THhcemCnzUJnrCojmNmafJGluAmfumVFT18oSPa+epEfVuiXXdmitu7UvmayMq6FrBJKrZzHdVfh7CXg+uvBPQ==",
610+
"resolved": "6.31.0",
611+
"contentHash": "OTlLhhNHODxZvqst0ku8VbIdYNKi25SyM6/VdbpNUe6aItaecVRPtURGvpcQpzltr9H0wy+ycAqBqLUI4SBtaQ==",
612612
"dependencies": {
613-
"Microsoft.IdentityModel.JsonWebTokens": "6.30.1",
614-
"Microsoft.IdentityModel.Tokens": "6.30.1"
613+
"Microsoft.IdentityModel.JsonWebTokens": "6.31.0",
614+
"Microsoft.IdentityModel.Tokens": "6.31.0"
615615
}
616616
},
617617
"System.IO": {

0 commit comments

Comments
 (0)