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 @@
-
+