blob: 2a1828760ba5ce5b024a079297e7b6ca1a921128 [file]
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>log4net.Ext.Mail</PackageId>
<Product>Apache log4net.Ext.Mail</Product>
<Title>$(Product)</Title>
<Description>log4net.Ext.Mail provides Appenders for sending mails</Description>
<Platforms>AnyCPU</Platforms>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<Configurations>Debug;Release</Configurations>
<OutputType>Library</OutputType>
<MapFileExtensions>true</MapFileExtensions>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<OutputPath>..\..\build\$(Configuration)</OutputPath>
<PackageOutputPath>..\..\build\artifacts</PackageOutputPath>
<DocumentationFile>..\..\build\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
</PropertyGroup>
<PropertyGroup Label="NuGet generation">
<Authors>The Apache Software Foundation</Authors>
<DevelopmentDependency>false</DevelopmentDependency>
<IsPackable>true</IsPackable>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageProjectUrl>https://logging.apache.org/log4net/</PackageProjectUrl>
<PackageIcon>package-icon.png</PackageIcon>
<PackageTags>logging log tracing mail smtp</PackageTags>
<Owners>Apache Logging Project</Owners>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AssemblyTitle>Apache log4net mail extensions</AssemblyTitle>
<AssemblyProduct>$(AssemblyName)</AssemblyProduct>
<AssemblyCompany>The Apache Software Foundation</AssemblyCompany>
<Copyright>Copyright %A9 2026 - $([System.DateTime]::Now.Year) The Apache Software Foundation</Copyright>
<AssemblyCopyright>$(Copyright)</AssemblyCopyright>
<AssemblyTrademark>Apache and Apache log4net are trademarks of The Apache Software Foundation</AssemblyTrademark>
<AssemblyDefaultAlias>$(AssemblyName)</AssemblyDefaultAlias>
</PropertyGroup>
<PropertyGroup>
<PackageReadmeFile>README.md</PackageReadmeFile>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)'=='Debug' ">
<AssemblyConfiguration>Debug</AssemblyConfiguration>
<DefineConstants>TRACE;DEBUG;$(DefineConstants)</DefineConstants>
<GeneratePackageOnBuild>$(GeneratePackages)</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)'=='Release' ">
<AssemblyConfiguration>Retail</AssemblyConfiguration>
<!--
Unlike log4net, this assembly is deliberately not strong named: it is a satellite package
with no COM or GAC scenario, and signing it later would be a breaking change for consumers.
Hence no SignAssembly/AssemblyOriginatorKeyFile here, and no STRONG constant either - it
is not referenced by any source file in this project.
-->
<DefineConstants>TRACE;$(DefineConstants)</DefineConstants>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PathMap>$(MSBuildProjectDirectory)\=$(MSBuildProjectDirectory.Replace($(MSBuildThisFileDirectory),"D:\Git\apache\logging-log4net"))\</PathMap>
</PropertyGroup>
<PropertyGroup />
<ItemGroup>
<InternalsVisibleTo Include="log4net.Ext.Mail.Tests" />
</ItemGroup>
<ItemGroup Label="Shared sources from log4net">
<!-- Log4NetAssert and the attributes it uses are internal to log4net, so they are
compiled into this assembly rather than referenced. -->
<Compile Include="..\log4net\Diagnostics\CodeAnalysis\CallerArgumentExpressionAttribute.cs" Link="Diagnostics\CodeAnalysis\CallerArgumentExpressionAttribute.cs" />
<Compile Include="..\log4net\Diagnostics\CodeAnalysis\NotNullAttribute.cs" Link="Diagnostics\CodeAnalysis\NotNullAttribute.cs" />
<Compile Include="..\log4net\Diagnostics\CodeAnalysis\ValidatedNotNullAttribute.cs" Link="Diagnostics\CodeAnalysis\ValidatedNotNullAttribute.cs" />
<Compile Include="..\log4net\Util\Log4NetAssert.cs" Link="Util\Log4NetAssert.cs" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" Pack="true" PackagePath="\" />
</ItemGroup>
<ItemGroup Label="Packaging">
<Content Include="..\..\package-icon.png" PackagePath="package-icon.png">
<Link>package-icon.png</Link>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\log4net\log4net.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="MailKit" Version="$(MailKitPackageVersion)" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="$(MicrosoftSourceLinkGitHubPackageVersion)" PrivateAssets="All" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="$(MicrosoftNetAnalyzersPackageVersion)" PrivateAssets="All" IncludeAssets="All" />
</ItemGroup>
<Target Name="_ResolveCopyLocalNuGetPackagePdbsAndXml" Condition="$(CopyLocalLockFileAssemblies) == true" AfterTargets="ResolveReferences">
<!-- "Workaround" for missing '.pdb'-Files from NuGet Packages -->
<!-- https://github.com/dotnet/sdk/issues/1458#issuecomment-420456386 -->
<ItemGroup>
<ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->'%(RootDir)%(Directory)%(Filename).pdb')" Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != '' and Exists('%(RootDir)%(Directory)%(Filename).pdb')" />
<ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->'%(RootDir)%(Directory)%(Filename).xml')" Condition="'%(ReferenceCopyLocalPaths.NuGetPackageId)' != '' and Exists('%(RootDir)%(Directory)%(Filename).xml')" />
</ItemGroup>
</Target>
</Project>