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