Skip to content
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

Use verbatim string literals in C# and F# templates #120

Merged
merged 1 commit into from
Aug 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions src/GitInfo/build/GitInfo.cs.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,62 +37,62 @@
public const bool IsDirty = $GitIsDirty$;

/// <summary>IsDirtyString: $GitIsDirty$</summary>
public const string IsDirtyString = "$GitIsDirty$";
public const string IsDirtyString = @"$GitIsDirty$";

/// <summary>Repository URL: $GitRepositoryUrl$</summary>
public const string RepositoryUrl = "$GitRepositoryUrl$";
public const string RepositoryUrl = @"$GitRepositoryUrl$";

/// <summary>Branch: $GitBranch$</summary>
public const string Branch = "$GitBranch$";
public const string Branch = @"$GitBranch$";

/// <summary>Commit: $GitCommit$</summary>
public const string Commit = "$GitCommit$";
public const string Commit = @"$GitCommit$";

/// <summary>Sha: $GitSha$</summary>
public const string Sha = "$GitSha$";
public const string Sha = @"$GitSha$";

/// <summary>Commits on top of base version: $GitCommits$</summary>
public const string Commits = "$GitCommits$";
public const string Commits = @"$GitCommits$";

/// <summary>Tag: $GitTag$</summary>
public const string Tag = "$GitTag$";
public const string Tag = @"$GitTag$";

/// <summary>Base tag: $GitBaseTag$</summary>
public const string BaseTag = "$GitBaseTag$";
public const string BaseTag = @"$GitBaseTag$";

/// <summary>Provides access to the base version information used to determine the <see cref="SemVer" />.</summary>
public partial class BaseVersion
{
/// <summary>Major: $GitBaseVersionMajor$</summary>
public const string Major = "$GitBaseVersionMajor$";
public const string Major = @"$GitBaseVersionMajor$";

/// <summary>Minor: $GitBaseVersionMinor$</summary>
public const string Minor = "$GitBaseVersionMinor$";
public const string Minor = @"$GitBaseVersionMinor$";

/// <summary>Patch: $GitBaseVersionPatch$</summary>
public const string Patch = "$GitBaseVersionPatch$";
public const string Patch = @"$GitBaseVersionPatch$";
}

/// <summary>Provides access to SemVer information for the current assembly.</summary>
public partial class SemVer
{
/// <summary>Major: $GitSemVerMajor$</summary>
public const string Major = "$GitSemVerMajor$";
public const string Major = @"$GitSemVerMajor$";

/// <summary>Minor: $GitSemVerMinor$</summary>
public const string Minor = "$GitSemVerMinor$";
public const string Minor = @"$GitSemVerMinor$";

/// <summary>Patch: $GitSemVerPatch$</summary>
public const string Patch = "$GitSemVerPatch$";
public const string Patch = @"$GitSemVerPatch$";

/// <summary>Label: $GitSemVerLabel$</summary>
public const string Label = "$GitSemVerLabel$";
public const string Label = @"$GitSemVerLabel$";

/// <summary>Label with dash prefix: $GitSemVerDashLabel$</summary>
public const string DashLabel = "$GitSemVerDashLabel$";
public const string DashLabel = @"$GitSemVerDashLabel$";

/// <summary>Source: $GitSemVerSource$</summary>
public const string Source = "$GitSemVerSource$";
public const string Source = @"$GitSemVerSource$";
}
}
}
Expand Down
34 changes: 17 additions & 17 deletions src/GitInfo/build/GitInfo.fs.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,57 @@
let [<Literal>] IsDirty = $GitIsDirty$

/// <summary>IsDirtyString: $GitIsDirty$</summary>
let [<Literal>] IsDirtyString = "$GitIsDirty$"
let [<Literal>] IsDirtyString = @"$GitIsDirty$"

/// <summary>Repository URL: $GitRepositoryUrl$</summary>
let [<Literal>] RepositoryUrl = "$GitRepositoryUrl$"
let [<Literal>] RepositoryUrl = @"$GitRepositoryUrl$"

/// <summary>Branch: $GitBranch$</summary>
let [<Literal>] Branch = "$GitBranch$"
let [<Literal>] Branch = @"$GitBranch$"

/// <summary>Commit: $GitCommit$</summary>
let [<Literal>] Commit = "$GitCommit$"
let [<Literal>] Commit = @"$GitCommit$"

/// <summary>Sha: $GitSha$</summary>
let [<Literal>] Sha = "$GitSha$"
let [<Literal>] Sha = @"$GitSha$"

/// <summary>Commits on top of base version: $GitCommits$</summary>
let [<Literal>] Commits = "$GitCommits$"
let [<Literal>] Commits = @"$GitCommits$"

/// <summary>Tag: $GitTag$</summary>
let [<Literal>] Tag = "$GitTag$"
let [<Literal>] Tag = @"$GitTag$"

/// <summary>Base tag: $GitBaseTag$</summary>
let [<Literal>] BaseTag = "$GitBaseTag$"
let [<Literal>] BaseTag = @"$GitBaseTag$"

/// <summary>Provides access to the base version information used to determine the <see cref="SemVer" />.</summary>
module BaseVersion =
/// <summary>Major: $GitBaseVersionMajor$</summary>
let [<Literal>] Major = "$GitBaseVersionMajor$"
let [<Literal>] Major = @"$GitBaseVersionMajor$"

/// <summary>Minor: $GitBaseVersionMinor$</summary>
let [<Literal>] Minor = "$GitBaseVersionMinor$"
let [<Literal>] Minor = @"$GitBaseVersionMinor$"

/// <summary>Patch: $GitBaseVersionPatch$</summary>
let [<Literal>] Patch = "$GitBaseVersionPatch$"
let [<Literal>] Patch = @"$GitBaseVersionPatch$"


/// <summary>Provides access to SemVer information for the current assembly.</summary>
module SemVer =
/// <summary>Major: $GitSemVerMajor$</summary>
let [<Literal>] Major = "$GitSemVerMajor$"
let [<Literal>] Major = @"$GitSemVerMajor$"

/// <summary>Minor: $GitSemVerMinor$</summary>
let [<Literal>] Minor = "$GitSemVerMinor$"
let [<Literal>] Minor = @"$GitSemVerMinor$"

/// <summary>Patch: $GitSemVerPatch$</summary>
let [<Literal>] Patch = "$GitSemVerPatch$"
let [<Literal>] Patch = @"$GitSemVerPatch$"

/// <summary>Label: $GitSemVerLabel$</summary>
let [<Literal>] Label = "$GitSemVerLabel$"
let [<Literal>] Label = @"$GitSemVerLabel$"

/// <summary>Label with dash prefix: $GitSemVerDashLabel$</summary>
let [<Literal>] DashLabel = "$GitSemVerDashLabel$"
let [<Literal>] DashLabel = @"$GitSemVerDashLabel$"

/// <summary>Source: $GitSemVerSource$</summary>
let [<Literal>] Source = "$GitSemVerSource$"
let [<Literal>] Source = @"$GitSemVerSource$"