-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathPumpDeviceIntegrationServer.csproj
More file actions
59 lines (58 loc) · 3.21 KB
/
Copy pathPumpDeviceIntegrationServer.csproj
File metadata and controls
59 lines (58 loc) · 3.21 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
47
48
49
50
51
52
53
54
55
56
57
58
59
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>$(AppTargetFrameworks)</TargetFrameworks>
<OutputType>Exe</OutputType>
<AssemblyName>PumpDeviceIntegrationServer</AssemblyName>
<PackageId>PumpDeviceIntegrationServer</PackageId>
<Description>Self-contained .NET console OPC UA server demonstrating the OPC 40223 Pumps companion specification end-to-end (full simulation via the fluent INodeManagerBuilder API) plus the OPC 10000-100 (Device Integration) software-update facet wired into a second declarative pump device.</Description>
<RootNamespace>Pumps</RootNamespace>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
<NoWarn>$(NoWarn);CA1822</NoWarn>
<PublishAot Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">true</PublishAot>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Libraries\Opc.Ua.Configuration\Opc.Ua.Configuration.csproj" />
<ProjectReference Include="..\..\Libraries\Opc.Ua.Server\Opc.Ua.Server.csproj" />
<ProjectReference Include="..\..\Libraries\Opc.Ua.Di\Opc.Ua.Di.csproj" />
<ProjectReference Include="..\..\Libraries\Opc.Ua.Di.Server\Opc.Ua.Di.Server.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Tools\Opc.Ua.SourceGeneration\Opc.Ua.SourceGeneration.csproj">
<OutputItemType>Analyzer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" />
</ItemGroup>
<!-- Machinery + Pumps NodeSet2 XMLs are source-generated locally;
no library refs needed. The generator emits typed classes,
NodeId tables, and AddOpcUaMachinery / AddOpcUaPumps extension
methods in the Opc.Ua.Machinery and Opc.Ua.Pumps namespaces
(internal to this assembly). Cross-namespace type references
to DI types resolve via the [assembly: ModelDependencyAttribute]
carried in the Opc.Ua.Di assembly — no DI NodeSet2 XML
needed here.
The matching *.NodeSet2.csv files (alongside the XML) are
picked up by the source generator as the stable NodeId tables.
Without them the generator would assign synthetic NodeIds at
compile time, breaking byte-stable wire formats for clients
that cache NodeIds across builds. -->
<ItemGroup>
<AdditionalFiles Include="Model\Opc.Ua.Machinery.NodeSet2.xml">
<ModelSourceGeneratorPrefix>Opc.Ua.Machinery</ModelSourceGeneratorPrefix>
</AdditionalFiles>
<AdditionalFiles Include="Model\Opc.Ua.Machinery.NodeSet2.csv" />
<AdditionalFiles Include="Model\Opc.Ua.Pumps.NodeSet2.xml">
<ModelSourceGeneratorPrefix>Opc.Ua.Pumps</ModelSourceGeneratorPrefix>
</AdditionalFiles>
<AdditionalFiles Include="Model\Opc.Ua.Pumps.NodeSet2.csv" />
</ItemGroup>
<Import Project="..\..\Tools\Opc.Ua.SourceGeneration\OPCFoundation.Opc.Ua.SourceGeneration.props" />
<PropertyGroup>
<ModelSourceGeneratorVersion>v105</ModelSourceGeneratorVersion>
<ModelSourceGeneratorUseAllowSubtypes>true</ModelSourceGeneratorUseAllowSubtypes>
</PropertyGroup>
</Project>