-
Notifications
You must be signed in to change notification settings - Fork 33
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
chore: Set versions on dll #603
Conversation
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.
Besides the nitpick, a simple solution.
@@ -145,7 +145,9 @@ Task("Build") | |||
NoRestore = true, | |||
MSBuildSettings = new DotNetMSBuildSettings | |||
{ | |||
Version = packageVersion | |||
Version = packageVersion, | |||
FileVersion = packageVersion, |
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.
FileVersion = packageVersion, | |
FileVersion = packageVersion, |
It doesn't show in github, but there is a TAB between FileVersion
and the =
token.
The problem is that it does work for some reason :(. I sets version in the dlls when I run it locally, but not when appveyor runs the cake script, so I need to experiment some more. |
Do we even need the AppVeyor build? |
We should fix this across all systems.
I don't think we should mess up the versioning too much. Either GitVersion or the cake, and not using git describe and tags (I understand the frustration though :-) ) . The good thing about the appveyor build is that it actually deploys to MyGet for every main/master build, so that constitutes the fastest development builds we can have, and it works (as long as Myget works). So I dont think we should take those down before we have the final solution out. Imho, I believe the GitVersion is the way to go. Not sure if we should automate as much as the engine/console - meaning, the requirements there are rather strict, the automation in itself i very good. Example, you have to indicate which issues should be part of the release (yeah, that is good), they have to have at least one of a given set of labels , they have to be closed. It does have a release notes feature, but I havent managed to get that to work. I believe it was Charlie, and possibly Chris, who have done this system, and there are multiple scripts there, so that is what makes it hard. See https://github.com/nunit/nunit-console/wiki/Creating-a-New-Release |
I agree consistency between the repositories would be beneficial although I thought they were previously deliberately made independent. Do we need AppVeyor to push to myget? Can that not be done using cake or GitHub action with NuGet push? |
We absolutely can push to Myget without appveyor. There is a key needed, and the rest is standard. But is the appveyor really the problem here? Btw, the appveyor uses the cake script too to push it up, like this So to replace it, we just need the keys (they seems to be listed in the appveyor file, but they might not be the current ones, I hope. The call to cake (or build.ps) can be done from any script. |
I just wondered why we need two builds: GitHub action and AppVeyor. The first is more integrated with GitHub. So pure for simplicity I would drop the latter. Doing it twice would be twice the cost, which might be not be even relevant for an open source project. |
We don't need two, but the github action build currently doesn't push to Myget, so we would have to add that. And fix up so it gets the keys. As long as Myget works, I think it is nice to push the dev packages there, Github packages have the credential issue, you have to be logged in to use it. I absolutely have no problems with getting rid of the appveyor build itself. If you or some one have the time, please just go on! |
In the analyzers repo we (currently) use AppVeyor to do the build artifacts that we release. The GitHub action were offered by a contributor (the only contribution to this repo AFAICR), so before we start removing AppVeyor we need to have the same functionality in the GitHub actions. Relating to this PR, then I'm unsure if the problem is AppVeyor or Cake, but I'll try to add some more logging to the build (but I don't think I'll have time until the weekend due to several deadlines at work). |
No description provided.