Skip to content

Commit b2a4aa1

Browse files
Bump MartinCostello.BuildKit (#873)
* Bump MartinCostello.BuildKit Bumps [MartinCostello.BuildKit](https://github.com/martincostello/build-kit). Updates `MartinCostello.BuildKit` from 0.1.2 to 0.2.0 - [Release notes](https://github.com/martincostello/build-kit/releases) - [Commits](martincostello/build-kit@v0.1.2...v0.2.0) --- updated-dependencies: - dependency-name: MartinCostello.BuildKit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix build - Remove duplicate attributes. - Use default strong name key. - Fix local build failure from xunit diagnostic messages. - Do not ignore local NuGet packages. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: martincostello <[email protected]>
1 parent d4f8f4b commit b2a4aa1

File tree

8 files changed

+34
-9
lines changed

8 files changed

+34
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ UpgradeLog*.XML
2525
*.GhostDoc.xml
2626
*.log
2727
*.nupkg
28+
!.packages/*.nupkg
2829
*.opensdf
2930
*.[Pp]ublish.xml
3031
*.publishproj

Directory.Build.props

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
<Project>
2-
<ItemGroup>
3-
<AssemblyAttribute Include="System.CLSCompliant">
4-
<_Parameter1>false</_Parameter1>
5-
<_Parameter1_IsLiteral>true</_Parameter1_IsLiteral>
6-
</AssemblyAttribute>
7-
</ItemGroup>
82
<PropertyGroup>
9-
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Logging.XUnit.snk</AssemblyOriginatorKeyFile>
3+
<AssemblyIsCLSCompliant>false</AssemblyIsCLSCompliant>
104
<CodeAnalysisRuleSet>$(MSBuildThisFileDirectory)Logging.XUnit.ruleset</CodeAnalysisRuleSet>
115
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
126
<NuGetAuditMode>direct</NuGetAuditMode>
137
<PackageTags>xunit;logging</PackageTags>
148
<UseArtifactsOutput>true</UseArtifactsOutput>
9+
<UseDefaultAssemblyOriginatorKeyFile>true</UseDefaultAssemblyOriginatorKeyFile>
1510
<AssemblyVersion>0.5.0.0</AssemblyVersion>
1611
<PackageValidationBaselineVersion>0.5.0</PackageValidationBaselineVersion>
1712
<VersionPrefix>0.5.2</VersionPrefix>

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<ItemGroup>
3-
<GlobalPackageReference Include="MartinCostello.BuildKit" Version="0.1.2" />
3+
<GlobalPackageReference Include="MartinCostello.BuildKit" Version="0.2.0" />
44
<GlobalPackageReference Include="ReferenceTrimmer" Version="3.3.11" PrivateAssets="All" />
55
<GlobalPackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="All" />
66
</ItemGroup>

Logging.XUnit.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1515
global.json = global.json
1616
LICENSE = LICENSE
1717
Logging.XUnit.ruleset = Logging.XUnit.ruleset
18-
Logging.XUnit.snk = Logging.XUnit.snk
1918
NuGet.config = NuGet.config
2019
README.md = README.md
2120
stylecop.json = stylecop.json

Logging.XUnit.snk

-596 Bytes
Binary file not shown.

tests/Logging.XUnit.Tests/MartinCostello.Logging.XUnit.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<Description>Tests for MartinCostello.Logging.XUnit.</Description>
4+
<MSBuildTreatWarningsAsErrors>false</MSBuildTreatWarningsAsErrors>
45
<NoWarn>$(NoWarn);CA2234;SA1602</NoWarn>
56
<RootNamespace>MartinCostello.Logging.XUnit</RootNamespace>
67
<TargetFramework>net9.0</TargetFramework>

tests/Logging.XUnit.v3.Tests/MartinCostello.Logging.XUnit.v3.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<PropertyGroup>
33
<DefineConstants>$(DefineConstants);XUNIT_V3</DefineConstants>
44
<Description>Tests for MartinCostello.Logging.XUnit.v3.</Description>
5+
<MSBuildTreatWarningsAsErrors>false</MSBuildTreatWarningsAsErrors>
56
<NoWarn>$(NoWarn);CA2234;SA1602</NoWarn>
67
<OutputType>Exe</OutputType>
78
<RootNamespace>MartinCostello.Logging.XUnit</RootNamespace>

tests/Shared/AssemblyTests.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright (c) Martin Costello, 2018. All rights reserved.
2+
// Licensed under the Apache 2.0 license. See the LICENSE file in the project root for full license information.
3+
4+
namespace MartinCostello.Logging.XUnit;
5+
6+
public static class AssemblyTests
7+
{
8+
[Fact]
9+
public static void Library_Is_Strong_Named()
10+
{
11+
// Arrange
12+
var assembly = typeof(XUnitLoggerOptions).Assembly;
13+
14+
// Act
15+
var name = assembly.GetName();
16+
var actual = name.GetPublicKey();
17+
18+
// Assert
19+
actual.ShouldNotBeNull();
20+
actual.ShouldNotBeEmpty();
21+
Convert.ToHexStringLower(actual).ShouldBe("00240000048000009400000006020000002400005253413100040000010001004b0b2efbada897147aa03d2076278890aefe2f8023562336d206ec8a719b06e89461c31b43abec615918d509158629f93385930c030494509e418bf396d69ce7dbe0b5b2db1a81543ab42777cb98210677fed69dbeb3237492a7ad69e87a1911ed20eb2d7c300238dc6f6403e3d04a1351c5cb369de4e022b18fbec70f7d21ed");
22+
23+
actual = name.GetPublicKeyToken();
24+
actual.ShouldNotBeNull();
25+
actual.ShouldNotBeEmpty();
26+
Convert.ToHexStringLower(actual).ShouldBe("9a192a7522c9e1a0");
27+
}
28+
}

0 commit comments

Comments
 (0)