Skip to content

Commit

Permalink
Merge pull request #227 from nblumhardt/unpin-assembly-version
Browse files Browse the repository at this point in the history
Unpin the assembly version
  • Loading branch information
nblumhardt committed Jun 22, 2021
2 parents d599eb6 + 6f43751 commit be730d4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 0 additions & 2 deletions src/Serilog.Sinks.File/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
using System.Reflection;
using System.Runtime.CompilerServices;

[assembly: AssemblyVersion("2.0.0.0")]

[assembly: CLSCompliant(true)]

[assembly: InternalsVisibleTo("Serilog.Sinks.File.Tests, PublicKey=" +
Expand Down
1 change: 0 additions & 1 deletion src/Serilog.Sinks.File/Serilog.Sinks.File.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryUrl>https://github.com/serilog/serilog-sinks-file</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<RootNamespace>Serilog</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DisableImplicitFrameworkReferences Condition=" '$(TargetFramework)' == 'netstandard1.3' ">true</DisableImplicitFrameworkReferences>
Expand Down
10 changes: 1 addition & 9 deletions test/Serilog.Sinks.File.Tests/RollingFileSinkTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Reflection;
using Xunit;
using Serilog.Events;
using Serilog.Sinks.File.Tests.Support;
Expand Down Expand Up @@ -128,7 +127,7 @@ public void WhenRetentionCountAndTimeIsSetOldFilesAreDeletedByCount()
Assert.True(System.IO.File.Exists(files[2]));
});
}

[Fact]
public void WhenRetentionCountAndArchivingHookIsSetOldFilesAreCopiedAndOriginalDeleted()
{
Expand Down Expand Up @@ -261,13 +260,6 @@ public void IfTheLogFolderDoesNotExistItWillBeCreated()
}
}

[Fact]
public void AssemblyVersionIsFixedAt200()
{
var assembly = typeof(FileLoggerConfigurationExtensions).GetTypeInfo().Assembly;
Assert.Equal("2.0.0.0", assembly.GetName().Version.ToString(4));
}

static void TestRollingEventSequence(params LogEvent[] events)
{
TestRollingEventSequence(
Expand Down

0 comments on commit be730d4

Please sign in to comment.