From 5aa2eff74f52b964a83ce26666c3230eb1b6a8c0 Mon Sep 17 00:00:00 2001 From: Ross Brodbeck Date: Fri, 26 Mar 2021 12:26:24 -0400 Subject: [PATCH] Add a default BuildConstants and change encoding on save (#1026) --- .gitignore | 5 +---- src/Runner.Sdk/BuildConstants.cs | 19 +++++++++++++++++++ src/dir.proj | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 src/Runner.Sdk/BuildConstants.cs diff --git a/.gitignore b/.gitignore index 5cb5e8cde..de3af067f 100644 --- a/.gitignore +++ b/.gitignore @@ -22,7 +22,4 @@ _dotnetsdk TestResults TestLogs .DS_Store -**/*.DotSettings.user - -#generated -src/Runner.Sdk/BuildConstants.cs +**/*.DotSettings.user \ No newline at end of file diff --git a/src/Runner.Sdk/BuildConstants.cs b/src/Runner.Sdk/BuildConstants.cs new file mode 100644 index 000000000..8d97bffcb --- /dev/null +++ b/src/Runner.Sdk/BuildConstants.cs @@ -0,0 +1,19 @@ +namespace GitHub.Runner.Sdk +{ + /*** + * WARNING: This file is automatically regenerated on layout so the runner can provide version/commit info (do not manually edit it). + */ + public static class BuildConstants + { + public static class Source + { + public static readonly string CommitHash = "N/A"; + } + + public static class RunnerPackage + { + public static readonly string PackageName = "N/A"; + public static readonly string Version = "0"; + } + } +} diff --git a/src/dir.proj b/src/dir.proj index 1c91e0cf5..0659be5e6 100644 --- a/src/dir.proj +++ b/src/dir.proj @@ -25,7 +25,7 @@ - +