2017年8月4日金曜日

Xamarinのソリューションを読み込んでVisual Studioが固まるときの対処方法

.slnをダブルクリックしてVisual Studioが起動したあと固まることが何回かありました。

とりあえずbin, obj, packagesフォルダを削除したら動きました。
ついでにnuget restoreもVisual Studioでやるよりコマンドラインのほうが速いような気がするのでそうしておきました。

つまりこんなバッチファイルを作りました。

rmdir /s /q App\App\bin
rmdir /s /q App\App\obj
rmdir /s /q App\App.Droid\bin
rmdir /s /q App\App.Droid\obj
rmdir /s /q App\App.iOS\bin
rmdir /s /q App\App.iOS\obj
rmdir /s /q packages
nuget.exe restore App.sln

現場からは以上です。

0 件のコメント:

コメントを投稿