Repository navigation
Expand file tree
/
Copy pathNumSharp.Build.Analyzer.csproj
More file actions
46 lines (39 loc) · 2.6 KB
/
Copy pathNumSharp.Build.Analyzer.csproj
File metadata and controls
46 lines (39 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<Project Sdk="Microsoft.NET.Sdk">
<!-- ==================================================================================
NumSharp.Build.Analyzer — a Roslyn DiagnosticAnalyzer that reports a build ERROR when
[NDScoped] / [NDScopedAsync] is placed on a target the IL weaver could not weave (the
same NDW diagnostics the post-compile weaver produces, surfaced in the editor and at
CoreCompile so the mistake is caught BEFORE the weave runs).
It is NOT packed as its own package: the NumSharp.Core csproj stages this DLL into the
NumSharp package's `analyzers/dotnet/cs/` folder (see NumSharp.Core.csproj →
_NumSharpCorePackAnalyzer), so every consumer of NumSharp gets the compile-time
diagnostics without installing anything else; the NumSharp.Build package is weaver-ONLY
(post-compile) and ships no analyzers/. Targets netstandard2.0 — the Roslyn analyzer
contract.
================================================================================== -->
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<Nullable>disable</Nullable>
<ImplicitUsings>disable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<IsRoslynComponent>true</IsRoslynComponent>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<!-- A Roslyn analyzer loaded by the compiler host: like the weaver tool its own assembly
identity is irrelevant, and Microsoft.CodeAnalysis beside it carries its own key. -->
<SignAssembly>false</SignAssembly>
<!-- Not its own package; the build output is staged into the NumSharp package by hand. -->
<IsPackable>false</IsPackable>
<IncludeBuildOutput>false</IncludeBuildOutput>
<!-- RS2008 (analyzer-release tracking) is satisfied by AnalyzerReleases.{Shipped,Unshipped}.md
in this directory — Microsoft.CodeAnalysis.Analyzers auto-includes them as AdditionalFiles
when present. Declaring every NDW rule there clears RS2008 in EVERY build path; the previous
per-project NoWarn was honoured by a plain build but NOT by the docs/docfx metadata build. -->
<PackageId>NumSharp.Build.Analyzer</PackageId>
</PropertyGroup>
<ItemGroup>
<!-- The analyzing APIs are provided by the compiler host at run time; the reference is
compile-time only (PrivateAssets=all) and never ships in the package. 4.8.0 is the
Roslyn that ships with the .NET 8 SDK — the floor this repo's consumers build on. -->
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" PrivateAssets="all" />
</ItemGroup>
</Project>