diff --git a/src/SourceBuild/tarball/content/repos/known-good.proj b/src/SourceBuild/tarball/content/repos/known-good.proj
index eab516290..001a16c01 100644
--- a/src/SourceBuild/tarball/content/repos/known-good.proj
+++ b/src/SourceBuild/tarball/content/repos/known-good.proj
@@ -34,6 +34,7 @@
+
diff --git a/src/SourceBuild/tarball/content/repos/razor-compiler.proj b/src/SourceBuild/tarball/content/repos/razor-compiler.proj
new file mode 100644
index 000000000..f47d22c98
--- /dev/null
+++ b/src/SourceBuild/tarball/content/repos/razor-compiler.proj
@@ -0,0 +1,21 @@
+
+
+
+
+ $(StandardSourceBuildCommand) $(StandardSourceBuildArgs)
+
+ $(ProjectDirectory)global.json
+ $(ProjectDirectory)NuGet.config
+ false
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/SourceBuild/tarball/content/repos/sdk.proj b/src/SourceBuild/tarball/content/repos/sdk.proj
index 9a26cd695..613ed2e26 100644
--- a/src/SourceBuild/tarball/content/repos/sdk.proj
+++ b/src/SourceBuild/tarball/content/repos/sdk.proj
@@ -39,6 +39,7 @@
+
diff --git a/src/SourceBuild/tarball/patches/razor-compiler/0001-Exclude-test-projects-from-source-build.patch b/src/SourceBuild/tarball/patches/razor-compiler/0001-Exclude-test-projects-from-source-build.patch
new file mode 100644
index 000000000..dded6ec2f
--- /dev/null
+++ b/src/SourceBuild/tarball/patches/razor-compiler/0001-Exclude-test-projects-from-source-build.patch
@@ -0,0 +1,21 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Logan Bussell
+Date: Wed, 13 Apr 2022 15:03:44 -0700
+Subject: [PATCH] Exclude test projects from source-build
+
+Backport PR: https://github.com/dotnet/razor-compiler/pull/226
+---
+ src/test/Directory.Build.props | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/test/Directory.Build.props b/src/test/Directory.Build.props
+index 95172906..047e4619 100644
+--- a/src/test/Directory.Build.props
++++ b/src/test/Directory.Build.props
+@@ -8,5 +8,6 @@
+ -->
+ true
+ false
++ true
+
+
diff --git a/src/SourceBuild/tarball/patches/razor-compiler/0002-retarget-Razor-Syntax-Genreator-to-net6.0.patch b/src/SourceBuild/tarball/patches/razor-compiler/0002-retarget-Razor-Syntax-Genreator-to-net6.0.patch
new file mode 100644
index 000000000..e101f8041
--- /dev/null
+++ b/src/SourceBuild/tarball/patches/razor-compiler/0002-retarget-Razor-Syntax-Genreator-to-net6.0.patch
@@ -0,0 +1,22 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Logan Bussell
+Date: Thu, 14 Apr 2022 16:27:26 -0700
+Subject: [PATCH] retarget Razor Syntax Genreator to net6.0
+
+Backport PR: https://github.com/dotnet/razor-compiler/pull/226
+---
+ src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj b/src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj
+index 924379ac..362f0e3b 100644
+--- a/src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj
++++ b/src/tools/RazorSyntaxGenerator/RazorSyntaxGenerator.csproj
+@@ -3,6 +3,7 @@
+
+ Generates Razor syntax nodes from xml. For internal use only.
+ netcoreapp3.1
++ net6.0
+ dotnet-razorsyntaxgenerator
+ RazorSyntaxGenerator
+ Exe