我正在尝试制作一个将favicon.ico复制到%temp%文件的应用,我有以下代码:
string temp = System.IO.Path.GetTempPath();
System.IO.File.WriteAllBytes(temp + "favicon.ico", Properties.Resources.favicon);
但是我收到错误:
Error 1 The best overloaded method match for 'System.IO.File.WriteAllBytes(string, byte[])' has some invalid arguments