Skip to content

Commit 9f87e8b

Browse files
committed
feat(dependencies): add NaughtyStrings to Default Dependencies
feat(solution): add NestedProjects section to solution file chore: add commit message instructions to settings chore: create Justfile for build and benchmark commands chore: add Directory.Build.props for benchmark project
1 parent 879243b commit 9f87e8b

File tree

5 files changed

+48
-1
lines changed

5 files changed

+48
-1
lines changed

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
// github copilot commit message instructions (preview)
3+
"github.copilot.chat.commitMessageGeneration.instructions": [
4+
{ "text": "Use conventional commit format: type(scope): description" },
5+
{ "text": "Use imperative mood: 'Add feature' not 'Added feature'" },
6+
{ "text": "Keep subject line under 50 characters" },
7+
{ "text": "Use types: feat, fix, docs, style, refactor, perf, test, chore, ci" },
8+
{ "text": "Include scope when relevant (e.g., api, ui, auth)" },
9+
{ "text": "Reference issue numbers with # prefix" }
10+
]
11+
}

Directory.Packages.props

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
44
</PropertyGroup>
55

6+
<ItemGroup Label="Default Dependencies">
7+
<PackageVersion Include="NaughtyStrings" Version="2.4.1" />
8+
</ItemGroup>
9+
610
<ItemGroup Label="Dependencies">
711
<PackageVersion Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
812
<PackageVersion Include="Microsoft.Extensions.Caching.Memory" Version="8.0.1" />
913
<PackageVersion Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
1014
<PackageVersion Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.2" />
11-
<PackageVersion Include="NaughtyStrings" Version="2.4.1" />
15+
1216
</ItemGroup>
1317

1418
<ItemGroup Label="Libraries for comparison">

Justfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
set shell := ["pwsh", "-c"]
2+
3+
4+
# Build the solution
5+
build:
6+
dotnet build
7+
8+
# Run benchmarks (Release)
9+
bench:
10+
dotnet run --configuration Release --project "perf/HttpUserAgentParser.Benchmarks/HttpUserAgentParser.Benchmarks.csproj" --framework net10.0
11+
12+
13+

MyCSharp.HttpUserAgentParser.sln

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ Global
8181
GlobalSection(SolutionProperties) = preSolution
8282
HideSolutionNode = FALSE
8383
EndGlobalSection
84+
GlobalSection(NestedProjects) = preSolution
85+
{45927CF7-1BF4-479B-BBAA-8AD9CA901AE4} = {008A2BAB-78B4-42EB-A5D4-DE434438CEF0}
86+
{3357BEC0-8216-409E-A539-F9A71DBACB81} = {008A2BAB-78B4-42EB-A5D4-DE434438CEF0}
87+
{F16697F7-74B4-441D-A0C0-1A0572AC3AB0} = {F54C9296-4EF7-40F0-9F20-F23A2270ABC9}
88+
{75960783-8BF9-479C-9ECF-E9653B74C9A2} = {F54C9296-4EF7-40F0-9F20-F23A2270ABC9}
89+
{3C8CCD44-F47C-4624-8997-54C42F02E376} = {008A2BAB-78B4-42EB-A5D4-DE434438CEF0}
90+
{39FC1EC2-2AD3-411F-A545-AB6CCB94FB7E} = {F54C9296-4EF7-40F0-9F20-F23A2270ABC9}
91+
{A0D213E9-6408-46D1-AFAF-5096C2F6E027} = {FAAD18A0-E1B8-448D-B611-AFBDA8A89808}
92+
{165EE915-1A4F-4875-90CE-1A2AE1540AE7} = {F54C9296-4EF7-40F0-9F20-F23A2270ABC9}
93+
EndGlobalSection
8494
GlobalSection(ExtensibilityGlobals) = postSolution
8595
SolutionGuid = {E8B0C994-0BF2-4692-9E22-E48B265B2804}
8696
EndGlobalSection

perf/Directory,Build.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project>
2+
<!-- Use project build name as assembly name to satisfy benchmark.NET -->
3+
<PropertyGroup>
4+
<RootNamespace>$(MSBuildProjectName)</RootNamespace>
5+
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
6+
</PropertyGroup>
7+
8+
<Import Project="..\Directory.Build.props" />
9+
</Project>

0 commit comments

Comments
 (0)