こんにちは私はnetduinoplusでSDカードを試してみたいです。昨日、このWebサイトからSDKをダウンロードしました。
ドキュメントが見つからなかったので、次のコードを見つけました。しかし、それは「CLR_E_VOLUME_NOT_FOUND」を与えます..私は何を間違えますか?マウントと特定のdll(SecretLabs.NETMF.IO.dll)についてオンラインで読んだのですが、そのdllが見つかりません。
誰かが私が始めるのを手伝ってくれますか?
public class Program
{
public static void Main()
{
var dir = Directory.GetCurrentDirectory();
var fileName = Path.Combine(dir, "test.txt");
Debug.Print(fileName);
byte[] testBytes = new byte[] { 1,2,3,4 };
File.WriteAllBytes(fileName, testBytes);
}
}
出力:
\ test.txt
例外System.IO.IOException-CLR_E_VOLUME_NOT_FOUND(1)メッセージ:System.IO.Path :: NormalizePath [IP:0070] System.IO.Path :: GetFullPath [IP:001a]System.IO.FileStream::。ctor[IP :0009] System.IO.File :: WriteAllBytes [IP:0012] NetduinoPlusApplication1.Program :: Main [IP:0025]タイプ'System.IO.IOException'のファーストチャンス例外がSystem.IO.dllで発生しましたタイプ'System.IO.IOException'の未処理の例外がSystem.IO.dllで発生しました