зеркало из https://github.com/AvaloniaUI/Avalonia.git
Fix analyzers nuget package
This commit is contained in:
Родитель
7d26c16a10
Коммит
3da148f5c2
|
@ -16,6 +16,11 @@
|
|||
"Id": "Avalonia.Generators",
|
||||
"IgnoreMissingFrameworkBinaries": true,
|
||||
"DoNotMergeDependencies": true
|
||||
},
|
||||
{
|
||||
"Id": "Avalonia.Analyzers",
|
||||
"IgnoreMissingFrameworkBinaries": true,
|
||||
"DoNotMergeDependencies": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,17 +1,22 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<IncludeBuildOutput>false</IncludeBuildOutput>
|
||||
<PackageId>Avalonia.Analyzers</PackageId>
|
||||
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
|
||||
<IsPackable>true</IsPackable>
|
||||
<IsRoslynComponent>true</IsRoslynComponent>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.9.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.3.4" PrivateAssets="all"/>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.9.0" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import Project="..\..\..\build\TrimmingEnable.props" />
|
||||
<Import Project="..\..\..\build\NullableEnable.props" />
|
||||
</Project>
|
||||
|
|
|
@ -20,7 +20,7 @@ internal static class GeneratorContextExtensions
|
|||
public static void ReportNameGeneratorUnhandledError(this GeneratorExecutionContext context, Exception error) =>
|
||||
context.Report(UnhandledErrorDescriptorId,
|
||||
"Unhandled exception occured while generating typed Name references. " +
|
||||
"Please file an issue: https://github.com/avaloniaui/Avalonia.Generators",
|
||||
"Please file an issue: https://github.com/avaloniaui/Avalonia",
|
||||
error.ToString());
|
||||
|
||||
public static void ReportNameGeneratorInvalidType(this GeneratorExecutionContext context, string typeName) =>
|
||||
|
|
Загрузка…
Ссылка в новой задаче