Skip to content

Commit a3d712d

Browse files
authored
Merge pull request #10 from Numpsy/rw/depends
Only reference System.Diagnostics.Debug from the .NET Standard 1.0 build
2 parents e343a76 + f4d6159 commit a3d712d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Serilog.Sinks.Debug/Serilog.Sinks.Debug.csproj

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<GenerateAssemblyFileVersionAttribute>true</GenerateAssemblyFileVersionAttribute>
2121
<GenerateDocumentationFile>true</GenerateDocumentationFile>
2222
<!-- Don't reference the full NETStandard.Library -->
23-
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
23+
<DisableImplicitFrameworkReferences Condition=" '$(TargetFramework)' == 'netstandard1.0' ">true</DisableImplicitFrameworkReferences>
2424
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
2525
<TreatSpecificWarningsAsErrors />
2626
<RootNamespace>Serilog</RootNamespace>
@@ -33,6 +33,9 @@
3333

3434
<ItemGroup>
3535
<PackageReference Include="Serilog" Version="2.5.0" />
36+
</ItemGroup>
37+
38+
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.0' ">
3639
<PackageReference Include="System.Diagnostics.Debug" Version="4.3.0" />
3740
</ItemGroup>
3841

0 commit comments

Comments
 (0)