diff --git a/NuGet.Config b/NuGet.Config
index 00d231892f6..67d95731311 100644
--- a/NuGet.Config
+++ b/NuGet.Config
@@ -17,6 +17,7 @@
+
diff --git a/eng/pipelines/pr.yml b/eng/pipelines/pr.yml
index a770527c6a1..046d9f55e8a 100644
--- a/eng/pipelines/pr.yml
+++ b/eng/pipelines/pr.yml
@@ -284,3 +284,20 @@ stages:
displayName: Log Environment Variables
- script: dotnet format whitespace --verify-no-changes NuGet.sln
displayName: Run dotnet format whitespace
+
+- stage:
+ displayName: AOT Compatibility
+ dependsOn: []
+ jobs:
+ - job:
+ displayName: AOT Publish Smoke Test (win-x64)
+ timeoutInMinutes: 20
+ pool:
+ vmImage: windows-latest
+ steps:
+ - task: PowerShell@2
+ displayName: Run configure.ps1
+ inputs:
+ filePath: configure.ps1
+ - script: dotnet publish test/NuGet.AotCompatibility.Test/NuGet.AotCompatibility.Test.csproj -r win-x64 -c Release
+ displayName: AOT publish NuGet libraries
diff --git a/test/NuGet.AotCompatibility.Test/NuGet.AotCompatibility.Test.csproj b/test/NuGet.AotCompatibility.Test/NuGet.AotCompatibility.Test.csproj
new file mode 100644
index 00000000000..0ea50273b41
--- /dev/null
+++ b/test/NuGet.AotCompatibility.Test/NuGet.AotCompatibility.Test.csproj
@@ -0,0 +1,40 @@
+
+
+ $(LatestNETCoreTargetFramework)
+ true
+ true
+ false
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+