-
Notifications
You must be signed in to change notification settings - Fork 654
Add C++ (Modern/UWP,MFC, etc.) support for SemVer in GitVersion #1428
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
Closed
Closed
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
ff83342
Added Visual Studio Win32 (C++) GitVersion support
stunney 50e20ca
Commenting out Debugger Launcher code
stunney 6703d3f
Removing full relative path added by VS2017
stunney 64cd6f8
Adding whitespace
stunney 9503d9e
Merge branch 'master' into master
stunney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/GitVersionCore/GitVersionInformationResources/AddFormats/GitVersionInformation.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define {0} {1} |
27 changes: 27 additions & 0 deletions
27
src/GitVersionCore/GitVersionInformationResources/Templates/GitVersionInformation.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated by a tool. | ||
// GitVersion | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
#pragma once | ||
|
||
//------------------------------------------------------------------------------ | ||
//What the values SHOULD look like after the template is applied: | ||
//#define VERSION_FULL MAJORVERSION,MINORVERSION,BUILDVERSION,REVISIONVERSION | ||
//#define VERSION_STRING VERSION_XSTR(MAJORVERSION.MINORVERSION.BUILDVERSION.REVISIONVERSION-REVISIONHASH) VERSION_BLANK "\0" | ||
|
||
//NOTE: The trailing "\0" is VERY important | ||
|
||
//------------------------------------------------------------------------------ | ||
|
||
#define VERSION_STR(x) #x | ||
#define VERSION_XSTR(x) VERSION_STR(x) | ||
#define VERSION_BLANK "" | ||
|
||
#define VERSION_FULL 0,0,0,1 | ||
#define VERSION_STRING VERSION_XSTR(0.0.0.1) VERSION_BLANK "\0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
namespace GitVersionTask | ||
{ | ||
internal static class SupportedLanguageConstants | ||
{ | ||
internal const string VBDOTNET = "VB"; | ||
internal const string FSHARP = "F#"; | ||
internal const string CSHARP = "C#"; | ||
internal const string CPLUSPLUS = "C++"; | ||
|
||
internal static readonly string[] SUPPORTED_LANGUAGES = | ||
{ | ||
VBDOTNET, | ||
CSHARP, | ||
FSHARP, | ||
CPLUSPLUS, | ||
}; | ||
|
||
internal const string FILEEXTENSION_VBDOTNET = "vb"; | ||
internal const string FILEEXTENSION_CSHARP = "cs"; | ||
internal const string FILEEXTENSION_FSHARP = "fs"; | ||
internal const string FILEEXTENSION_CPLUSPLUS = "h"; | ||
|
||
internal static readonly string[] SUPPORTED_LANGUAGE_FILEEXTENSIONS = | ||
{ | ||
FILEEXTENSION_VBDOTNET, | ||
FILEEXTENSION_CSHARP, | ||
FILEEXTENSION_FSHARP, | ||
FILEEXTENSION_CPLUSPLUS, | ||
}; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think you don't need to reference assembly by explicit path.
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.
Bah! I blame visual studio for this abomination! Thanks. I will just revert this to the original line.