Skip to content

Commit 284ef6e

Browse files
feat(client): improve csproj
1 parent 1a56902 commit 284ef6e

File tree

2 files changed

+35
-40
lines changed

2 files changed

+35
-40
lines changed

src/Orb.Tests/Orb.Tests.csproj

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,27 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
3+
<IsTestProject>true</IsTestProject>
4+
<IsPackable>false</IsPackable>
5+
46
<!-- Run tests on net8.0, which will use the SDK's net8.0 DLL, and on net462, which will use the
57
SDK's netstandard2.0 DLL. -->
68
<TargetFrameworks>net8.0;net462</TargetFrameworks>
7-
<LangVersion>latest</LangVersion>
8-
9+
<LangVersion>12</LangVersion>
910
<Nullable>enable</Nullable>
10-
11-
<IsPackable>false</IsPackable>
12-
<IsTestProject>true</IsTestProject>
1311
<ImplicitUsings>disable</ImplicitUsings>
1412

15-
<!-- Disable skipped tests warnings -->
13+
<!-- Disable skipped tests warnings. -->
1614
<NoWarn>$(NoWarn),xUnit1004</NoWarn>
1715

18-
<!-- Disable deprecation warnings since we may reference our own deprecated symbols -->
16+
<!-- Disable deprecation warnings since we may reference our own deprecated symbols. -->
1917
<NoWarn>$(NoWarn),0618</NoWarn>
2018
</PropertyGroup>
21-
2219
<ItemGroup>
2320
<PackageReference Include="coverlet.collector" Version="6.0.0" />
2421
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
2522
<PackageReference Include="xunit" Version="2.5.3" />
2623
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3" />
27-
2824
<ProjectReference Include="..\Orb\Orb.csproj" />
29-
</ItemGroup>
30-
31-
<ItemGroup>
3225
<Using Include="Xunit" />
3326
</ItemGroup>
34-
3527
</Project>

src/Orb/Orb.csproj

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,47 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<Description>
4-
The official .NET library for the Orb C# service API.
5-
</Description>
6-
<AssemblyTitle>SDK Code Generation Orb C#</AssemblyTitle>
7-
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
8-
9-
<Nullable>enable</Nullable>
10-
3+
<!-- Metadata -->
4+
<AssemblyTitle>Orb C#</AssemblyTitle>
5+
<AssemblyName>Orb</AssemblyName>
116
<VersionPrefix>0.0.1</VersionPrefix>
12-
13-
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
14-
<LangVersion>latest</LangVersion>
15-
16-
<!-- Generate an XML documentation file for the project. -->
17-
<GenerateDocumentationFile>true</GenerateDocumentationFile>
18-
19-
<PackageReadmeFile>README.md</PackageReadmeFile>
20-
7+
<Authors>Orb</Authors>
8+
<Company>Orb</Company>
9+
<Description>The official .NET library for the Orb API.</Description>
10+
<PackageTags>sdk;api;http;library</PackageTags>
11+
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
12+
<Copyright>Copyright 2025 Orb</Copyright>
13+
<PackageProjectUrl>https://docs.withorb.com/reference/api-reference</PackageProjectUrl>
2114
<RepositoryUrl>https://www.github.com/orbcorp/orb-csharp</RepositoryUrl>
2215
<RepositoryType>git</RepositoryType>
16+
<OutputType>Library</OutputType>
2317

24-
<!-- Embed source files that are not tracked by the source control manager in the PDB -->
25-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
26-
27-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
28-
29-
<!-- Disable missing XML documentation warnings -->
18+
<!-- Documentation-->
19+
<GenerateDocumentationFile>true</GenerateDocumentationFile>
20+
<PackageReadmeFile>README.md</PackageReadmeFile>
21+
<!-- Disable missing XML documentation warnings. -->
3022
<NoWarn>$(NoWarn),1570,1573,1574,1591</NoWarn>
3123

32-
<!-- Disable deprecation warnings since we may reference our own deprecated symbols -->
33-
<NoWarn>$(NoWarn),0618</NoWarn>
24+
<!-- Source link -->
25+
<PublishRepositoryUrl>true</PublishRepositoryUrl>
26+
<EmbedUntrackedSources>true</EmbedUntrackedSources>
27+
<IncludeSymbols>true</IncludeSymbols>
28+
<DebugType>embedded</DebugType>
3429

30+
<TargetFrameworks>net8.0;netstandard2.0</TargetFrameworks>
31+
<LangVersion>12</LangVersion>
3532
<Configurations>Debug;Release</Configurations>
36-
33+
<BuildPackage>true</BuildPackage>
34+
<Deterministic>true</Deterministic>
35+
<Nullable>enable</Nullable>
36+
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
3737
<ImplicitUsings>disable</ImplicitUsings>
38+
<!-- Disable deprecation warnings since we may reference our own deprecated symbols. -->
39+
<NoWarn>$(NoWarn),0618</NoWarn>
3840
</PropertyGroup>
3941
<ItemGroup>
4042
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
4143
<PackageReference Include="System.Text.Json" Version="9.0.9" />
44+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
4245
</ItemGroup>
4346
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
4447
<PackageReference Include="System.Collections.Immutable" Version="8.0.0" />

0 commit comments

Comments
 (0)