Skip to content

Commit 84b9b46

Browse files
committed
Set these properties because MPQ is funny like that
1 parent 33e83b9 commit 84b9b46

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

BinaryObjectScanner/BinaryObjectScanner.csproj

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@
2626
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2727
</PropertyGroup>
2828

29+
<!-- Support All Frameworks -->
30+
<PropertyGroup Condition="$(TargetFramework.StartsWith(`net2`)) OR $(TargetFramework.StartsWith(`net3`)) OR $(TargetFramework.StartsWith(`net4`))">
31+
<RuntimeIdentifiers>win-x86;win-x64</RuntimeIdentifiers>
32+
</PropertyGroup>
33+
<PropertyGroup Condition="$(TargetFramework.StartsWith(`netcoreapp`)) OR $(TargetFramework.StartsWith(`net5`))">
34+
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64</RuntimeIdentifiers>
35+
</PropertyGroup>
36+
<PropertyGroup Condition="$(TargetFramework.StartsWith(`net6`)) OR $(TargetFramework.StartsWith(`net7`)) OR $(TargetFramework.StartsWith(`net8`)) OR $(TargetFramework.StartsWith(`net9`))">
37+
<RuntimeIdentifiers>win-x86;win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
38+
</PropertyGroup>
39+
<PropertyGroup Condition="$(RuntimeIdentifier.StartsWith(`osx-arm`))">
40+
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
41+
</PropertyGroup>
42+
2943
<!-- Set a build flag for Windows specifically -->
3044
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
3145
<DefineConstants>$(DefineConstants);WINX86</DefineConstants>

ProtectionScan/ProtectionScan.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
2828
</PropertyGroup>
2929

30+
<!-- Set a build flag for Windows specifically -->
31+
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x86'">
32+
<DefineConstants>$(DefineConstants);WINX86</DefineConstants>
33+
</PropertyGroup>
34+
<PropertyGroup Condition="'$(RuntimeIdentifier)'=='win-x64'">
35+
<DefineConstants>$(DefineConstants);WINX64</DefineConstants>
36+
</PropertyGroup>
37+
3038
<ItemGroup>
3139
<ProjectReference Include="..\BinaryObjectScanner\BinaryObjectScanner.csproj" />
3240
</ItemGroup>

0 commit comments

Comments
 (0)