43 lines
1.9 KiB
XML
43 lines
1.9 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>netstandard2.0</TargetFramework>
|
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
|
<Description>LCU.Api.Internal.MaidBotSeqApp</Description>
|
|
<Version>1.0.0</Version>
|
|
<RunPostBuildEvent>Always</RunPostBuildEvent>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Extensions.Http" Version="3.1.9" />
|
|
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
|
|
<PackageReference Include="Seq.Apps" Version="5.1.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\LCU.Api.Internal.MaidBotLib\LCU.Api.Internal.MaidBotLib.csproj" PrivateAssets="All" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="CopyProjectReferencesToPackage" DependsOnTargets="BuildOnlySettings;ResolveReferences">
|
|
<ItemGroup>
|
|
<!-- Filter out unnecessary files -->
|
|
<_ReferenceCopyLocalPaths Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference')->WithMetadataValue('PrivateAssets', 'All'))" />
|
|
</ItemGroup>
|
|
|
|
<!-- Print batches for debug purposes -->
|
|
<Message Text="Batch for .nupkg: ReferenceCopyLocalPaths = @(_ReferenceCopyLocalPaths), ReferenceCopyLocalPaths.DestinationSubDirectory = %(_ReferenceCopyLocalPaths.DestinationSubDirectory) Filename = %(_ReferenceCopyLocalPaths.Filename) Extension = %(_ReferenceCopyLocalPaths.Extension)" Importance="High" Condition="'@(_ReferenceCopyLocalPaths)' != ''" />
|
|
|
|
<ItemGroup>
|
|
<!-- Add file to package with consideration of sub folder. If empty, the root folder is chosen. -->
|
|
<BuildOutputInPackage Include="@(_ReferenceCopyLocalPaths)" TargetPath="%(_ReferenceCopyLocalPaths.DestinationSubDirectory)" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
</Project>
|
|
|
|
|