File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939
4040 <!-- Disable "BinaryFormatter is obsolete" warnings for test projects -->
4141 <NoWarn Condition =" $(MSBuildProjectName.Contains('Tests')) == 'true'" >$(NoWarn);SYSLIB0011</NoWarn >
42+ <!-- Enable Usage of BinaryFormatter in test projects -->
43+ <EnableUnsafeBinaryFormatterSerialization
44+ Condition =" '$(TargetFramework)'=='net8.0' AND $(MSBuildProjectName.Contains('Tests')) == 'true'" >true</EnableUnsafeBinaryFormatterSerialization >
4245 </PropertyGroup >
4346
4447 <!-- Debug-NET8, Release-NET8 are mostly for development convenience -->
45- <PropertyGroup Condition = " $(Configuration.Contains('NET7 ')) == 'true'" >
48+ <PropertyGroup Condition = " $(Configuration.Contains('NET8 ')) == 'true'" >
4649 <!-- hard binding to net8, no property and env variable allowed-->
4750 <TargetFrameworks >net8.0</TargetFrameworks >
4851 </PropertyGroup >
Original file line number Diff line number Diff line change 1010 <AssemblyOriginatorKeyFile >$(OrmKeyFile)</AssemblyOriginatorKeyFile >
1111 <AllowUnsafeBlocks >true</AllowUnsafeBlocks >
1212 <WarningLevel >2</WarningLevel >
13- <EnableUnsafeBinaryFormatterSerialization Condition =" '$(TargetFramework)'=='net8.0'" >true</EnableUnsafeBinaryFormatterSerialization >
1413 </PropertyGroup >
1514 <Import Project =" $(SolutionDir)MSBuild\DataObjects.Net.InternalBuild.targets" />
1615 <ItemGroup Condition =" '$(TargetFramework)'=='net6.0'" >
You can’t perform that action at this time.
0 commit comments