Skip to content

Commit

Permalink
refactor!: Consolidate common project settings
Browse files Browse the repository at this point in the history
- Moved common properties and settings from `BepuPhysics.csproj` and `BepuUtilities.csproj` to a shared `CommonSettings.props` file.
  • Loading branch information
VaclavElias authored and RossNordby committed Mar 10, 2025
1 parent 3301514 commit 0126ed5
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 61 deletions.
32 changes: 3 additions & 29 deletions BepuPhysics/BepuPhysics.csproj
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>2.5.0-beta.24</Version>
<Company>Bepu Entertainment LLC</Company>
<Authors>Ross Nordby</Authors>
<Description>Speedy real time physics simulation library.</Description>
<Copyright>© Bepu Entertainment LLC</Copyright>
<PackageProjectUrl>https://github.com/bepu/bepuphysics2</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryUrl>https://github.com/bepu/bepuphysics2</RepositoryUrl>
<PackageIcon>bepuphysicslogo256.png</PackageIcon>
<Configurations>Debug;Release;ReleaseNoProfiling</Configurations>
<LangVersion>latest</LangVersion>
<PackageTags>physics;3d;rigid body;real time;simulation</PackageTags>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<DebugSymbols>true</DebugSymbols>
<!--<DebugType>full</DebugType>-->
<SignAssembly>true</SignAssembly>
<DelaySign>false</DelaySign>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!--<TieredCompilation>false</TieredCompilation>-->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- CS1573 Parameter has no matching param tag in the XML comment for (but other parameters do) -->
<!-- CS1591 Missing XML comment for publicly visible type or member -->
<!-- CA2014 Stackalloc in loop -->
<NoWarn>1573;1591;CA2014</NoWarn>
</PropertyGroup>

<Import Project="..\CommonSettings.props" />

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<Optimize>false</Optimize>
<DefineConstants>TRACE;DEBUG;CHECKMATH;PROFILE</DefineConstants>
Expand Down Expand Up @@ -84,15 +67,6 @@
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>ContactNonconvexTypes.cs</LastGenOutput>
</None>
<None Include="..\Documentation\images\bepuphysicslogo256.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<!-- Needed for Source Link package debugging, see https://github.com/dotnet/sourcelink -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>

</Project>
35 changes: 3 additions & 32 deletions BepuUtilities/BepuUtilities.csproj
Original file line number Diff line number Diff line change
@@ -1,35 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>BepuUtilities</AssemblyName>
<RootNamespace>BepuUtilities</RootNamespace>
<TargetFramework>net8.0</TargetFramework>
<Version>2.5.0-beta.24</Version>
<Company>Bepu Entertainment LLC</Company>
<Authors>Ross Nordby</Authors>
<Description>Supporting utilities library for BEPUphysics v2.</Description>
<Copyright>© Bepu Entertainment LLC</Copyright>
<PackageProjectUrl>https://github.com/bepu/bepuphysics2</PackageProjectUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<RepositoryUrl>https://github.com/bepu/bepuphysics2</RepositoryUrl>
<PackageIcon>bepuphysicslogo256.png</PackageIcon>
<Configurations>Debug;Release</Configurations>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<DebugSymbols>true</DebugSymbols>
<!--<DebugType>full</DebugType>-->
<SignAssembly>true</SignAssembly>
<DelaySign>false</DelaySign>
<AssemblyOriginatorKeyFile>key.snk</AssemblyOriginatorKeyFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!--<TieredCompilation>false</TieredCompilation>-->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

<!-- CS1573 Parameter has no matching param tag in the XML comment for (but other parameters do) -->
<!-- CS1591 Missing XML comment for publicly visible type or member -->
<NoWarn>1573;1591</NoWarn>
</PropertyGroup>

<Import Project="..\CommonSettings.props" />

<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<Optimize>false</Optimize>
<DefineConstants>TRACE;DEBUG;CHECKMATH</DefineConstants>
Expand All @@ -39,17 +22,5 @@
<Optimize>true</Optimize>
<DefineConstants>TRACE;RELEASE</DefineConstants>
</PropertyGroup>

<ItemGroup>
<None Include="..\Documentation\images\bepuphysicslogo256.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<!-- Needed for Source Link package debugging, see https://github.com/dotnet/sourcelink -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>

</Project>
35 changes: 35 additions & 0 deletions CommonSettings.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Version>2.5.0-beta.24</Version>
<Company>Bepu Entertainment LLC</Company>
<Authors>Ross Nordby</Authors>
<Copyright>© Bepu Entertainment LLC</Copyright>
<PackageProjectUrl>https://github.com/bepu/bepuphysics2</PackageProjectUrl>
<RepositoryUrl>https://github.com/bepu/bepuphysics2</RepositoryUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<LangVersion>latest</LangVersion>
<PackageIcon>bepuphysicslogo256.png</PackageIcon>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<DebugSymbols>true</DebugSymbols>
<!--<DebugType>full</DebugType>-->
<SignAssembly>true</SignAssembly>
<DelaySign>false</DelaySign>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<!--<TieredCompilation>false</TieredCompilation>-->
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<ItemGroup>
<None Include="..\Documentation\images\bepuphysicslogo256.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<!-- Needed for Source Link package debugging, see https://github.com/dotnet/sourcelink -->
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
</ItemGroup>
</Project>

0 comments on commit 0126ed5

Please sign in to comment.