Skip to content

Adds /version switch #1155

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

Merged
merged 6 commits into from
Feb 25, 2017

Conversation

kjjuno
Copy link
Contributor

@kjjuno kjjuno commented Feb 16, 2017

Closes #947

The version of GitVersion is now displayed if the /version switch is provided. The version is also included in the help page.

The version of GitVersion is now displayed if the /version switch is provided. The version is also included in the help page.
@kjjuno kjjuno changed the title Adds /version Adds /version switch Feb 16, 2017
@asbjornu
Copy link
Member

@kjjuno: Awesome! Do you think it would be possible to add a test or two for this as well?

@kjjuno
Copy link
Contributor Author

kjjuno commented Feb 17, 2017

For sure. I'll add some when I get a chance

@kjjuno
Copy link
Contributor Author

kjjuno commented Feb 17, 2017

For some reason the travis-ci build seems to be hung. Is there a way to kill it and start over. Did I do something in my unit tests that isn't supported on travis?

@asbjornu
Copy link
Member

@kjjuno: I dunno what happened. I restarted the build now.

@kjjuno
Copy link
Contributor Author

kjjuno commented Feb 20, 2017

I'm guessing the dynamic assembly compile stuff doesn't work on linux. I may have to think of a different test.

@kjjuno
Copy link
Contributor Author

kjjuno commented Feb 21, 2017

I resolved the build issue by preventing this test from running on mono. The test compiles an assembly at runtime with a specific version, and then tests that the version is correct. The dynamic compilation code is not supported on mono.

@asbjornu
Copy link
Member

@kjjuno: Perhaps you can use Mono.Cecil to compile the assembly instead? That should work on Mono just fine.

@kjjuno
Copy link
Contributor Author

kjjuno commented Feb 21, 2017

I've never used that before. I'll learn how to do that and update the pr

{
var definition = new AssemblyNameDefinition("test-asm", fileVersion);

var asmDef = AssemblyDefinition.CreateAssembly(definition, "test-asm", ModuleKind.Dll);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice work figuring out how to do this, nice solution

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could never het the linux travis ci to build. Did that ever get resolved?

Copy link
Contributor

Choose a reason for hiding this comment

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

It didn't actually, I didn't notice that before merging. I likely will just not run this test on Mono. Thoughts @asbjornu

Copy link
Member

Choose a reason for hiding this comment

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

@JakeGinnivan: Running the build now to see what's up.

@JakeGinnivan JakeGinnivan merged commit d5bbf0b into GitTools:master Feb 25, 2017
@ghuntley
Copy link
Contributor

Welcome back Jake!

@JakeGinnivan
Copy link
Contributor

Thanks @ghuntley, first weekend in a month without a wedding or a bucks party on :)

@kjjuno kjjuno deleted the feature/#947_display_own_version branch February 26, 2017 23:05
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.

4 participants