Skip to content

修复文档,换主分支 #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DotNetCampus.CommandLine.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{F26E
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCampus.CommandLine", "src\DotNetCampus.CommandLine\DotNetCampus.CommandLine.csproj", "{B61424A0-02C5-4C24-819B-8153D52BC0B8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCampus.CommandLine.Sample", "samples\dotnetCampus.CommandLine.Sample\DotNetCampus.CommandLine.Sample.csproj", "{6B8F7500-B161-408D-BFA3-AE77CB8CF4D8}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCampus.CommandLine.Sample", "samples\DotNetCampus.CommandLine.Sample\DotNetCampus.CommandLine.Sample.csproj", "{6B8F7500-B161-408D-BFA3-AE77CB8CF4D8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCampus.CommandLine.Tests", "tests\dotnetCampus.CommandLine.Tests\DotNetCampus.CommandLine.Tests.csproj", "{70991994-BB0C-4D00-9B74-E8736D0AD7C1}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCampus.CommandLine.Tests", "tests\DotNetCampus.CommandLine.Tests\DotNetCampus.CommandLine.Tests.csproj", "{70991994-BB0C-4D00-9B74-E8736D0AD7C1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCampus.CommandLine.Performance", "tests\dotnetCampus.CommandLine.Performance\DotNetCampus.CommandLine.Performance.csproj", "{56B65FC1-CE75-4981-A880-954D891901D6}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotNetCampus.CommandLine.Performance", "tests\DotNetCampus.CommandLine.Performance\DotNetCampus.CommandLine.Performance.csproj", "{56B65FC1-CE75-4981-A880-954D891901D6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DotNetCampus.CommandLine

![Build](https://github.com/dotnet-campus/DotNetCampus.CommandLine/actions/workflows/dotnet-build.yml/badge.svg) ![NuGet Package](https://github.com/dotnet-campus/DotNetCampus.CommandLine/actions/workflows/nuget-tag-publish.yml/badge.svg) [![dotnetCampus.CommandLine](https://img.shields.io/nuget/v/DotNetCampus.CommandLine.svg?label=DotnetCampus.CommandLine)](https://www.nuget.org/packages/DotnetCampus.CommandLine/) [![dotnetCampus.CommandLine.Source](https://img.shields.io/nuget/v/DotnetCampus.CommandLine.Source?label=DotnetCampus.CommandLine.Source)](https://www.nuget.org/packages/DotnetCampus.CommandLine.Source/)
![Build](https://github.com/dotnet-campus/DotNetCampus.CommandLine/actions/workflows/dotnet-build.yml/badge.svg) ![NuGet Package](https://github.com/dotnet-campus/DotNetCampus.CommandLine/actions/workflows/nuget-tag-publish.yml/badge.svg) [![DotNetCampus.CommandLine](https://img.shields.io/nuget/v/DotNetCampus.CommandLine.svg?label=DotnetCampus.CommandLine)](https://www.nuget.org/packages/DotnetCampus.CommandLine/) [![dotnetCampus.CommandLine.Source](https://img.shields.io/nuget/v/DotnetCampus.CommandLine.Source?label=DotnetCampus.CommandLine.Source)](https://www.nuget.org/packages/DotnetCampus.CommandLine.Source/)

| [English][en] | [简体中文][zh-hans] | [繁體中文][zh-hant] |
| ------------- | ------------------- | ------------------- |
Expand Down Expand Up @@ -70,7 +70,7 @@ Then use different command line styles to populate instances of this type:
### Linux/GNU Style

```bash
$ demo.exe "C:/Users/lvyi/Desktop/demo.txt" -s --mode Edit --startup-sessions A B C
$ demo.exe "C:/Users/lvyi/Desktop/demo.txt" -s --mode Edit --startup-sessions A --startup-sessions B --startup-sessions C
```

### .NET CLI Style
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
; Shipped analyzer releases
; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md

## Release 4.0

### New Rules
Rule ID | Category | Severity | Notes
--------|----------|----------|-------
DCL101 | DotNetCampus.AvoidBugs | Warning | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/master/docs/analyzers/DCL101.md>
DCL201 | DotNetCampus.CodeFixOnly | Hidden | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/master/docs/analyzers/DCL201.md>
DCL202 | DotNetCampus.RuntimeException | Error | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/master/docs/analyzers/DCL202.md>
DCL101 | DotNetCampus.AvoidBugs | Warning | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/main/docs/analyzers/DCL101.md>
DCL201 | DotNetCampus.CodeFixOnly | Hidden | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/main/docs/analyzers/DCL201.md>
DCL202 | DotNetCampus.RuntimeException | Error | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/main/docs/analyzers/DCL202.md>

## Release 3.2

### New Rules
Rule ID | Category | Severity | Notes
--------|----------|----------|-------
DCL101 | dotnetCampus.Naming | Error | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/master/docs/analyzers/DCL101.md>
DCL201 | dotnetCampus.Usage | Hidden | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/master/docs/analyzers/DCL201.md>
DCL202 | dotnetCampus.Usage | Error | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/master/docs/analyzers/DCL202.md>
DCL101 | dotnetCampus.Naming | Error | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/3.3.1/docs/analyzers/DCL101.md>
DCL201 | dotnetCampus.Usage | Hidden | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/3.3.1/docs/analyzers/DCL201.md>
DCL202 | dotnetCampus.Usage | Error | <https://github.com/dotnet-campus/DotNetCampus.CommandLine/blob/3.3.1/docs/analyzers/DCL202.md>
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
; Unshipped analyzer release
; https://github.com/dotnet/roslyn-analyzers/blob/master/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public abstract class ConvertOptionPropertyTypeCodeFix : CodeFixProvider
{
public sealed override FixAllProvider GetFixAllProvider()
{
// See https://github.com/dotnet/roslyn/blob/master/docs/analyzers/FixAllProvider.md for more information on Fix All Providers
// See https://github.com/dotnet/roslyn/blob/main/docs/analyzers/FixAllProvider.md for more information on Fix All Providers
return WellKnownFixAllProviders.BatchFixer;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class OptionLongNameMustBeKebabCaseCodeFixProvider : CodeFixProvider

public sealed override FixAllProvider GetFixAllProvider()
{
// See https://github.com/dotnet/roslyn/blob/master/docs/analyzers/FixAllProvider.md for more information on Fix All Providers
// See https://github.com/dotnet/roslyn/blob/main/docs/analyzers/FixAllProvider.md for more information on Fix All Providers
return WellKnownFixAllProviders.BatchFixer;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net8.0;net6.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<PackageId>dotnetCampus.CommandLine</PackageId>
<PackageId>DotNetCampus.CommandLine</PackageId>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RootNamespace>DotNetCampus.Cli</RootNamespace>
<IncludeSymbols>true</IncludeSymbols>
Expand Down
Loading