Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Build - Code cleanup (ReSharper)

support70c96ac49e30
diff --git a/src/Build/Grand.Common.props b/src/Build/Grand.Common.props
index 470ab156a..c31b0b35b 100644
--- a/src/Build/Grand.Common.props
+++ b/src/Build/Grand.Common.props
@@ -1,48 +1,51 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <TargetFramework>net8.0</TargetFramework>
- </PropertyGroup>
- <PropertyGroup>
- <Product>grandnode</Product>
- <PackageProjectUrl>https://grandnode.com/</PackageProjectUrl>
- <RepositoryUrl>https://github.com/grandnode/grandnode2</RepositoryUrl>
- <PackageLicenseUrl>https://github.com/grandnode/grandnode2/blob/main/LICENSE</PackageLicenseUrl>
- <RepositoryType>Git</RepositoryType>
- <LangVersion>latest</LangVersion>
- </PropertyGroup>
- <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
- <DebugSymbols>false</DebugSymbols>
- <DebugType>none</DebugType>
- <Optimize>true</Optimize>
- </PropertyGroup>
- <ItemGroup>
- <Using Include="System"/>
- <Using Include="System.Collections.Generic"/>
- <Using Include="System.IO"/>
- <Using Include="System.Text"/>
- <Using Include="System.Linq"/>
- <Using Include="System.Threading"/>
- <Using Include="System.Threading.Tasks"/>
- </ItemGroup>
- <Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation" Condition="'$(SourceRevisionId)'==''">
- <Exec Command="git describe --long --always --exclude=* --abbrev=8" ConsoleToMSBuild="True" IgnoreExitCode="True">
- <Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput" />
- </Exec>
- </Target>
- <Target Name="SetRepositoryBranch" BeforeTargets="InitializeSourceControlInformation" Condition="'$(GitBranch)'==''">
- <Exec Command="git rev-parse --abbrev-ref HEAD" ConsoleToMSBuild="True" IgnoreExitCode="True">
- <Output PropertyName="branch" TaskParameter="ConsoleOutput" />
- </Exec>
- <ItemGroup>
- <AssemblyMetadata Include="GitBranch" Value="$(branch)" />
- </ItemGroup>
- </Target>
- <ItemGroup Condition="'$(GitBranch)'!=''">
- <AssemblyMetadata Include="GitBranch" Value="$(GitBranch)" />
- </ItemGroup>
- <Target Name="SetVersion" BeforeTargets="PrepareForBuild">
- <PropertyGroup>
- <Version>2.2.0-beta</Version>
- </PropertyGroup>
- </Target>
-</Project>
+ <PropertyGroup>
+ <TargetFramework>net8.0</TargetFramework>
+ </PropertyGroup>
+ <PropertyGroup>
+ <Product>grandnode</Product>
+ <PackageProjectUrl>https://grandnode.com/</PackageProjectUrl>
+ <RepositoryUrl>https://github.com/grandnode/grandnode2</RepositoryUrl>
+ <PackageLicenseUrl>https://github.com/grandnode/grandnode2/blob/main/LICENSE</PackageLicenseUrl>
+ <RepositoryType>Git</RepositoryType>
+ <LangVersion>latest</LangVersion>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
+ <DebugSymbols>false</DebugSymbols>
+ <DebugType>none</DebugType>
+ <Optimize>true</Optimize>
+ </PropertyGroup>
+ <ItemGroup>
+ <Using Include="System" />
+ <Using Include="System.Collections.Generic" />
+ <Using Include="System.IO" />
+ <Using Include="System.Text" />
+ <Using Include="System.Linq" />
+ <Using Include="System.Threading" />
+ <Using Include="System.Threading.Tasks" />
+ </ItemGroup>
+ <Target Name="SetSourceRevisionId" BeforeTargets="InitializeSourceControlInformation"
+ Condition="'$(SourceRevisionId)'==''">
+ <Exec Command="git describe --long --always --exclude=* --abbrev=8" ConsoleToMSBuild="True"
+ IgnoreExitCode="True">
+ <Output PropertyName="SourceRevisionId" TaskParameter="ConsoleOutput" />
+ </Exec>
+ </Target>
+ <Target Name="SetRepositoryBranch" BeforeTargets="InitializeSourceControlInformation"
+ Condition="'$(GitBranch)'==''">
+ <Exec Command="git rev-parse --abbrev-ref HEAD" ConsoleToMSBuild="True" IgnoreExitCode="True">
+ <Output PropertyName="branch" TaskParameter="ConsoleOutput" />
+ </Exec>
+ <ItemGroup>
+ <AssemblyMetadata Include="GitBranch" Value="$(branch)" />
+ </ItemGroup>
+ </Target>
+ <ItemGroup Condition="'$(GitBranch)'!=''">
+ <AssemblyMetadata Include="GitBranch" Value="$(GitBranch)" />
+ </ItemGroup>
+ <Target Name="SetVersion" BeforeTargets="PrepareForBuild">
+ <PropertyGroup>
+ <Version>2.2.0-beta</Version>
+ </PropertyGroup>
+ </Target>
+</Project>
\ No newline at end of file