Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

FormatStringResource

Format StringResource.xml files

Environment

Build

  • Run publish.sh will make win-x64, linux-x64 and osx-x64 executable file in publish/$runtime/bin folder.
  • Run publish_R2R.sh will try to make ReadyToRun executable file in publish/$runtime/r2r folder.
  • Run publish_AOT.sh will try to make AOT executable file in publish/$runtime/aot folder.

If you working on Windows and installed git-bash, the publish.sh can be run.

UnitTest

Call test.sh will run unit test and output coverage.

Sonar Scanner

Call sonarscanner.sh will run dotnet sonarscanner.

Sonar Scanner Requirement

  • dotnet core 2
  • set ~/.dotnet/tools to PATH
  • a SonarQube server and got the project key(this example is FormatStringResource) and login token

Sonar Scanner Usage

bash sonarscanner.sh FormatStringResource http://10.134.25.140:9000 84467e15b5edac31b021c135a439b08226406f35 

Run

Windows

C:\> FormatStringResource.exe --log 1.log StringResource.xml
# or #
C:\> type StringResource.xml | FormatStringResource.exe --log 1.log

Support list file

C:\> FormatStringResource.exe --log 1.log --list listfile.txt
# or #
C:\> type listfile.txt | FormatStringResource.exe --log 1.log -L

macOS/Linux

./FormatStringResource --log 1.log StringResource.xml
# or #
cat StringResource.xml | ./FormatStringResource --log 1.log

Support list file

./FormatStringResource --log 1.log --list listfile.txt
# or #
cat listfile.txt | ./FormatStringResource --log 1.log -L

Get help via --help argument.

dotnet commands

dotnet new sln -o FormatStringResource
cd FormatStringResource
dotnet new console -o FormatStringResource
dotnet sln add FormatStringResource/FormatStringResource.csproj
dotnet run -p FormatStringResource/FormatStringResource.csproj --version
dotnet new xunit -o FormatStringResource.Tests
dotnet sln add FormatStringResource.Tests/FormatStringResource.Tests.csproj
dotnet add FormatStringResource.Tests/FormatStringResource.Tests.csproj reference FormatStringResource/FormatStringResource.csproj
dotnet test FormatStringResource.Tests/FormatStringResource.Tests.csproj

About

A dotnet core 3 console project

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.