Skip to content

Commit 974d459

Browse files
committed
Temporary fix for nlog until NLog/NLog#729 is fixed.
@ejsmith nlog 3.2 doesn't include the fluent static log class.. So we can only build for .net 4.5
1 parent b71b467 commit 974d459

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Libraries/Build.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ ForEach ($p in $client_projects) {
1313
Continue;
1414
}
1515

16+
# Temporary fix for nlog until https://github.com/NLog/NLog/issues/729 is fixed.
17+
$isNLog = ($($p.Name) -eq "Exceptionless.NLog") -or ($($p.Name) -eq "Exceptionless.NLog.Signed")
18+
If ($isNLog -and ($($b.TargetFrameworkVersionProperty) -ne "NET45")) {
19+
Continue;
20+
}
21+
1622
$targetPortable = 'false';
1723
If ($isPclClient -and ($($b.NuGetDir) -eq "portable-net40+sl50+win+wpa81+wp80")) {
1824
$targetPortable = 'true';

Source/Platforms/NLog/Exceptionless.NLog.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>Exceptionless.NLog</RootNamespace>
1111
<AssemblyName>Exceptionless.NLog</AssemblyName>
12-
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile>
1515
</TargetFrameworkProfile>
@@ -42,7 +42,7 @@
4242
</PropertyGroup>
4343
<ItemGroup>
4444
<Reference Include="NLog">
45-
<HintPath>..\..\..\packages\NLog.3.2.1\lib\net40\NLog.dll</HintPath>
45+
<HintPath>..\..\..\packages\NLog.3.2.1\lib\net45\NLog.dll</HintPath>
4646
</Reference>
4747
<Reference Include="System" />
4848
<Reference Include="System.Core" />

0 commit comments

Comments
 (0)