This repository was archived by the owner on Jul 9, 2023. It is now read-only.
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,11 @@ public static void Initialize()
73
73
return false ;
74
74
} ;
75
75
76
+ #if NET40
76
77
//Fix a bug in .NET 4.0
77
78
NetFrameworkHelper . UrlPeriodFix ( ) ;
78
79
//useUnsafeHeaderParsing
80
+ #endif
79
81
NetFrameworkHelper . ToggleAllowUnsafeHeaderParsing ( true ) ;
80
82
}
81
83
Original file line number Diff line number Diff line change 20
20
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" >
21
21
<PlatformTarget >AnyCPU</PlatformTarget >
22
22
<OutputPath >bin\Debug\</OutputPath >
23
- <DefineConstants >DEBUG</DefineConstants >
23
+ <DefineConstants >DEBUG;NET40 </DefineConstants >
24
24
<AllowUnsafeBlocks >true</AllowUnsafeBlocks >
25
25
<TargetFrameworkVersion >v4.0</TargetFrameworkVersion >
26
26
</PropertyGroup >
27
27
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Release|AnyCPU'" >
28
28
<PlatformTarget >AnyCPU</PlatformTarget >
29
29
<OutputPath >bin\Release\</OutputPath >
30
30
<TargetFrameworkVersion >v4.0</TargetFrameworkVersion >
31
+ <DefineConstants >NET40</DefineConstants >
31
32
</PropertyGroup >
32
33
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug-Net45|AnyCPU'" >
33
34
<DebugSymbols >true</DebugSymbols >
You can’t perform that action at this time.
0 commit comments