Skip to content

Commit d4469a3

Browse files
committed
Refactor project files and update build properties
- Removed unnecessary GeneratePackageOnBuild property from multiple project files. - Updated Directory.Build.props to include essential metadata and packaging configurations. - Added test Directory.Build.props for managing test project settings and dependencies. - Ensured consistency across project files by removing redundant properties and improving structure.
1 parent 1f5dcf4 commit d4469a3

35 files changed

Lines changed: 132 additions & 208 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -2,43 +2,7 @@
22
<PropertyGroup>
33
<TargetFramework>net10.0</TargetFramework>
44
<LangVersion>Latest</LangVersion>
5-
<Authors>mehyaa,DevMentors.io</Authors>
6-
<AssemblyName>$(MSBuildProjectName)</AssemblyName>
7-
<PackageId>$(MSBuildProjectName)</PackageId>
8-
<Product>$(MSBuildProjectName)</Product>
9-
<Description>Unofficial release of original $(MSBuildProjectName) package (https://www.nuget.org/packages/$(MSBuildProjectName)) forked from the official GitHub repo (https://github.com/snatch-dev/Convey.git)</Description>
10-
<Title>$(MSBuildProjectName)</Title>
11-
<PackageTags>$(MSBuildProjectName)</PackageTags>
12-
<RepositoryUrl>https://github.com/mehyaa/Convey.git</RepositoryUrl>
13-
<PackageProjectUrl>https://github.com/mehyaa/Convey.git</PackageProjectUrl>
14-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
5+
<IsPackable>false</IsPackable>
156
<GenerateLocalPackages>false</GenerateLocalPackages>
167
</PropertyGroup>
17-
18-
<ItemGroup>
19-
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
20-
</ItemGroup>
21-
22-
<PropertyGroup Condition="'$(GenerateLocalPackages)'=='true'">
23-
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
24-
<Version>0.0.0-local</Version>
25-
<PackageTarget>convey</PackageTarget>
26-
</PropertyGroup>
27-
28-
<ItemGroup Condition="'$(SourceLinkCreate)'=='true'">
29-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
30-
</ItemGroup>
31-
32-
<PropertyGroup Condition="'$(SourceLinkCreate)'=='true'">
33-
<PublishRepositoryUrl>true</PublishRepositoryUrl>
34-
<EmbedAllSources>true</EmbedAllSources>
35-
<EmbedUntrackedSources>true</EmbedUntrackedSources>
36-
</PropertyGroup>
37-
38-
<Target Name="CopyToLocalNugetSource" AfterTargets="Pack" Condition="'$(GenerateLocalPackages)'=='true'">
39-
<MakeDir Directories="$(UserProfile)\\.nuget\\$(PackageTarget)" Condition="!Exists('$(UserProfile)\\.nuget\\$(PackageTarget)')" />
40-
<Exec Command="dotnet nuget push $(OutputPath)..\$(PackageId).$(Version).nupkg --source $(UserProfile)\\.nuget\\$(PackageTarget)\" />
41-
<Exec Command="rmdir /q /s $(UserProfile)\\.nuget\\packages\\$(MSBuildProjectName.ToLower())\\$(Version)\" />
42-
</Target>
43-
448
</Project>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey.Auth\src\Convey.Auth\Convey.Auth.csproj" />
95
</ItemGroup>
106

11-
</Project>
7+
</Project>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey\src\Convey\Convey.csproj" />
95
</ItemGroup>
@@ -16,4 +12,4 @@
1612
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.15.0" />
1713
</ItemGroup>
1814

19-
</Project>
15+
</Project>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey\src\Convey\Convey.csproj" />
95
</ItemGroup>
106

11-
</Project>
7+
</Project>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey\src\Convey\Convey.csproj" />
95
</ItemGroup>
106

11-
</Project>
7+
</Project>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey\src\Convey\Convey.csproj" />
95
</ItemGroup>
106

11-
</Project>
7+
</Project>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey\src\Convey\Convey.csproj" />
95
<ProjectReference Include="..\..\..\Convey.HTTP\src\Convey.HTTP\Convey.HTTP.csproj" />
@@ -14,4 +10,4 @@
1410
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.0" />
1511
</ItemGroup>
1612

17-
</Project>
13+
</Project>

src/Convey.Docs.Swagger/src/Convey.Docs.Swagger/Convey.Docs.Swagger.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey\src\Convey\Convey.csproj" />
95
</ItemGroup>
@@ -17,4 +13,4 @@
1713
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="10.0.1" />
1814
</ItemGroup>
1915

20-
</Project>
16+
</Project>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey\src\Convey\Convey.csproj" />
95
<ProjectReference Include="..\..\..\Convey.HTTP\src\Convey.HTTP\Convey.HTTP.csproj" />
@@ -15,4 +11,4 @@
1511
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.0" />
1612
<PackageReference Include="RestEase" Version="1.6.4" />
1713
</ItemGroup>
18-
</Project>
14+
</Project>
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
4-
<GeneratePackageOnBuild Condition="'$(Configuration)'=='Release'">true</GeneratePackageOnBuild>
5-
</PropertyGroup>
6-
73
<ItemGroup>
84
<ProjectReference Include="..\..\..\Convey\src\Convey\Convey.csproj" />
95
</ItemGroup>
@@ -13,4 +9,4 @@
139
<PackageReference Include="Polly" Version="8.6.4" />
1410
</ItemGroup>
1511

16-
</Project>
12+
</Project>

0 commit comments

Comments
 (0)