File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments