<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
TfmSpecificPackageFile
代替<None Include...
。这是Visual Studio的分析器模板生成的内容,通过使用它,解决方案资源管理器中将不会显示bin
文件夹。<PropertyGroup>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);_AddAnalyzersToOutput</TargetsForTfmSpecificContentInPackage>
</PropertyGroup>
<Target Name="_AddAnalyzersToOutput">
<ItemGroup>
<TfmSpecificPackageFile Include="$(OutputPath)\$(AssemblyName).dll" PackagePath="analyzers/dotnet/cs" />
</ItemGroup>
</Target>
git status
中是否显示?) - PMF.gitignore
文件(们)。它们只应该排除bin
文件夹,而不是其中的任何子文件夹。 - PMF<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
- B Singh