94 lines
4.5 KiB
XML
94 lines
4.5 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net48</TargetFramework>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<LangVersion>9.0</LangVersion>
|
|
<Nullable>enable</Nullable>
|
|
<RootNamespace>ZB.MOM.WW.OtOpcUa.Historian.Aveva</RootNamespace>
|
|
<AssemblyName>ZB.MOM.WW.OtOpcUa.Historian.Aveva</AssemblyName>
|
|
<!-- Plugin is loaded at runtime via Assembly.LoadFrom; never copy it as a CopyLocal dep. -->
|
|
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
|
|
<!-- Deploy next to Host.exe under bin/<cfg>/Historian/ so F5 works without a manual copy. -->
|
|
<HistorianPluginOutputDir>$(MSBuildThisFileDirectory)..\ZB.MOM.WW.OtOpcUa.Host\bin\$(Configuration)\net48\Historian\</HistorianPluginOutputDir>
|
|
<!--
|
|
Phase 2 Stream D — V1 ARCHIVE. Plugs into the legacy in-process Host's
|
|
Wonderware Historian loader. Will be ported into Driver.Galaxy.Host's
|
|
Backend/Historian/ subtree when MxAccessGalaxyBackend.HistoryReadAsync is
|
|
wired (Task B.1.h follow-up). See docs/v2/V1_ARCHIVE_STATUS.md.
|
|
-->
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<InternalsVisibleTo Include="ZB.MOM.WW.OtOpcUa.Historian.Aveva.Tests"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Logging -->
|
|
<PackageReference Include="Serilog" Version="2.10.0"/>
|
|
|
|
<!-- OPC UA (for DataValue/StatusCodes used by the IHistorianDataSource surface) -->
|
|
<PackageReference Include="OPCFoundation.NetStandard.Opc.Ua.Server" Version="1.5.374.126"/>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Private=false: the plugin binds to Host types at compile time but Host.exe must not be
|
|
copied into the plugin's output folder (it is already in the process). -->
|
|
<ProjectReference Include="..\ZB.MOM.WW.OtOpcUa.Host\ZB.MOM.WW.OtOpcUa.Host.csproj">
|
|
<Private>false</Private>
|
|
<ReferenceOutputAssembly>true</ReferenceOutputAssembly>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Wonderware Historian SDK -->
|
|
<Reference Include="aahClientManaged">
|
|
<HintPath>..\..\lib\aahClientManaged.dll</HintPath>
|
|
<EmbedInteropTypes>false</EmbedInteropTypes>
|
|
</Reference>
|
|
<Reference Include="aahClientCommon">
|
|
<HintPath>..\..\lib\aahClientCommon.dll</HintPath>
|
|
<EmbedInteropTypes>false</EmbedInteropTypes>
|
|
</Reference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Historian SDK native dependencies — copied beside the plugin DLL so the AssemblyResolve
|
|
handler in HistorianPluginLoader can find them when the plugin first JITs. -->
|
|
<None Include="..\..\lib\aahClient.dll">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Include="..\..\lib\aahClientCommon.dll">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Include="..\..\lib\aahClientManaged.dll">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Include="..\..\lib\Historian.CBE.dll">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Include="..\..\lib\Historian.DPAPI.dll">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
<None Include="..\..\lib\ArchestrA.CloudHistorian.Contract.dll">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
|
|
<Target Name="StageHistorianPluginForHost" AfterTargets="Build">
|
|
<ItemGroup>
|
|
<_HistorianStageFiles Include="$(OutDir)aahClient.dll"/>
|
|
<_HistorianStageFiles Include="$(OutDir)aahClientCommon.dll"/>
|
|
<_HistorianStageFiles Include="$(OutDir)aahClientManaged.dll"/>
|
|
<_HistorianStageFiles Include="$(OutDir)Historian.CBE.dll"/>
|
|
<_HistorianStageFiles Include="$(OutDir)Historian.DPAPI.dll"/>
|
|
<_HistorianStageFiles Include="$(OutDir)ArchestrA.CloudHistorian.Contract.dll"/>
|
|
<_HistorianStageFiles Include="$(OutDir)$(AssemblyName).dll"/>
|
|
<_HistorianStageFiles Include="$(OutDir)$(AssemblyName).pdb" Condition="Exists('$(OutDir)$(AssemblyName).pdb')"/>
|
|
</ItemGroup>
|
|
<MakeDir Directories="$(HistorianPluginOutputDir)"/>
|
|
<Copy SourceFiles="@(_HistorianStageFiles)" DestinationFolder="$(HistorianPluginOutputDir)" SkipUnchangedFiles="true"/>
|
|
</Target>
|
|
|
|
</Project>
|