Skip to content

Commit 074a031

Browse files
Bump to latest MTG (Azure#50464)
* Bump to latest MTG * Fix unit test * Bump dep
1 parent 98b9107 commit 074a031

File tree

113 files changed

+14
-564
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+14
-564
lines changed

eng/Packages.Data.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@
442442

443443
<PropertyGroup>
444444
<TestProxyVersion>1.0.0-dev.20250501.1</TestProxyVersion>
445-
<UnbrandedGeneratorVersion>1.0.0-alpha.20250604.3</UnbrandedGeneratorVersion>
445+
<UnbrandedGeneratorVersion>1.0.0-alpha.20250606.4</UnbrandedGeneratorVersion>
446446
<AzureGeneratorVersion>1.0.0-alpha.20250527.2</AzureGeneratorVersion>
447447
</PropertyGroup>
448448
</Project>

eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/NewAzureProjectScaffolding.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected override string GetSourceProjectFileContent()
4040
int pathSegmentCount = GetPathSegmentCount();
4141
if (AzureClientGenerator.Instance.InputLibrary.InputNamespace.Auth?.ApiKey is not null)
4242
{
43-
builder.CompileIncludes.Add(new CSharpProjectWriter.CSProjCompileInclude(GetCompileInclude("AzureKeyCredentialPolicy.cs", pathSegmentCount), SharedSourceLinkBase));
43+
builder.CompileIncludes.Add(new CSharpProjectCompileInclude(GetCompileInclude("AzureKeyCredentialPolicy.cs", pathSegmentCount), SharedSourceLinkBase));
4444
}
4545

4646
bool hasOperation = false;
@@ -54,15 +54,15 @@ protected override string GetSourceProjectFileContent()
5454
{
5555
foreach (var file in _operationSharedFiles)
5656
{
57-
builder.CompileIncludes.Add(new CSharpProjectWriter.CSProjCompileInclude(GetCompileInclude(file, pathSegmentCount), SharedSourceLinkBase));
57+
builder.CompileIncludes.Add(new CSharpProjectCompileInclude(GetCompileInclude(file, pathSegmentCount), SharedSourceLinkBase));
5858
}
5959
}
6060

6161
if (hasLongRunningOperation)
6262
{
6363
foreach (var file in _lroSharedFiles)
6464
{
65-
builder.CompileIncludes.Add(new CSharpProjectWriter.CSProjCompileInclude(GetCompileInclude(file, pathSegmentCount), SharedSourceLinkBase));
65+
builder.CompileIncludes.Add(new CSharpProjectCompileInclude(GetCompileInclude(file, pathSegmentCount), SharedSourceLinkBase));
6666
}
6767
}
6868

eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/ModelFactoryVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal class ModelFactoryVisitor : ScmLibraryVisitor
1313
{
1414
if (type is ModelFactoryProvider && type.CustomCodeView == null)
1515
{
16-
type.Type.Update(name: $"{TypeNameUtilities.GetResourceProviderName()}ModelFactory");
16+
type.Update(name: $"{TypeNameUtilities.GetResourceProviderName()}ModelFactory");
1717
}
1818

1919
return type;

eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/NamespaceVisitor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private static void UpdateModelsNamespace(TypeProvider type)
5454
{
5555
if (AzureClientGenerator.Instance.Configuration.UseModelNamespace())
5656
{
57-
type.Type.Update(
57+
type.Update(
5858
@namespace: AzureClientGenerator.Instance.TypeFactory.GetCleanNameSpace(
5959
$"{AzureClientGenerator.Instance.TypeFactory.PrimaryNamespace}.Models"));
6060
}

eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/LroVisitorTests.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,11 @@ public void UpdatesExplicitOperatorToUseResultSegment()
136136
InputPrimitiveType.String,
137137
kind: InputParameterKind.Method)
138138
];
139+
var responseModel = InputFactory.Model("foo");
139140
var lro = InputFactory.Operation(
140141
"foo",
141-
parameters: parameters);
142-
var responseModel = InputFactory.Model("foo");
142+
parameters: parameters,
143+
responses: [InputFactory.OperationResponse(bodytype: responseModel)]);
143144
var lroServiceMethod = InputFactory.LongRunningServiceMethod(
144145
"foo",
145146
lro,

eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenHeaderResponseResponse.Serialization.cs

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenResponse.Serialization.cs

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithNextLinkResponse.Serialization.cs

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ModelWithRequiredNullableProperties.Serialization.cs

Lines changed: 0 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/PageThingModel.Serialization.cs

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)