Adding first version of Edge gateway sdk and tests#5250
Adding first version of Edge gateway sdk and tests#5250dsgouda merged 7 commits intoAzure:masterfrom anponnet:edgegatewaysdk
Conversation
| <Import Condition=" Exists('$([MSBuild]::GetPathOfFileAbove(AzSdk.test.reference.props))') " Project="$([MSBuild]::GetPathOfFileAbove('AzSdk.test.reference.props'))" /> | ||
| <!-- Please do not move/edit code below this line --> | ||
| <PropertyGroup> | ||
| <PackageId>Foo</PackageId> |
There was a problem hiding this comment.
Please rename this to EdgeGateway.Tests
There was a problem hiding this comment.
Corrected using generate.ps1. Swagger was taken from the fork. https://github.com/anponnet/azure-rest-api-specs/tree/version20190301
| <!-- Please do not move/edit code below this line --> | ||
| <PropertyGroup> | ||
| <PackageId>Foo</PackageId> | ||
| <VersionPrefix>1.0.0-preview</VersionPrefix> |
There was a problem hiding this comment.
Please replace this with <Version>1.0.0</Version>
| <PropertyGroup> | ||
| <PackageId>Foo</PackageId> | ||
| <VersionPrefix>1.0.0-preview</VersionPrefix> | ||
| <AssemblyName>Foo</AssemblyName> |
There was a problem hiding this comment.
Please update the AssemblyName
| <PackageId>Foo</PackageId> | ||
| <VersionPrefix>1.0.0-preview</VersionPrefix> | ||
| <AssemblyName>Foo</AssemblyName> | ||
| <Description>BatchAI.Tests;</Description> |
| <PackageId>Foo</PackageId> | ||
| <VersionPrefix>1.0.0-preview</VersionPrefix> | ||
| <AssemblyName>Foo</AssemblyName> | ||
| <Description>BatchAI.Tests;</Description> |
There was a problem hiding this comment.
Please add the line
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
And fix errors if any
| <PackageId>Microsoft.Azure.Management.EdgeGateway</PackageId> | ||
| <Description>Microsoft Azure Management EdgeGateway library</Description> | ||
| <AssemblyName>Microsoft.Azure.Management.EdgeGateway</AssemblyName> | ||
| <Version>1.0.0</Version> |
There was a problem hiding this comment.
We recommend starting versioning from 0.9.0-preview before releasing a stable version. Please confirm whether you are ready to release a stable version of the SDK?
There was a problem hiding this comment.
Changed to 0.9.0-preview. May be we will release first version after 1-2 weeks
| This is a public release of the Azure EdgeGateway SDK. | ||
| ]]> | ||
| </PackageReleaseNotes> | ||
| <NoWarn>$(NoWarn);CS1591</NoWarn> |
There was a problem hiding this comment.
Any reason why this was added?
dsgouda
left a comment
There was a problem hiding this comment.
Please add AssemblyInfo.cs files for Test and Sdk projects.
|
@dsgouda I am part of azure org |
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net452;netstandard1.4</TargetFrameworks> |
There was a problem hiding this comment.
Please replace this with <TargetFrameworks>$(SdkTargetFx)</TargetFrameworks>
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net452;netstandard1.4</TargetFrameworks> | ||
| <RootNamespace>Microsoft.Azure.Management.EdgeGateway</RootNamespace> |
There was a problem hiding this comment.
Don't think this line is needed
|
|
||
| <!-- Please do not move/edit code below this line --> | ||
| <Import Condition=" Exists('$([MSBuild]::GetPathOfFileAbove(AzSdk.RP.props))') " Project="$([MSBuild]::GetPathOfFileAbove('AzSdk.RP.props'))" /> | ||
| <ItemGroup> |
There was a problem hiding this comment.
Please remove this ItemGroup
| [assembly: AssemblyTitle("Microsoft Azure DataBox Edge Gateway Management Library")] | ||
| [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure DataBox Edge Gateway Management Resources.")] | ||
|
|
||
| [assembly: AssemblyVersion("1.0.0.0")] |
There was a problem hiding this comment.
AssemblyVersion must also be 0.9.0.0
| @@ -1 +1,2 @@ | |||
| Start-AutoRestCodeGeneration -ResourceProvider "storSimple1200Series\resource-manager" -AutoRestVersion "latest" -SdkGenerationDirectory�"$PSScriptRoot\Generated" | |||
|
|
|||
There was a problem hiding this comment.
Please undo changes to this file
| </PropertyGroup> | ||
| <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp2.0|AnyCPU'"> | ||
| <TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
| <WarningsAsErrors /> |
| <ItemGroup> | ||
| <Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> | ||
| </ItemGroup> | ||
| <ItemGroup> |
There was a problem hiding this comment.
Please use a regex like SessionRecords\**\*.json instead
dsgouda
left a comment
There was a problem hiding this comment.
Looks great apart from a couple of minor corrections
|
|
||
| [assembly: AssemblyVersion("1.0.0.0")] | ||
| [assembly: AssemblyVersion("0.9.0.0")] | ||
| [assembly: AssemblyFileVersion("1.0.0.0")] |
There was a problem hiding this comment.
Please fix AssemblyFileVersion too.
| [assembly: AssemblyDescription("Provides management functionality for Microsoft Azure DataBox Edge Gateway Management Resources.")] | ||
|
|
||
| [assembly: AssemblyVersion("1.0.0.0")] | ||
| [assembly: AssemblyVersion("0.9.0.0")] |
There was a problem hiding this comment.
I probably misspoke earlier, we start versioning for new packages from 0.8.0-preview
Please update the csproj and this file to set all versions to 0.8.0 (-preview in the csproj)
dsgouda
left a comment
There was a problem hiding this comment.
Also, please rename the directory Microsoft.Azure.Management.EdgeGateway to Management.EdgeGateway for consistency
dsgouda
left a comment
There was a problem hiding this comment.
Approving in principle, will merge once Rest spec is merged and code is regenerated
dsgouda
left a comment
There was a problem hiding this comment.
Please remove the $(SdkTargetFx) file
@dsgouda I did not understand the comment. Should I remove generate.ps1 file? |
|
@dsgouda : Rest spec is merged and code is regenerated |
|
@azuresdkci Test this please |
|
@anponnet please note that we have switched our base branch to master. That was the problem here. |
dsgouda
left a comment
There was a problem hiding this comment.
Please delete the file $(SdkTargetFx)
| <PropertyGroup> | ||
| <TargetFrameworks>netcoreapp2.0</TargetFrameworks> | ||
| </PropertyGroup> | ||
| <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netcoreapp2.0|AnyCPU'"> |
There was a problem hiding this comment.
Please remove these conditions
| <!-- Please do not move/edit code below this line --> | ||
| <PropertyGroup> | ||
| <PackageId>EdgeGateway.Tests</PackageId> | ||
| <VersionPrefix>1.0.0</VersionPrefix> |
There was a problem hiding this comment.
Please replace VersionPrefix with Version
| <PackageTags>Microsoft Azure EdgeGateway management;EdgeGateway;EdgeGateway management;</PackageTags> | ||
| <PackageReleaseNotes> | ||
| <![CDATA[ | ||
| This is a public release of the Azure EdgeGateway SDK. |
There was a problem hiding this comment.
nit: "public preview release"
dsgouda
left a comment
There was a problem hiding this comment.
LGTM will merge once CIs pass
* Adding first version of Edge gateway sdk and tests * Fixing PR comments - Project property corrections, add assemblyinfo, use generate.ps1 * Fix PR comments - assemblyinfo, assemblyversion, unnecassary properties in proj files * PR comment fixes: Target framework, folder structure * Updated device updates test case * Regenerated client code with generate.ps1 pointing to azure master rest spec * PR Comments: project property fixes, rerun tests
Description
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.