Skip to content
代码片段 群组 项目
未验证 提交 59b94e4b 编辑于 作者: Pranav K's avatar Pranav K 提交者: GitHub
浏览文件

Ensure analyzer does not appear in build and publish outputs (#24072)

Also make the analyzer actually work
上级 427bfc8d
No related branches found
No related tags found
无相关合并请求
......@@ -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" />
......
......@@ -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" />
......
......@@ -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>
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册