diff --git a/Directory.Build.props b/Directory.Build.props
index 4b42f630ad43e6e6b850d3697e3a0766081d7169..d138b781a7c129ce59d17002567ec9871f368b0a 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -153,6 +153,8 @@
       AND '$(MSBuildProjectExtension)' == '.csproj'">
     <ProjectReference
       Include="$(RepoRoot)src\Analyzers\Internal.AspNetCore.Analyzers\src\Internal.AspNetCore.Analyzers.csproj"
+      ReferenceOutputAssembly="false"
+      OutputItemType="Analyzer"
       PrivateAssets="All"
       Version="$(InternalAspNetCoreAnalyzersPackageVersion)"
       IsImplicitlyDefined="true" />
diff --git a/eng/tools/RepoTasks/RepoTasks.csproj b/eng/tools/RepoTasks/RepoTasks.csproj
index 9cfe1b2b2a912cff1457b622bcf667fc18aab74f..e71a1d75918311a7d399f9701e520d5602acadf4 100644
--- a/eng/tools/RepoTasks/RepoTasks.csproj
+++ b/eng/tools/RepoTasks/RepoTasks.csproj
@@ -24,6 +24,7 @@
 
   <ItemGroup Condition="'$(TargetFramework)' == 'net472'">
     <PackageReference Include="Wix" Version="3.11.1" />
+    <PackageReference Include="System.Net.Http" Version="4.3.4" />
 
     <Reference Include="Microsoft.Build" />
     <Reference Include="Microsoft.Build.Framework" />
diff --git a/src/Analyzers/Internal.AspNetCore.Analyzers/src/Internal.AspNetCore.Analyzers.csproj b/src/Analyzers/Internal.AspNetCore.Analyzers/src/Internal.AspNetCore.Analyzers.csproj
index f4d42dc817bd844bed6f5a6dd6d9bee011a50f03..cf315eea4151591fe8b331a172f61ba2f5441d74 100644
--- a/src/Analyzers/Internal.AspNetCore.Analyzers/src/Internal.AspNetCore.Analyzers.csproj
+++ b/src/Analyzers/Internal.AspNetCore.Analyzers/src/Internal.AspNetCore.Analyzers.csproj
@@ -8,7 +8,7 @@
     <BuildOutputTargetFolder>analyzers/dotnet/cs/</BuildOutputTargetFolder>
     <!--
       Except for analyzer unit tests, analyzers should not be referenced by other projects in this repo. Analyzers cannot be used as
-      a project reference. The SDK currently only supports using analyzers as a PackageReference. This flag prevents this project from
+      a project reference unless referenced with OutputItemType="Analyzer". The SDK currently only supports using analyzers as a PackageReference. This flag prevents this project from
       being used as a `<Reference>`, which indicates that a reference is interchangeable between ProjectRef and PackageRef.
     -->
     <IsProjectReferenceProvider>false</IsProjectReferenceProvider>