Skip to content

CAST-projects/DotNetTemplateQualityRules

Repository files navigation

DotNetTemplateQualityRules

Template to create .NET quality rules using Roslyn

Windows

Running tests using the Test Explorer

Linux

Deploy .NET 10.0

  • Install: sudo dnf install dotnet-sdk-10.0
  • Verify SDKs: dotnet --list-sdks
  • Verify runtimes: dotnet --list-runtimes

Unzip data

  • Unzip the folder for example in /home/xxx/Documents/data/templates/

Compile projects

  • Go to /home/xxx/Documents/data/templates/TemplateCastQualityRule/
  • dotnet build TemplateCastQualityRules.csproj -c Release --runtime linux-x64 /p:PublishReadyToRun=true /p:Platform=x64
  • Go to /home/xxx/Documents/data/templates/TestsTemplateQualityRules/
  • dotnet build UnitTestTemplateCastQualityRules.csproj -c Release --runtime linux-x64 /p:PublishReadyToRun=true /p:Platform=x64

Deploy third_parties folder for tests

  • Unzip the third_parties.zip file, unzip the third_parties folder to /home/xxx/Documents/data/templates/TestsTemplateQualityRules/bin/x64/Release/net10.0/linux-x64/

Run the tests

  • Go to /home/xxx/Documents/data/templates/TestsTemplateQualityRules/bin/x64/Release/net8.0/linux-x64/
  • dotnet test UnitTestTemplateCastQualityRules.dll

About

Template to create .NET quality rules using Roslyn

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages