Skip to content

Commit 763a1da

Browse files
committed
feat!: Created Solution File (#1)
* feat: Created Solution File * chore: Created projects * fix: Renamed project typo * chore: Initial implementation * chore: Extended implementation * chore: Added first tests * chore: Activated SonarQube * chore: Updated `.gitmodules` [skip ci] * chore: Finished implementation, added tests * fix: Removed timestamp * fix: Removed `.AutoVerify` * fix: Removed unused prefix * fix: Solution reference * fix: Removed unused solution references * fix: Verify files
1 parent fd6d02b commit 763a1da

File tree

37 files changed

+1815
-90
lines changed

37 files changed

+1815
-90
lines changed

.github/template-sync.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/cicd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ jobs:
2424
name: Build & Tests
2525
uses: dailydevops/pipelines/.github/workflows/[email protected]
2626
with:
27-
disablePublish: true
27+
enableSonarQube: true
2828
dotnet-logging: ${{ inputs.dotnet-logging }}
2929
dotnet-version: |
3030
8.x
31-
solution: ###SOLUTION###
31+
solution: ./Logging.XUnit.sln
3232
secrets: inherit

.github/workflows/template-sync.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "eng"]
22
path = eng
33
url = https://github.com/dailydevops/dotnet-engineering.git
4-
update = merge
4+
update = rebase

Directory.Build.props

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,11 @@
99
<Import Project="$(DirEngineeringSettings)src.build.props" Condition=" '$(IsTestableProject)' != 'true' " />
1010
<Import Project="$(DirEngineeringSettings)tests.build.props" Condition=" '$(IsTestableProject)' == 'true' " />
1111

12+
<PropertyGroup>
13+
<ProjectTargetFrameworks>net6.0;net7.0;net8.0</ProjectTargetFrameworks>
14+
<TestTargetFrameworks>net6.0;net7.0;net8.0</TestTargetFrameworks>
15+
16+
<DisableBannedApiForUTC>true</DisableBannedApiForUTC>
17+
</PropertyGroup>
18+
1219
</Project>

Directory.Packages.props

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
<Project>
2-
32
<PropertyGroup>
43
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
54
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
65
</PropertyGroup>
7-
86
<ItemGroup>
9-
<GlobalPackageReference Include="CSharpier.MSBuild" Version="0.26.3" />
7+
<GlobalPackageReference Include="CSharpier.MSBuild" Version="0.28.2" />
108
<GlobalPackageReference Include="GitVersion.MsBuild" Version="5.12.0" />
119
<GlobalPackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="3.3.4" />
1210
<GlobalPackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="8.0.0" />
1311
<GlobalPackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
14-
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.8.14" />
15-
<GlobalPackageReference Include="SonarAnalyzer.CSharp" Version="9.16.0.82469" Condition=" '$(BuildingInsideVisualStudio)' == 'true' " />
12+
<GlobalPackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.10.48" />
13+
<GlobalPackageReference Include="SonarAnalyzer.CSharp" Version="9.25.0.90414" Condition=" '$(BuildingInsideVisualStudio)' == 'true' " />
1614
</ItemGroup>
17-
18-
</Project>
15+
<ItemGroup>
16+
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
17+
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
18+
<PackageVersion Include="Microsoft.Bcl.TimeProvider" Version="8.0.1" />
19+
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
20+
<PackageVersion Include="Microsoft.Extensions.Logging.Configuration" Version="8.0.0" />
21+
<PackageVersion Include="Microsoft.Extensions.TimeProvider.Testing" Version="8.5.0" />
22+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
23+
<PackageVersion Include="NetEvolve.Arguments" Version="1.2.0" />
24+
<PackageVersion Include="NetEvolve.Logging.Abstractions" Version="1.1.0" />
25+
<PackageVersion Include="Verify.Xunit" Version="24.2.0" />
26+
<PackageVersion Include="xunit" Version="2.8.0" />
27+
<PackageVersion Include="xunit.extensibility.core" Version="2.8.0" />
28+
<PackageVersion Include="xunit.extensibility.execution" Version="2.8.0" />
29+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.0" />
30+
</ItemGroup>
31+
</Project>

Logging.XUnit.sln

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.0.31903.59
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{D9954CB8-DB50-4331-A461-36A4AD4DA06E}"
6+
ProjectSection(SolutionItems) = preProject
7+
.editorconfig = .editorconfig
8+
.filenesting.json = .filenesting.json
9+
.gitattributes = .gitattributes
10+
.gitignore = .gitignore
11+
.gitmodules = .gitmodules
12+
Directory.Build.props = Directory.Build.props
13+
Directory.Build.targets = Directory.Build.targets
14+
Directory.Packages.props = Directory.Packages.props
15+
Directory.Solution.props = Directory.Solution.props
16+
GitVersion.yml = GitVersion.yml
17+
LICENSE = LICENSE
18+
new-project.ps1 = new-project.ps1
19+
nuget.config = nuget.config
20+
README.md = README.md
21+
update-solution.ps1 = update-solution.ps1
22+
EndProjectSection
23+
EndProject
24+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{EFE8181B-6FAB-4E04-BD9B-557C1286B858}"
25+
EndProject
26+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{BD750CCE-0318-424D-89B4-9C66EF329E96}"
27+
EndProject
28+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetEvolve.Logging.XUnit", "src\NetEvolve.Logging.XUnit\NetEvolve.Logging.XUnit.csproj", "{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}"
29+
EndProject
30+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetEvolve.Logging.XUnit.Tests.Unit", "tests\NetEvolve.Logging.XUnit.Tests.Unit\NetEvolve.Logging.XUnit.Tests.Unit.csproj", "{EAAD2C22-48F4-4E37-9A46-0350C6B84388}"
31+
EndProject
32+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetEvolve.Logging.XUnit.Tests.Integration", "tests\NetEvolve.Logging.XUnit.Tests.Integration\NetEvolve.Logging.XUnit.Tests.Integration.csproj", "{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}"
33+
EndProject
34+
Global
35+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
36+
Debug|Any CPU = Debug|Any CPU
37+
Release|Any CPU = Release|Any CPU
38+
EndGlobalSection
39+
GlobalSection(SolutionProperties) = preSolution
40+
HideSolutionNode = FALSE
41+
EndGlobalSection
42+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
43+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
44+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}.Debug|Any CPU.Build.0 = Debug|Any CPU
45+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}.Release|Any CPU.ActiveCfg = Release|Any CPU
46+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}.Release|Any CPU.Build.0 = Release|Any CPU
47+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388}.Debug|Any CPU.Build.0 = Debug|Any CPU
49+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388}.Release|Any CPU.ActiveCfg = Release|Any CPU
50+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388}.Release|Any CPU.Build.0 = Release|Any CPU
51+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
52+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}.Debug|Any CPU.Build.0 = Debug|Any CPU
53+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}.Release|Any CPU.ActiveCfg = Release|Any CPU
54+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}.Release|Any CPU.Build.0 = Release|Any CPU
55+
EndGlobalSection
56+
GlobalSection(NestedProjects) = preSolution
57+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF} = {EFE8181B-6FAB-4E04-BD9B-557C1286B858}
58+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388} = {BD750CCE-0318-424D-89B4-9C66EF329E96}
59+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12} = {BD750CCE-0318-424D-89B4-9C66EF329E96}
60+
EndGlobalSection
61+
EndGlobal
62+
CPU.Build.0 = Release|Any CPU
63+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
64+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}.Debug|Any CPU.Build.0 = Debug|Any CPU
65+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}.Release|Any CPU.ActiveCfg = Release|Any CPU
66+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF}.Release|Any CPU.Build.0 = Release|Any CPU
67+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
68+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388}.Debug|Any CPU.Build.0 = Debug|Any CPU
69+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388}.Release|Any CPU.ActiveCfg = Release|Any CPU
70+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388}.Release|Any CPU.Build.0 = Release|Any CPU
71+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
72+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}.Debug|Any CPU.Build.0 = Debug|Any CPU
73+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}.Release|Any CPU.ActiveCfg = Release|Any CPU
74+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12}.Release|Any CPU.Build.0 = Release|Any CPU
75+
EndGlobalSection
76+
GlobalSection(NestedProjects) = preSolution
77+
{3F3CD6EC-4636-4B58-8400-09AC2B9BAFDF} = {EFE8181B-6FAB-4E04-BD9B-557C1286B858}
78+
{EAAD2C22-48F4-4E37-9A46-0350C6B84388} = {BD750CCE-0318-424D-89B4-9C66EF329E96}
79+
{F2B38EDD-63F9-4027-9EA6-D1E0C6387C12} = {BD750CCE-0318-424D-89B4-9C66EF329E96}
80+
EndGlobalSection
81+
EndGlobal

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# template-dotnet
2-
.NET template for repositories
1+
# NetEvolve.Logging.XUnit
2+
3+
This library provides a logging implementation for [XUnit](https://xunit.net/). When using this library, you have the ability to access the logs generated while executing your tests. This can be useful for debugging purposes.

new-project.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ New-Project `
4949
-DisableTests $DisableTests `
5050
-DisableUnitTests $DisableUnitTests `
5151
-DisableIntegrationTests $DisableIntegrationTests `
52-
-SolutionFile "###SOLUTION###" `
52+
-SolutionFile "./Logging.XUnit.sln" `
5353
-OutputDirectory (Get-Location) `
5454
-EnableProjectGrouping $EnableProjectGrouping `
5555
-DisableArchitectureTests $DisableArchitectureTests

new-solution.ps1

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)