-
Notifications
You must be signed in to change notification settings - Fork 911
VNext Nuget feed #911
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
VNext Nuget feed #911
Conversation
@satish860 There's currently no NuGet feed for the vNext branch. |
I am planning to use it one of app . Currently I downloaded the solution and it has build errors . Is this currently being worked upon or Can I provide a pull request for the same. Want to check this before so I don't duplicate the effort for you . |
This is unexpected. Can you please share with us a repro case putting under the light those errors?
Pull requests are always welcome! 😉 However, would it be regarding the build issue or the way to package and continuously pulish a vNext NuGet package? |
Ok. I've started to work on this and transmuted the issue into a PR. |
029a2ec
to
923abad
Compare
Next steps:
Later, when thoroughly tested:
|
appveyor.yml
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.
@FeodorFitsner Help 🙏 I can't seem to find the proper way to pass the APPVEYOR_REPO_COMMIT
as a parameter to a .ps1
in the on_success
event..
Note: If you want a good laugh, you can also peek at the pile of fixup commits in this PR to contemplate all my failed attempts 😿
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.
Seems like you also need a dot in the start, right?
Try:
. "C:\projects\libgit2sharp\nuget.package\BuildNugetPackage.ps1" $env:APPVEYOR_REPO_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.
appveyor.yml
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.
@FeodorFitsner I may have (another 😊) problem here. This generates
[assembly: AssemblyInformationalVersion("))")]
Any idea? You can check the build log to get a better view at what's going on.
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.
Hmmm. I may have found a workaround. Switching from init
to install
seems to work. However, I think there might be something fishy in the pipeline (as shown above).
- Fail the whole build upon a job failure - Cache the NuGet packages - Prefix the build version with the Assembly file version
Prior to generating the packages, the AssemblyInfo.cs is patched with the build version. Additionally, the assembly informational version will bear a `-pre` suffix would this build result from a push on a branch which isn't `master`. Produced packages will be published as build artifacts. No packaging will be performed when the build has been triggered from a Pull Request.
048a634
to
e43c1cc
Compare
I think this is now ready for review. The version used in the NuGet packages will be of the following formats
Although this is not proper SemVer (4 segments instead of 3), Some local testing seem to show that NuGet can accomodate it. A sample of the published NuGet packages can be found at |
@davidebbo @davidfowl Regarding the comment above, how much is it dumb to rely on this? I know this is not semver compliant, but will NuGet still cope it for some time? Note: When generating the package the command line issues the following:
|
@davidfowl is the vnext expert, so I'll let him take this one :) |
See #941 for a better versioning proposal |
@satish860 We've started publishing prerelease NuGet packages. Those are automatically generated by AppVeyor upon push/merge against vNext. They're manually published whenever new features/fixes are delivered. |
Where can i find the Vnext nuget feed for the library