Skip to content

Commit

Permalink
support dotnet tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Mar 4, 2024
1 parent 689dc05 commit 31f43ae
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
root = true

###############################
# Core EditorConfig Options #
###############################

# All files
[*]
indent_style = space
charset = utf-8

[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj,props,targets,ruleset,config,nuspec,resx,vsixmanifest,vsct,proto,json}]
indent_size = 2

[*.cs]
indent_size = 4
dotnet_sort_system_directives_first = true

# Wrapping preferences
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true

#
resharper_csharp_space_before_trailing_comment = true
resharper_csharp_space_after_operator_keyword = true
7 changes: 7 additions & 0 deletions DotCompressorBenchmark.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{37B176A6-F46
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotCompressorBenchmark.Tools", "src\DotCompressorBenchmark.Tools\DotCompressorBenchmark.Tools.csproj", "{9044992E-5145-4719-9841-6AB2CF9CC999}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dcbench", "src\dcbench\dcbench.csproj", "{199C649E-9FD2-4ED0-A721-C12528B489B9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -20,8 +22,13 @@ Global
{9044992E-5145-4719-9841-6AB2CF9CC999}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9044992E-5145-4719-9841-6AB2CF9CC999}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9044992E-5145-4719-9841-6AB2CF9CC999}.Release|Any CPU.Build.0 = Release|Any CPU
{199C649E-9FD2-4ED0-A721-C12528B489B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{199C649E-9FD2-4ED0-A721-C12528B489B9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{199C649E-9FD2-4ED0-A721-C12528B489B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{199C649E-9FD2-4ED0-A721-C12528B489B9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9044992E-5145-4719-9841-6AB2CF9CC999} = {37B176A6-F467-4F2B-92E2-A8E966AA7E41}
{199C649E-9FD2-4ED0-A721-C12528B489B9} = {37B176A6-F467-4F2B-92E2-A8E966AA7E41}
EndGlobalSection
EndGlobal
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
## Introduction
dcbench is an in-memory benchmark of .net compressors

## Usage: DotCompressorBenchmark.Tools
## Usage: dcbench
```shell
$ dotnet tool install --global dcbench
$ ./dcbench --help
dcbench: .net compressor benchmark tool 2023.11.11
Copyright (c) Choi Ikpil([email protected])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<AssemblyName>dcbench</AssemblyName>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
using System;
using System.Collections.Generic;
using System.IO;

namespace DotCompressorBenchmark.Tools;
using DotCompressorBenchmark.Tools;

public static class Program
{
Expand Down
16 changes: 16 additions & 0 deletions src/dcbench/dcbench.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<AssemblyName>dcbench</AssemblyName>
<ToolCommandName>dcbench</ToolCommandName>
<PackAsTool>true</PackAsTool>
<PackageId>dcbench</PackageId>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\DotCompressorBenchmark.Tools\DotCompressorBenchmark.Tools.csproj" />
</ItemGroup>

</Project>

0 comments on commit 31f43ae

Please sign in to comment.