-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Generating SDK for websites #4688
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
Conversation
NuGet.Config
Outdated
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 undo these changes
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 pull latest changes from remote and run msbuild build.proj and regenerate the code
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.
Looks like the API version is being bumped. Please bump the major version here
Also update the PackageReleaseNotes and AssemblyInfo.cs accordingly
|
@panchagnula also fix the CI build failures |
f04bf28 to
cbeaded
Compare
|
@dsgouda - feedback addressed |
dsgouda
left a comment
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.
It looks like the REST API version is stable, is there a reason you wish to publish preview Nuget packages.
We generally recommend publishing stable Nuget packages for stable REST API versions
| @@ -19,5 +19,8 @@ | |||
|
|
|||
| <!-- Please do not move/edit code below this line --> | |||
| <Import Condition=" Exists('$([MSBuild]::GetPathOfFileAbove(AzSdk.RP.props))') " Project="$([MSBuild]::GetPathOfFileAbove('AzSdk.RP.props'))" /> | |||
| <ItemGroup> | |||
| <PackageReference Update="Microsoft.Rest.ClientRuntime.Azure" Version="3.3.15" /> | |||
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 remove this
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.
@dsgouda had to add this due to a bug in .NET SDK with provisioning state polling code . see the email below for details
@shahabhijeet as FYI as well.
Can you update to the latest version of Microsoft.Rest.ClientRuntime.Azure and that should do the fix for that particular error.
Abhijeet
From: Nicholas King
Sent: Wednesday, August 22, 2018 3:43 PM
To: Abhijeet Shah
Hi Abhijeet,
Sisira and I are working on updating the Web Apps SDK right now, and we’ve gotten stuck recording some of our tests. I dug through the code and noticed you’ve been working on the provisioning state polling code. Hopefully you’ll be able to help us out.
We have a test that creates an AppServicePlan (a.k.a. ServerFarm internally), then updates the AppServicePlan. Both creating and updating are done with PUT requests to the same URL. When creating the AppServicePlan the response contains provisioningState: Succeeded, but when updating it, the response contains provisioningState: null. The internal SDK Client is throwing an exception “Provisioning state is missing from long running operation.”
I attached a recording of the failing test. My main question for now is, is there an issue with how our API currently works, or is the problem fixable inside the .NET SDK?
Thanks
Nick
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.
Thanks for confirming. We need to take a look at this and decide if we can allow a one off here or if we are ready to move our ClientRuntime dependency to the latest version for all sdks.
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.
@panchagnula Please revert this change, we are planning to bump the version dependency for all SDKs across the repo, will merge this PR once that is done.
| @@ -9,7 +9,7 @@ | |||
| [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure Web Sites.")] | |||
|
|
|||
| [assembly: AssemblyVersion("1.0.0")] | |||
| [assembly: AssemblyFileVersion("1.8.0")] | |||
| [assembly: AssemblyFileVersion("1.9.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.
Since you are bumping the major version, both AssemblyFileVersion and AssemblyVersion must be bumped to 2.0.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.
will do.
|
@dsgouda regarding "is there a reason you wish to publish preview Nuget packages. |
|
Will wait from an approval from @naveedaz regarding SDK Nuget versioning |
|
Updating to non preview version should be fine. |
|
@dsgouda , the related rest-api-specs change got merged, please let me know if this is ready to be published as well or if you need anything else from our end. Thank you. |
|
@panchagnula Will address/merge this today |
|
Waiting on clientruntime dependencies to bumped across the repo |
Description
New .NET SDK generated for Websites extension.
Swagger PR Azure/azure-rest-api-specs#3692
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
*.csprojandAssemblyInfo.csfiles have been updated with the new version of the SDK.