919009c5ef
AbLegacyDriver stamped LastSuccessfulRead (init, read, write), the read's sample timestamps and host-state change times from raw DateTime.UtcNow; only the backoff path read the injectable Clock. All of them now read Clock(), so NativePcccBridgeStatusHealthTests drives a manual clock (init at T0, read at T1) and asserts LastSuccessfulRead == T1 exactly instead of spin-waiting for the wall clock to pass the init stamp (#767). Without the driver change the 6 tests fail (init stamp is wall-clock, not T0). Directory.Build.props sets TreatWarningsAsErrors for every project since #766, so the 75 per-csproj copies (64 src + 11 tests) are removed and the props comment says it is now the only place. tools/mem-probe keeps its explicit opt-out. Release build: 0 warnings, 0 errors; a planted CS0168 still fails the build in a src project and in a test project that used to carry its own copy. Claude-Session: https://claude.ai/code/session_01GT67AEHd2Acv1YPwGfXEoV
42 lines
1.7 KiB
XML
42 lines
1.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<RootNamespace>ZB.MOM.WW.OtOpcUa.Commons</RootNamespace>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Akka"/>
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions"/>
|
|
<PackageReference Include="ZB.MOM.WW.Audit"/>
|
|
</ItemGroup>
|
|
|
|
<!-- Per-cluster mesh Phase 3: the first locally-compiled proto in the repo (all other gRPC here
|
|
is packaged clients). Grpc.Tools generates both the server base and the client stub from
|
|
deployment_artifact.proto; Google.Protobuf + Grpc.Core.Api carry the generated code's runtime
|
|
types. Placed in Commons so both the central server (Host/AdminUI) and the node client
|
|
(Runtime) get the types from one reference. -->
|
|
<ItemGroup>
|
|
<PackageReference Include="Google.Protobuf"/>
|
|
<PackageReference Include="Grpc.Core.Api"/>
|
|
<PackageReference Include="Grpc.Tools">
|
|
<PrivateAssets>all</PrivateAssets>
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Protobuf Include="Protos\deployment_artifact.proto" GrpcServices="Both"/>
|
|
<Protobuf Include="Protos\telemetry.proto" GrpcServices="Both"/>
|
|
<Protobuf Include="Protos\mesh_transport.proto" GrpcServices="Both"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\ZB.MOM.WW.OtOpcUa.Core.Abstractions\ZB.MOM.WW.OtOpcUa.Core.Abstractions.csproj"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<InternalsVisibleTo Include="ZB.MOM.WW.OtOpcUa.Commons.Tests"/>
|
|
</ItemGroup>
|
|
|
|
</Project>
|