-
Notifications
You must be signed in to change notification settings - Fork 416
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
Avoid publishing redundant packages to CI feed #681
Comments
Looks like this needs to start with adding the following properties to <Deterministic>true</Deterministic>
<PathMap>$(MSBuildProjectDirectory)=.\</PathMap> |
PowerShell can be used to query MVID:
|
@atifaziz
|
Thanks for that suggestion, but…
I precisely want to avoid the manual download for folks working with so-called “nightly” versions baking off each build. While AppVeyor does also offer NuGet feeds, it's something that could change if we migrate away to another CI platform. With MyGet, things stay independent and don't break if the cheese is moved. |
@moh-hassan I am going with an alternative of your suggestion with PR #758 and using a branch as opposed to a tag per nightly (which I feel would pollute the tag ref-space) or a single tag that would need to be force-pushed. |
Today, every push to master also publishes a NuGet package to the CI feed on MyGet:
However, not each push changes the compiled binaries and so it's wasteful to publish redundant packages. We should use C#'s deterministic building (
-deterministic
) to avoid them. This would mean (I think) comparing MVID of the new binaries against those of the binaries from last published package and upload the new package from CI/CD pipeline if there's any difference.The text was updated successfully, but these errors were encountered: