-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNINA.Plugin.PrometheusExporter.csproj
More file actions
45 lines (41 loc) · 2.48 KB
/
Copy pathNINA.Plugin.PrometheusExporter.csproj
File metadata and controls
45 lines (41 loc) · 2.48 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<OutputType>Library</OutputType>
<UseWPF>true</UseWPF>
<AssemblyName>NINA.Plugin.PrometheusExporter</AssemblyName>
<RootNamespace>NINA.Plugin.PrometheusExporter</RootNamespace>
<LangVersion>12.0</LangVersion>
<Nullable>enable</Nullable>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- NU1701: NINA.Plugin transitively pulls net4x-only packages (ToastNotifications, VVVV.FreeImage)
that resolve under net4x compat. NINA itself ships these, so the warning is unfixable from
our side. Exempt the NuGet-compat warning only; CS warnings still fail the build. -->
<WarningsNotAsErrors>NU1701</WarningsNotAsErrors>
<Platforms>x64</Platforms>
<PlatformTarget>x64</PlatformTarget>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<DefaultItemExcludes>$(DefaultItemExcludes);tests\**;bin\**;obj\**</DefaultItemExcludes>
<!-- Generate packages.lock.json so NuGet caches resolve to the same exact set every run.
CI uses `dotnet restore /p:RestoreLockedMode=true` to enforce no resolution drift. -->
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>
<ItemGroup>
<!-- PrivateAssets=all keeps NINA's framework DLLs out of bin/Release (per standards/dotnet/nina-plugin.md §1/§2).
Combined with the explicit ship list in scripts/ship-list.ps1, this is belt-and-suspenders. -->
<PackageReference Include="NINA.Plugin" Version="3.2.*">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="prometheus-net" Version="8.*" />
<!-- EmbedIO provides a managed-socket HTTP listener (HttpListenerMode.EmbedIO) that bypasses
Windows http.sys, so the plugin can bind to non-loopback addresses without admin/URL ACL. -->
<PackageReference Include="EmbedIO" Version="3.5.2" />
</ItemGroup>
<!-- Plugin install (copy DLLs to %LOCALAPPDATA%\NINA\Plugins\3.0.0\Prometheus Exporter\)
lives in scripts/install.ps1 and runs only via `make install`. Keeping it out of the
csproj post-build target avoids `make check` failing when NINA is running and holds
the deployed DLL locked. -->
</Project>