Skip to content

Commit 05b73b5

Browse files
committed
feat: Add project metadata, SourceLink, and enhanced build settings, and streamline project reference syntax.
1 parent 6faa8df commit 05b73b5

2 files changed

Lines changed: 26 additions & 7 deletions

File tree

Directory.Build.props

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,38 @@
11
<Project>
22
<PropertyGroup>
3+
<!-- General -->
34
<TargetFramework>net10.0</TargetFramework>
45
<LangVersion>latest</LangVersion>
56
<Nullable>enable</Nullable>
67
<ImplicitUsings>enable</ImplicitUsings>
78
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
89
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
10+
11+
<!-- Metadata -->
12+
<Authors>Antao Almada</Authors>
13+
<Copyright>Copyright (c) 2025 Antao Almada</Copyright>
14+
15+
<!-- SourceLink -->
16+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
17+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
18+
<IncludeSymbols>true</IncludeSymbols>
19+
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
20+
21+
<!-- Build -->
22+
<Deterministic>true</Deterministic>
23+
<EnableNETAnalyzers>true</EnableNETAnalyzers>
24+
<AnalysisLevel>latest</AnalysisLevel>
25+
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
26+
</PropertyGroup>
27+
28+
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
29+
<!-- CI/CD -->
30+
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
931
</PropertyGroup>
1032

1133
<ItemGroup>
12-
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0">
13-
<PrivateAssets>all</PrivateAssets>
14-
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
15-
</PackageReference>
34+
<!-- Dependencies -->
35+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all"/>
36+
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers" />
1637
</ItemGroup>
1738
</Project>

src/Web/BookStore.Web/BookStore.Web.csproj

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
<ProjectReference Include="..\..\Client\BookStore.Client\BookStore.Client.csproj" />
66

77
<!-- Ensure API project builds before Web project to generate OpenAPI spec -->
8-
<ProjectReference Include="..\..\ApiService\BookStore.ApiService\BookStore.ApiService.csproj">
9-
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
10-
</ProjectReference>
8+
<ProjectReference Include="..\..\ApiService\BookStore.ApiService\BookStore.ApiService.csproj" ReferenceOutputAssembly="false" />
119
</ItemGroup>
1210

1311
<ItemGroup>

0 commit comments

Comments
 (0)