-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regenearte Cognitive Services Mgmt. SDK with latest Spec and AutoRest (targeting release as 2.1) #3909
Conversation
Regenerate using the latest AutoRest Reversion to 2.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link the spec PR.
Also use generate.cmd to generated sdk, this will create a meta data file (.txt)
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFrameworks>net452;netstandard1.4</TargetFrameworks> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Compile Remove="Properties\AssemblyInfo.cs" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felixwa please remove from line 17 to 19
also remove line 24 to 27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahabhijeet , I'm seeing CS0579 if AssemblyInfo.cs is included.
obj\Debug\netstandard1.4\Microsoft.Azure.Management.CognitiveServices.AssemblyInfo.cs(14,12,14,54): error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute
Can you please tell me how to mitigate this error? Should I add GenerateAssemblyInfo = false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I talked to @DavidLiCIG and he said we can remove this AssemblyInfo.cs file so I removed it.
@@ -10,6 +10,9 @@ | |||
<PropertyGroup> | |||
<TargetFrameworks>netcoreapp1.1</TargetFrameworks> | |||
</PropertyGroup> | |||
<ItemGroup> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felixwa please remove line 13 to 15 and line 35 to 38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove and also removed AssemblyInfo.cs
Spec PR: Azure/azure-rest-api-specs#1981 |
The changes were generated generate.cmd. I also fixed a folder structure issue in generate.cmd in this PR. |
Remove AssemblyInfo.cs file
Remove Properties folder in test proj
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing meta data file when generated using generate.cmd.
Any reason AssemblyInfo.cs was deleted.
<AssemblyName>Microsoft.Azure.Management.CognitiveServices</AssemblyName> | ||
<PackageTags>Microsoft Azure Cognitive Services management;Cognitive Services;Cognitive Services management</PackageTags> | ||
<PackageReleaseNotes/> | ||
<PackageReleaseNotes /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add package release notes to specify what is new in this release.
</PropertyGroup> | ||
<PropertyGroup> | ||
<TargetFrameworks>net452;netstandard1.4</TargetFrameworks> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Content Include="notice.txt" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felixwa please remove this item group as it's not needed to specify explicitly about directory structure.
Makes the project xml unnecessarily large.
1. add metradata file. 2. regenerate SDK by fixing folder structure PR.
2017-12-07 03:31:20 UTC | ||
|
||
1) azure-rest-api-specs repository information | ||
GitHub user: felixwa |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahabhijeet , I know this is generated by my own fork. Please take a look at this PR:Azure/azure-rest-api-specs#2103. After that PR is approved and merged I will regenerate.
@shahabhijeet , the reason I removed AssemblyInfo.cs is because it generates compiler error CS0579 obj\Debug\netstandard1.4\Microsoft.Azure.Management.CognitiveServices.AssemblyInfo.cs(14,12,14,54): error CS0579: Duplicate 'System.Reflection.AssemblyCompanyAttribute' attribute |
Add PackageReleaseNotes
@felixwa if you simply do |
This reverts commit 8f5f8a9.
Run msbuild to update build tools
Revert CognitiveServices.Tests.csproj
Resolve conflicts.
Revert indents in CogntiiveServices.csproj so that change scope looks smaller.
…-sdk-for-net into Regenearte-SDK-2.1
Correct previous commit
Correct indents
Correct indents
@shahabhijeet , now AssemblyInfo.cs is back and conflict is resolved. I also changed AssemblyVersion and AssemblyFileVersion to 2.1. Please continue your review. |
Change Assembly version to 2.1.0.0 Make ReleaseNotes one line.
Remove AzSdk.RP.props file as seems like it should be not commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Spec PR is merged. Please do the following:
- Pull latest from upstream
- Regenerate your SDK
- Msbuild build.proj to get the latest build tools
- Build you sdk from command line or IDE
- Create/update this PR.
@@ -7,8 +7,8 @@ | |||
[assembly: AssemblyTitle("Microsoft Azure Cognitive Services Management Library")] | |||
[assembly: AssemblyDescription("Provides Microsoft Azure Cognitive Services management functions for managing Microsoft Azure Cognitive Services accounts.")] | |||
|
|||
[assembly: AssemblyVersion("2.0.0.0")] | |||
[assembly: AssemblyFileVersion("2.0.0.0")] | |||
[assembly: AssemblyVersion("2.1.0.0")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@felixwa please do not update AssemblyVersion when you change the minor version of AssemblyFileVersion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shahabhijeet , please note there is a breaking change here (provisionState is changed to string from enum), why do not increase AssemblyVersion in this case?
Regenerated against latest spec.
Regenerate SDK again as shahabhijeet requested
Bump version to 3.0.0.0 as there is a breaking change
Add AzSdk.RP.props
Description
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
*.csproj
andAssemblyInfo.cs
files have been updated with the new version of the SDK.