mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-20 00:31:32 +08:00
f3d3fd87d3
Two refactors that together reshape how the stack tier is laid out:
1. Rename `Opc.Ua` project to `Opc.Ua.Core.Types`
* Stack/Opc.Ua/ -> Stack/Opc.Ua.Core.Types/ (git mv preserves history)
* Opc.Ua.csproj -> Opc.Ua.Core.Types.csproj
* AssemblyName : `Opc.Ua` -> `Opc.Ua.Core.Types`
* PackageId : `OPCFoundation.NetStandard.Opc.Ua` ->
`OPCFoundation.NetStandard.Opc.Ua.Core.Types`
* RootNamespace : kept as `Opc.Ua`
* StackGeneration.cs assembly-name switch updated; the renamed
assembly still produces `StackGenerationType.Models`.
* The `OPCFoundation.NetStandard.Opc.Ua` name now belongs solely to
the roll-up meta-package (nuget/Opc.Ua.nuspec); the meta-package's
former self-dependency is replaced with the new
`.Core.Types` package, and `.Symbols.nuspec` gains the
matching `.Core.Types.Debug` debug-symbol dependency.
2. Move `Opc.Ua.Security.Certificates` from Libraries/ to Stack/
It is a stack-tier dependency consumed by Opc.Ua.Core, not a
higher-level library extension, so it now sits alongside the other
stack projects.
Both refactors update the same set of cross-cutting infrastructure:
- UA.slnx, UA Core Library.slnx, Applications/ConsoleReferenceServer/Dockerfile
- .azurepipelines/signlist{Debug,Release}.txt
- ProjectReferences across Stack/, Libraries/, Tests/, Fuzzing/
- Tests/Opc.Ua.SourceGeneration.Stack.Tests/StackGenerationAssemblyTests.cs
- Docs/PlatformBuild.md and .github/copilot-instructions.md (new
Core.Types package listed)
Verification
* dotnet build UA.slnx -c Debug -- succeeded, 0 errors
* StackGenerationAssemblyTests : 5 passed
* Opc.Ua.SourceGeneration.Tests : 40 passed
* Opc.Ua.SourceGeneration.Core.Tests : 3514 passed, 8 skipped
* Opc.Ua.Core.Tests (Stack filter) : 1982 passed, 80 skipped
* Opc.Ua.Security.Certificates.Tests : 239 passed
48 lines
2.3 KiB
XML
48 lines
2.3 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFrameworks>$(LibCoreTargetFrameworks);netstandard2.0</TargetFrameworks>
|
|
<PackageId>$(PackagePrefix).Opc.Ua.Types</PackageId>
|
|
<AssemblyName>$(AssemblyPrefix).Types</AssemblyName>
|
|
<RootNamespace>Opc.Ua</RootNamespace>
|
|
<Description>OPC UA Type Library</Description>
|
|
<IsPackable>true</IsPackable>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net10.0'))">true</IsAotCompatible>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
|
|
<PackageId>$(PackageId).Debug</PackageId>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<InternalsVisibleTo Include="Opc.Ua.Core.Types" />
|
|
<InternalsVisibleTo Include="Opc.Ua.Types.Tests" />
|
|
<InternalsVisibleTo Include="Opc.Ua.SourceGeneration.Core.Tests" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="System.Collections.Immutable" />
|
|
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48'">
|
|
<PackageReference Include="Microsoft.Bcl.HashCode" />
|
|
<PackageReference Include="System.Threading.Tasks.Extensions" />
|
|
<PackageReference Include="System.Diagnostics.DiagnosticSource" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'net472' OR '$(TargetFramework)' == 'net48' OR '$(TargetFramework)' == 'netstandard2.1'">
|
|
<PackageReference Include="System.Text.Json" />
|
|
</ItemGroup>
|
|
<!-- Polyfills for .NET Standard 2.0 and .net 4.8 -->
|
|
<ItemGroup>
|
|
<PackageReference Include="PolySharp" PrivateAssets="All" />
|
|
</ItemGroup>
|
|
<PropertyGroup>
|
|
<PolySharpUsePublicAccessibilityForGeneratedTypes>true</PolySharpUsePublicAccessibilityForGeneratedTypes>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<EmbeddedResource Include="Schema\BuiltInTypes.xml" />
|
|
<EmbeddedResource Include="Schema\UANodeSet.xsd" />
|
|
<EmbeddedResource Include="Schema\BuiltInTypes.bsd" />
|
|
<EmbeddedResource Include="Schema\StandardTypes.bsd" />
|
|
</ItemGroup>
|
|
<Target Name="GetPackagingOutputs" />
|
|
</Project>
|