Skip to content

Commit d93297d

Browse files
Fix the IncludeAutorestDependency flag missing issue (#5422)
1 parent 6d20abf commit d93297d

File tree

40 files changed

+41
-0
lines changed

40 files changed

+41
-0
lines changed

samples/AzureSample.ResourceManager.Sample/src/AzureSample.ResourceManager.Sample.csproj

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

samples/AzureSample.ResourceManager.Storage/src/AzureSample.ResourceManager.Storage.csproj

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

src/AutoRest.CSharp/Common/AutoRest/Plugins/NewProjectScaffolding.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ private string GetBrandedSrcCSProj()
150150
PackageTags = !Configuration.AzureArm ? Configuration.Namespace : $"azure;management;arm;resource manager;{Configuration.Namespace.Split('.').Last().ToLower()}",
151151
TargetFrameworks = !Configuration.AzureArm ? new CSProjProperty("$(RequiredTargetFrameworks)") : null,
152152
IncludeOperationsSharedSource = !Configuration.AzureArm ? new CSProjProperty("true") : null,
153+
IncludeAutorestDependency = Configuration.AzureArm ? new CSProjProperty("true") : null,
153154
};
154155
if (Configuration.AzureArm)
155156
{

src/AutoRest.CSharp/Common/Generation/Writers/CSProjWriter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public CSProjWriter()
4747

4848
public CSProjProperty? IncludeGeneratorSharedCode { get; init; }
4949

50+
public CSProjProperty? IncludeAutorestDependency { get; init; }
51+
5052
public CSProjProperty? DefineConstants { get; init; }
5153

5254
public CSProjProperty? RestoreAdditionalProjectSources { get; init; }

test/CadlRanchProjects/azure/resource-manager/common-properties/src/_Azure.ResourceManager.CommonProperties.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<Description>Azure Resource Manager client SDK for Azure resource provider CommonProperties.</Description>
44
<Version>1.0.0-beta.1</Version>
55
<PackageTags>azure;management;arm;resource manager;commonproperties</PackageTags>
6+
<IncludeAutorestDependency>true</IncludeAutorestDependency>
67
<PackageId>_Azure.ResourceManager.CommonProperties</PackageId>
78
</PropertyGroup>
89
</Project>

test/CadlRanchProjects/azure/resource-manager/non-resource/src/_Azure.ResourceManager.NonResources.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<Description>Azure Resource Manager client SDK for Azure resource provider NonResources.</Description>
44
<Version>1.0.0-beta.1</Version>
55
<PackageTags>azure;management;arm;resource manager;nonresources</PackageTags>
6+
<IncludeAutorestDependency>true</IncludeAutorestDependency>
67
<PackageId>_Azure.ResourceManager.NonResources</PackageId>
78
</PropertyGroup>
89
</Project>

test/CadlRanchProjects/azure/resource-manager/resources/src/_Azure.ResourceManager.Resources.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<Description>Azure Resource Manager client SDK for Azure resource provider Resources.</Description>
44
<Version>1.0.0-beta.1</Version>
55
<PackageTags>azure;management;arm;resource manager;resources</PackageTags>
6+
<IncludeAutorestDependency>true</IncludeAutorestDependency>
67
<PackageId>_Azure.ResourceManager.Resources</PackageId>
78
</PropertyGroup>
89
</Project>

test/TestProjects/MgmtAcronymMapping/src/MgmtAcronymMapping.csproj

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

test/TestProjects/MgmtCollectionParent/src/MgmtCollectionParent.csproj

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

test/TestProjects/MgmtConstants/src/MgmtConstants.csproj

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

0 commit comments

Comments
 (0)