<commit_before>﻿$ErrorActionPreference = "Stop"

$root="$PSScriptRoot/.."

# clean
& $PSScriptRoot/Clean.ps1

$files = New-Object System.Collections.ArrayList

# build FileDBTool
dotnet restore "$root"
if (!$?) { throw "Failed to install dependencies for FileDBTool" }
dotnet publish "$root/src/FileDBTool" --configuration Release --framework net45
if (!$?) { throw "Failed to build FileDBTool" }
$files.AddRange(("$root/src/FileDBTool/bin/Release/net45/win7-x64/publish/*.exe", `
                 "$root/src/FileDBTool/bin/Release/net45/win7-x64/publish/*.dll"))

# build RDAExplorerGUI
msbuild "$root/RDAExplorer.sln" /target:"RDAExplorerGUI" /property:Configuration=Release
if (!$?) { throw "Failed to build RDAExplorerGUI" }
$files.AddRange(("$root/src/RDAExplorerGUI/bin/Release/RDAExplorerGUI.exe", `
                 "$root/src/RDAExplorerGUI/bin/Release/RDAExplorerGUI.exe.config", `<commit_msg>put FileDBGenerator into relase build instead of FileDBTool<commit_after>﻿$ErrorActionPreference = "Stop"

$root="$PSScriptRoot/.."

# clean
& $PSScriptRoot/Clean.ps1

$files = New-Object System.Collections.ArrayList

# build FileDBGenerator
msbuild "$root/RDAExplorer.sln" /target:"FileDBGenerator" /property:Configuration=Release
if (!$?) { throw "Failed to build FileDBGenerator" }
$files.AddRange(("$root/src/FileDBGenerator/bin/Release/FileDBGenerator.exe", `
                 "$root/src/FileDBGenerator/bin/Release/FileDBGenerator.exe.config", `
                 "$root/src/FileDBGenerator/bin/Release/*.dll"))

# build RDAExplorerGUI
msbuild "$root/RDAExplorer.sln" /target:"RDAExplorerGUI" /property:Configuration=Release
if (!$?) { throw "Failed to build RDAExplorerGUI" }
$files.AddRange(("$root/src/RDAExplorerGUI/bin/Release/RDAExplorerGUI.exe", `
                 "$root/src/RDAExplorerGUI/bin/Release/RDAExplorerGUI.exe.config", `
{'fraction_non_alphanumeric': 0.1505143475906876, 'fraction_numerical': 0.007579859231185706, 'mean_word_length': 4.686153846153847, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2341714', 'n_tokens_mistral': 642, 'n_tokens_neox': 614, 'n_words': 94}