mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-14 05:36:07 +00:00
100 lines
5.0 KiB
XML
100 lines
5.0 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<!-- Assembly Properties -->
|
|
<TargetFrameworks>net20;net35;net40;net452;net462;net472;net48;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
<CheckEolTargetFramework>false</CheckEolTargetFramework>
|
|
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
|
|
<LangVersion>latest</LangVersion>
|
|
<NoWarn>CS0162;CS0612</NoWarn>
|
|
<Nullable>enable</Nullable>
|
|
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<Version>3.3.0</Version>
|
|
<!-- Mostly added due to external libraries -->
|
|
<WarningsNotAsErrors>CS8600;CS8601;CS8602;CS8603;CS8604;CS8605;CS8618;CS8625;CS8634;CS8765;IL3000;NU5100</WarningsNotAsErrors>
|
|
|
|
<!-- Package Properties -->
|
|
<Authors>Matt Nadareski</Authors>
|
|
<Description>Protection scanning library</Description>
|
|
<Copyright>Copyright (c)2018-2024 Matt Nadareski</Copyright>
|
|
<PackageProjectUrl>https://github.com/SabreTools/</PackageProjectUrl>
|
|
<RepositoryUrl>https://github.com/SabreTools/BinaryObjectScanner</RepositoryUrl>
|
|
<RepositoryType>git</RepositoryType>
|
|
<PackageTags>protection copy-protection scanning packer</PackageTags>
|
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
|
</PropertyGroup>
|
|
|
|
<!-- Set a build flag for Windows specifically -->
|
|
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
|
|
<DefineConstants>$(DefineConstants);WIN</DefineConstants>
|
|
</PropertyGroup>
|
|
|
|
<!-- Exclude certain parts of external modules for by default -->
|
|
<PropertyGroup>
|
|
<DefaultItemExcludes>
|
|
$(DefaultItemExcludes);
|
|
**\AssemblyInfo.cs;
|
|
_EXTERNAL\LessIO\src\LessIO.Tests\**;
|
|
_EXTERNAL\libmspack4n\lib\**;
|
|
_EXTERNAL\libmspack4n\libmspack4ntest\**;
|
|
_EXTERNAL\stormlibsharp\lib\**;
|
|
_EXTERNAL\stormlibsharp\src\TestConsole\**
|
|
</DefaultItemExcludes>
|
|
</PropertyGroup>
|
|
|
|
<!-- Exclude all external modules for .NET Framework 2.0, .NET Framework 3.5, or non-Windows
|
|
builds -->
|
|
<PropertyGroup Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR !$(RuntimeIdentifier.StartsWith(`win-x86`))">
|
|
<DefaultItemExcludes>
|
|
$(DefaultItemExcludes);
|
|
_EXTERNAL\**
|
|
</DefaultItemExcludes>
|
|
</PropertyGroup>
|
|
|
|
<!-- These are needed for dealing with native Windows DLLs -->
|
|
<ItemGroup Condition="!$(TargetFramework.StartsWith(`net2`)) AND !$(TargetFramework.StartsWith(`net3`)) AND $(RuntimeIdentifier.StartsWith(`win-x86`))">
|
|
<Content Include="*.dll">
|
|
<Pack>true</Pack>
|
|
<PackagePath>contentFiles;content</PackagePath>
|
|
<IncludeInPackage>true</IncludeInPackage>
|
|
<CopyToOutput>true</CopyToOutput>
|
|
<BuildAction>Content</BuildAction>
|
|
<copyToOutput>true</copyToOutput>
|
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
|
<CopyToPublishDirectory>Always</CopyToPublishDirectory>
|
|
</Content>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<InternalsVisibleTo Include="BinaryObjectScanner.Test" />
|
|
</ItemGroup>
|
|
|
|
<!-- Support for old .NET versions -->
|
|
<ItemGroup Condition="$(TargetFramework.StartsWith(`net2`))">
|
|
<PackageReference Include="Net35.Actions" Version="1.1.0" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="!$(TargetFramework.StartsWith(`net2`)) AND !$(TargetFramework.StartsWith(`net3`))">
|
|
<PackageReference Include="OpenMcdf" Version="2.3.1" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR $(TargetFramework.StartsWith(`net40`))">
|
|
<PackageReference Include="MinAsyncBridge" Version="0.12.4" />
|
|
</ItemGroup>
|
|
<ItemGroup Condition="!$(TargetFramework.StartsWith(`net2`)) AND !$(TargetFramework.StartsWith(`net3`)) AND !$(TargetFramework.StartsWith(`net40`)) AND !$(TargetFramework.StartsWith(`net452`))">
|
|
<PackageReference Include="SharpCompress" Version="0.38.0" />
|
|
<PackageReference Include="System.Text.Encoding.CodePages" Version="8.0.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="SabreTools.Compression" Version="0.6.1" />
|
|
<PackageReference Include="SabreTools.Hashing" Version="1.4.0" />
|
|
<PackageReference Include="SabreTools.IO" Version="1.6.1" />
|
|
<PackageReference Include="SabreTools.Matching" Version="1.5.0" />
|
|
<PackageReference Include="SabreTools.Models" Version="1.5.5" />
|
|
<PackageReference Include="SabreTools.Serialization" Version="1.8.0" />
|
|
<PackageReference Include="UnshieldSharp" Version="1.9.1" />
|
|
<PackageReference Include="WiseUnpacker" Version="1.5.1" />
|
|
</ItemGroup>
|
|
|
|
</Project> |