Skip to content

Commit b0d8f58

Browse files
authored
feat(OpcDa): add dependencies into package (#528)
* chore: remove targets script * chore: bump version 9.0.3 * chore: 增加 net10 支持 * chore: 增加依赖项
1 parent 7a49351 commit b0d8f58

2 files changed

Lines changed: 26 additions & 24 deletions

File tree

src/extensions/BootstrapBlazor.OpcDa/BootstrapBlazor.OpcDa.csproj

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<Version>9.0.2</Version>
4+
<Version>9.0.3</Version>
55
<RootNamespace>BootstrapBlazor.OpcDa</RootNamespace>
66
</PropertyGroup>
77

@@ -26,20 +26,38 @@
2626
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.*" />
2727
</ItemGroup>
2828

29+
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
30+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.*" />
31+
</ItemGroup>
32+
33+
<ItemGroup>
34+
<Reference Include="OpcComRcw" HintPath="Lib\OpcComRcw.dll" />
35+
<Reference Include="OpcNetApi" HintPath="Lib\OpcNetApi.dll" />
36+
<Reference Include="OpcNetApi.Com" HintPath="Lib\OpcNetApi.Com.dll" />
37+
</ItemGroup>
38+
39+
<ItemGroup>
40+
<Content Include="lib\OpcComRcw.dll" Pack="true" PackagePath="lib\net6.0" />
41+
<Content Include="lib\OpcNetApi.dll" Pack="true" PackagePath="lib\net6.0" />
42+
<Content Include="lib\OpcNetApi.Com.dll" Pack="true" PackagePath="lib\net6.0" />
43+
</ItemGroup>
44+
2945
<ItemGroup>
30-
<None Include="lib\OpcComRcw.dll" Pack="true" PackagePath="lib\net6.0" />
31-
<None Include="lib\OpcNetApi.dll" Pack="true" PackagePath="lib\net6.0" />
32-
<None Include="lib\OpcNetApi.Com.dll" Pack="true" PackagePath="lib\net6.0" />
46+
<Content Include="lib\OpcComRcw.dll" Pack="true" PackagePath="lib\net7.0" />
47+
<Content Include="lib\OpcNetApi.dll" Pack="true" PackagePath="lib\net7.0" />
48+
<Content Include="lib\OpcNetApi.Com.dll" Pack="true" PackagePath="lib\net7.0" />
3349
</ItemGroup>
3450

3551
<ItemGroup>
36-
<Reference Include="OpcComRcw" HintPath="lib\OpcComRcw.dll" Private="true" PackageCopyToOutput="true" />
37-
<Reference Include="OpcNetApi" HintPath="lib\OpcNetApi.dll" Private="true" PackageCopyToOutput="true" />
38-
<Reference Include="OpcNetApi.Com" HintPath="lib\OpcNetApi.Com.dll" Private="true" PackageCopyToOutput="true" />
52+
<Content Include="lib\OpcComRcw.dll" Pack="true" PackagePath="lib\net8.0" />
53+
<Content Include="lib\OpcNetApi.dll" Pack="true" PackagePath="lib\net8.0" />
54+
<Content Include="lib\OpcNetApi.Com.dll" Pack="true" PackagePath="lib\net8.0" />
3955
</ItemGroup>
4056

4157
<ItemGroup>
42-
<Content Include="build\*.targets" PackagePath="build" />
58+
<Content Include="lib\OpcComRcw.dll" Pack="true" PackagePath="lib\net9.0" />
59+
<Content Include="lib\OpcNetApi.dll" Pack="true" PackagePath="lib\net9.0" />
60+
<Content Include="lib\OpcNetApi.Com.dll" Pack="true" PackagePath="lib\net9.0" />
4361
</ItemGroup>
4462

4563
<ItemGroup>

src/extensions/BootstrapBlazor.OpcDa/build/BootstrapBlazor.OpcDa.targets

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)