Skip to content

sinlov/csharp-Playground

Repository files navigation

ci

GitHub license GitHub latest SemVer tag) GitHub release)

for csharp language

Contributing

Contributor Covenant GitHub contributors

We welcome community contributions to this project.

Please read Contributor Guide for more information on how to get started.

请阅读有关 贡献者指南 以获取更多如何入门的信息

env

$ dotnet --version
8.0.203
$ nuget \?
NuGet Version: 6.8.0.131

# show dependencies
$ dotnet list package

# if build error, please check at nuget config at
$ cat ~/.nuget/NuGet/NuGet.Config
# powershell
> cat "$Env:APPDATA\NuGet\NuGet.Config"
  • xml
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
  </packageSources>

NUnit

  • Output Type Class library
  • Target framework net8.0
  • Language Version C# 8.0
  • Nullable reference types(C# 8.0+) Enable
<PropertyGroup>
    <TargetFramework>net7.0</TargetFramework>
    <Nullable>enable</Nullable>
    <LangVersion>8</LangVersion>
</PropertyGroup>

FakerDotNet

Xunit

  • Output Type Console application
  • Target framework net8.0
  • Language Version C# 8.0

or

  • Output Type Class library
  • Target framework .NetFramework 4.8
  • Language Version C# 8.0

RunOn

  • OS macOS
$ sw_vers
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224
  • OS windows
systeminfo
OS 名称:          Microsoft Windows 11 专业版
OS 版本:          10.0.22631 暂缺 Build 22631
系统类型:         x64-based PC
  • IDE JetBrains Rider

dev

CleanArchitecture

$ dotnet new clean-arch -o CleanTestsArchitecture --dry-run

test coverage

ReportGenerator

dotnet tool install -g dotnet-reportgenerator-globaltool

dotnet-coverage

dotnet tool install --global dotnet-coverage

About

csharp language playground

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •