FormatStringResource
Format StringResource.xml files
Environment
- dotnet core 3
- Windows/Linux/macOS
Build
- Run
publish.shwill make win-x64, linux-x64 and osx-x64 executable file inpublish/$runtime/binfolder. - Run
publish_R2R.shwill try to make ReadyToRun executable file inpublish/$runtime/r2rfolder. - Run
publish_AOT.shwill try to make AOT executable file inpublish/$runtime/aotfolder.
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