Skip to content
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

[Cognitive Services] Add .nuspec file to include notice.txt #3290

Merged
merged 6 commits into from Jun 5, 2017

Conversation

felixwa
Copy link
Contributor

@felixwa felixwa commented May 27, 2017

Add .nuspec file to include readme.txt

Description


This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

SDK Generation Guidelines

  • If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
  • The generate.cmd file for the SDK has been updated with the version of AutoRest, as well as the commitid of your swagger spec or link to the swagger spec, used to generate the code.
  • The *.csproj and AssemblyInfo.cs files have been updated with the new version of the SDK.

Add .nuspec file to include readme.txt
@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

</metadata>
<files>
<file src="bin\release\net452\Microsoft.Azure.Management.CognitiveServices.dll" target="lib\net452" />
<file src="bin\release\netstandard1.4\Microsoft.Azure.Management.CognitiveServices.dll" target="lib\netstandard1.4" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "src" path works on my local machine but I'm not very sure if I should specify it in this way for "official" build. Please confirm.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixwa were you able to create a nuget and install the new nuget and see the notice get's added to the users Solution in Visual Studio?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixwa a good way to make this change is good is to create a signed nuget package using the signing job to create a signed package and test out in SDK and PowerShell scenarios.

@@ -0,0 +1,62 @@
<?xml version="1.0" encoding="utf-8"?>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This .nuspec file is authored based on the file I extracted from Cognitive Services package in nuget.org

<dependency id="Microsoft.Rest.ClientRuntime" version="[2.3.5, 3.0.0)" />
</group>
<group targetFramework=".NETStandard1.4">
<dependency id="Microsoft.NETCore.Platforms" version="[1.1.0, )" />
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if we really need this long dependency list?

Rename readme.txt to notice.txt
@felixwa felixwa changed the title [Cognitive Services] Add .nuspec file to include readme.txt [Cognitive Services] Add .nuspec file to include notice.txt May 27, 2017
</metadata>
<files>
<file src="bin\release\net452\Microsoft.Azure.Management.CognitiveServices.dll" target="lib\net452" />
<file src="bin\release\netstandard1.4\Microsoft.Azure.Management.CognitiveServices.dll" target="lib\netstandard1.4" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixwa were you able to create a nuget and install the new nuget and see the notice get's added to the users Solution in Visual Studio?

@shahabhijeet
Copy link
Member

@azuresdkci add to whitelist

</metadata>
<files>
<file src="bin\release\net452\Microsoft.Azure.Management.CognitiveServices.dll" target="lib\net452" />
<file src="bin\release\netstandard1.4\Microsoft.Azure.Management.CognitiveServices.dll" target="lib\netstandard1.4" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@felixwa a good way to make this change is good is to create a signed nuget package using the signing job to create a signed package and test out in SDK and PowerShell scenarios.

Apply nuspec from "official" package
Based on Abhijeet's example, adds notice.txt file and nuspec file as
ItemGroup in csproj
Remove nuspec file seems like it is not needed
@felixwa
Copy link
Contributor Author

felixwa commented Jun 1, 2017

@shahabhijeet , I have removed that .nuspec file because I found it is not a must have to include the notice.txt file in the package. You can refer to this build artifacts: http://azuresdkci.cloudapp.net/view/NetCore-SDK/job/NetCore-SDK-Sign/156/

@shahabhijeet shahabhijeet merged commit 0cf6bce into Azure:psSdkJson6 Jun 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants