Adding Cognitive Services Data Plane Vision+Language SDK#3604
Adding Cognitive Services Data Plane Vision+Language SDK#3604shahabhijeet merged 24 commits intoAzure:psSdkJson6from
Conversation
|
@DavidLiCIG, |
|
@DavidLiCIG seems tests are failing on CI |
| @@ -0,0 +1,43 @@ | |||
| <Project Sdk="Microsoft.NET.Sdk"> | |||
There was a problem hiding this comment.
@DavidLiCIG can you model your test project by looking at other tests.
| using System.Net.Http; | ||
| using System.Runtime.CompilerServices; | ||
|
|
||
| namespace Microsoft.CognitiveServices.Language.Tests |
There was a problem hiding this comment.
Shouldn't the namespace be Microsoft.CognitiveServices.Language.TextAnalytics.Tests? To better match the namespace of the actual API?
| })); | ||
|
|
||
| Assert.Equal("English", result.Documents[0].DetectedLanguages[0].Name); | ||
| Assert.Equal("en", result.Documents[0].DetectedLanguages[0].Iso6391Name); |
There was a problem hiding this comment.
Also worth adding an assert for the score
shahabhijeet
left a comment
There was a problem hiding this comment.
@DavidLiCIG travis changes have been pushed.
Please address the feedback and this PR is good to be merged
| @@ -0,0 +1,28 @@ | |||
| using Microsoft.CognitiveServices.Language.TextAnalytics; | |||
There was a problem hiding this comment.
@DavidLiCIG we have certain directory structure that is being used throughout the repo.
- One being, if you have management and data plane the directories should be structured as
SDKs\CognitiveServices\management
SDKs\CognitiveServices\dataPlane
we rely on particular names to build and run tests during CI build.
Please change the directory structure accordingly.
|
|
||
| <PropertyGroup> | ||
| <TargetFrameworks>net452;netstandard1.4</TargetFrameworks> | ||
| <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
There was a problem hiding this comment.
@DavidLiCIG please remove GeneratePackageOnBuild, we have specific targets to build pacakges.
The target that we use is /t:CreateNugetPackage to create nuget packages, having it part of build system hampers the CI perf.
| <PropertyGroup> | ||
| <TargetFrameworks>net452;netstandard1.4</TargetFrameworks> | ||
| <GeneratePackageOnBuild>True</GeneratePackageOnBuild> | ||
| <PackageReleaseNotes>For detailed release notes, see: </PackageReleaseNotes> |
There was a problem hiding this comment.
< packagereleasenotes > should be included on the top PropertyGroup where you have PackageId and version defined.
move it under right propertygroup.
| <PackageReleaseNotes>For detailed release notes, see: </PackageReleaseNotes> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup Condition=" '$(TargetFramework)'=='net452' "> |
There was a problem hiding this comment.
@DavidLiCIG remove line 20 to 32.
All these are already included for your projects.
Also we no longer use PORTABLE compiler constant in the entire repo. We have few traces of those constants being used in couple of RPs which are on track to be removed.
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <None Update="TestImages\detection1.jpg"> |
There was a problem hiding this comment.
@DavidLiCIG combine items in Itemgroup starting line 27 to be part of ItemGroup starting line 17
Please organize items in limited item groups especially if they logically belong to same category
| <PackageReleaseNotes>For detailed release notes, see: </PackageReleaseNotes> | ||
| </PropertyGroup> | ||
|
|
||
| <PropertyGroup Condition=" '$(TargetFramework)'=='net452' "> |
There was a problem hiding this comment.
@DavidLiCIG please format project file according to the feedback given to the language project
| @@ -0,0 +1,10 @@ | |||
| <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||
|
@shahabhijeet Thanks. All feedbacks are addressed |
shahabhijeet
left a comment
There was a problem hiding this comment.
Forgot to mention earlier.
add < PackageReleaseNotes > and add Release notes.
I would recommend to use < ![CDATA and then format your Release notes
shahabhijeet
left a comment
There was a problem hiding this comment.
Did not see AssemblyInfo for individual SDKs which has AssemblyVersion and AssemblyFileVersion.
If you are missing you need those files.
| <PropertyGroup> | ||
| <PackageId>Microsoft.CognitiveServices.Language</PackageId> | ||
| <Description>This client library provides access to the Microsoft Cognitive Services Language APIs.</Description> | ||
| <VersionPrefix>1.0.0</VersionPrefix> |
There was a problem hiding this comment.
@DavidLiCIG if this is a preview release, I still see your SDK nuget is not marked as preview
the version should 1.0.0-preview
| <TargetFrameworks>net452;netstandard1.4</TargetFrameworks> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> |
There was a problem hiding this comment.
@DavidLigCIG please remove this redundant ItemGroup, this is not needed
| <PropertyGroup> | ||
| <PackageId>Microsoft.CognitiveServices.Vision</PackageId> | ||
| <Description>This client library provides access to the Microsoft Cognitive Services Vision APIs.</Description> | ||
| <VersionPrefix>1.0.0</VersionPrefix> |
There was a problem hiding this comment.
@DavidLiCIG please mark this version as preview if this is a preview release. Release notes say this is preview but the version is not marked accordingly.
Developers who will be downloading from nuget will be confused what is the case, is it preview or not.
| <TargetFrameworks>net452;netstandard1.4</TargetFrameworks> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup Condition=" '$(TargetFramework)' == 'net452' "> |
There was a problem hiding this comment.
Remove the Itemgroup as it's not needed.
| <AssemblyName>Microsoft.CognitiveServices.Language</AssemblyName> | ||
| <PackageTags>Microsoft Cognitive Services;Cognitive Services;Cognitive Services SDK;Text Analytics API;Text Analytics;REST HTTP client;netcore451511</PackageTags> | ||
| <PackageReleaseNotes>This is a preview release of the Cognitive Services Language SDK. Included with this release is support for Text Analytics API.</PackageReleaseNotes> | ||
| <DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> |
There was a problem hiding this comment.
@DavidLiCIG generating documentation property is already applicable for the SDKs, this is again redundant, please remove
| <AssemblyName>Microsoft.CognitiveServices.Vision</AssemblyName> | ||
| <PackageTags>Microsoft Cognitive Services;Cognitive Services;Cognitive Services SDK;Face API;REST HTTP client;Face SDK;netcore451511</PackageTags> | ||
| <PackageReleaseNotes>This is a preview release of the Cognitive Services Vision SDK. Included with this release is support for Face API.</PackageReleaseNotes> | ||
| <DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> |
* Adding Vision SDK. * Add Text Analytics SDK. * Adding Vision * Removing key. * Removing unneeded files * Removing key. * Hooking up Cognitive SDKs with build. * Updating Swagger spec. * Fix build * Moving files around and adding sub namespace for TA. * Moving managemenet and dataplane folders into their respective folders. * Updating csproj and files based on comments. * Simplifying csprojects * Move to temp directory * Move back to dataPlane with right casing * Move to dataPlane directory * Fixing presumptive OS specific path convention. * Adding Assembly.Info for Language * Adding AssemblyInfo for VIsion * Updates based on feedback. * Adding a simple readme.md.
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.