updated netcorebeauty

This commit is contained in:
Ell 2021-10-18 17:09:36 +02:00
parent f4d160f285
commit 2e19daa047
2 changed files with 2 additions and 7 deletions

View file

@ -3,7 +3,7 @@
"isRoot": true, "isRoot": true,
"tools": { "tools": {
"nulastudio.ncbeauty": { "nulastudio.ncbeauty": {
"version": "1.2.9", "version": "1.2.9.3",
"commands": [ "commands": [
"ncbeauty" "ncbeauty"
] ]

View file

@ -71,14 +71,9 @@ namespace GameBundle {
if (!options.SkipLib) { if (!options.SkipLib) {
var excludes = $"\"{string.Join(";", options.ExcludedFiles)}\""; var excludes = $"\"{string.Join(";", options.ExcludedFiles)}\"";
var log = options.Verbose ? "Detail" : "Error"; var log = options.Verbose ? "Detail" : "Error";
var beautyResult = RunProcess(options, "dotnet", $"ncbeauty --loglevel={log} --force=True \"{buildDir.FullName}\" \"{options.LibFolder}\" {excludes}", AppDomain.CurrentDomain.BaseDirectory); var beautyResult = RunProcess(options, "dotnet", $"ncbeauty --loglevel={log} --force=True --noflag=True \"{buildDir.FullName}\" \"{options.LibFolder}\" {excludes}", AppDomain.CurrentDomain.BaseDirectory);
if (beautyResult != 0) if (beautyResult != 0)
return beautyResult; return beautyResult;
// Remove the beauty file since it's just a marker
var beautyFile = new FileInfo(Path.Combine(buildDir.FullName, "NetCoreBeauty"));
if (beautyFile.Exists)
beautyFile.Delete();
} }
// Rename build folder if named builds are enabled // Rename build folder if named builds are enabled