Files
2026-04-15 13:38:52 +02:00

55 lines
2.3 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IncludeBuildOutput>false</IncludeBuildOutput>
<AssemblyName>$(AssemblyPrefix).SourceGeneration</AssemblyName>
<RootNamespace>Opc.Ua.SourceGeneration</RootNamespace>
<Description>OPC UA source generation Library</Description>
<!-- Suppress CS8002: SourceGenerator.Foundations.Contracts is not strong-named.
Source generators are packaged as analyzers and not referenced at runtime. -->
<NoWarn>$(NoWarn);CS8002</NoWarn>
</PropertyGroup>
<!-- Package as source generator -->
<PropertyGroup>
<PackageId>$(PackagePrefix).Opc.Ua.SourceGeneration</PackageId>
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<IsPackable>true</IsPackable>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageLicenseFile></PackageLicenseFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<NoPackageAnalysis>true</NoPackageAnalysis>
</PropertyGroup>
<PropertyGroup>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<AssemblySearchPath_UseOutDir>true</AssemblySearchPath_UseOutDir>
<SgfAddModuleInitializerAttribute>false</SgfAddModuleInitializerAttribute>
</PropertyGroup>
<ItemGroup>
<CompilerVisibleProperty Include="SgfAddModuleInitializerAttribute" />
</ItemGroup>
<ItemGroup>
<InternalsVisibleTo Include="Opc.Ua.SourceGeneration.Tests"/>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
<PackageReference Include="SourceGenerator.Foundations">
<!-- Make private asset because assembly name comparer symbol conflict in test -->
<PrivateAssets>all</PrivateAssets>
<OutputItemType>Analzyer</OutputItemType>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Update="NETStandard.Library" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Opc.Ua.SourceGeneration.Core\Opc.Ua.SourceGeneration.Core.csproj">
<PrivateAssets>all</PrivateAssets>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<None Include="OPCFoundation.Opc.Ua.SourceGeneration.props" Visible="false" Pack="true" PackagePath="build" />
</ItemGroup>
</Project>