- このリポジトリをクローン
- カレントディレクトリを変更して
dotnet build
auth.json
を編集- 実行
デフォルトではDドライブに保存されるようになっています。
認証情報はauth.json
で管理
{
"ProxyAuth": false,
"UserName": "UserName",
"PassWord": "password",
"ProxyName": "proxy_name:port"
}
アプリケーションの設定はappConfig.jsonで管理
{
"app": [
{
"AuthJsonFile": "auth.json",
"AuthJsonFileEncode": "utf-8",
"ExtractFolderPath": "D:\\edgedriver_win32"
}
],
"MSEdgeConfig":
{
"ZipFilePath": "D:\\edgedriver_win32.zip",
"ZipFileName": "edgedriver_win32.zip",
"Path":"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\",
"FileName":"msedge.exe",
"WebDriverPath":"D:\\edgedriver_win32",
"WebDriverFileName":"msedgedriver.exe",
"RequestEndPoint": "https://msedgedriver.azureedge.net/"
},
"GCConfig":
{
"Path":"C:\\Program Files (x86)\\Google\\Chrome\\Application\\",
"FileName":"chrome.exe",
"WebDriverPath":"",
"WebDriverFileName":"",
"RequestEndPoint": "https://chromedriver.chromium.org/downloads"
}
}
dotNETCoreがインストールされていない場合でもプログラムを実行したい場合は
dotnet publish
を用いて実行可能形式のexeを生成する。
dotnet publish -r win-x64 -p:PublishSingleFile=true --self-contained false
MimeKit が必要となる場合はパッケージを追加する。
dotnet add package MimeKit --version 2.15.1