ExplorerWindowCleanerでAppVeyorを使っているのですが、
GitHubにあげてAppVeyorでビルドしたら以下のようにビルドエラーになりました。
warning MSB3245: Could not resolve this reference. Could not locate the assembly "MahApps.Metro, Version=1.1.2.0, Culture=neutral, PublicKeyToken=f4fb5a3c4d1e5b4f, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors. [C:\projects\explorerwindowcleaner\ExplorerWindowCleaner\ExplorerWindowCleaner.csproj] C:\projects\explorerwindowcleaner\ExplorerWindowCleaner\MainWindow.xaml(1,23): error MC3074: The tag 'MetroWindow' does not exist in XML namespace 'clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro'. Line 1 Position 23. [C:\projects\explorerwindowcleaner\ExplorerWindowCleaner\ExplorerWindowCleaner.csproj] Command exited with code 1
そういえば前も同じようなことがあった気がして以下のエントリーを確認しましたが、今回は別件みたいです。
調べてるうちにnugetのパッケージが取得できていないっぽいことがわかりました。
対処方法は公式に書いてありました。
About NuGet package restore - Appveyor
これによるとビルド前にnuget restoreを実行するとよいとのことです。
AppVeyorのSettingsのBuildの下のほうにあるBefore build scriptでCMDを選択し、「nuget restore」を入力して保存するだけです。
これでビルドできるようになりました。めでたしめでたし。