LoginSignup
0
0

More than 1 year has passed since last update.

UnityでSMB 1.0を扱う方法備忘録

Posted at

UnityでSMB 1.0を扱う方法備忘録

SharpCifs.Stdをビルドする

GitHubから SharpCifs.Std をクローンし、ビルドする。
https://github.com/ume05rw/SharpCifs.Std

クローンしてそのままビルドすると下記のようなエラーが出る。

"{your solution path}\SharpCifs.Std\TestSharpCifs\secrets.json" は見つからなかったためコピーできません。

SharpCifs.Std\TestSharpCifs\secrets_novalue.json ファイルをコピーし、
SharpCifs.Std\TestSharpCifs\secrets.json としてペーストする。

image.png

これでビルドが通る。

ビルドされたdllをUnityプロジェクトに配置する

SharpCifs.STD1.3\bin\Release\SharpCifs.Std.dll をUnityのPluginsディレクトリにコピーすれば使える。

基本的な使い方

リポジトリのドキュメントがよく待ってるのでそっち読む。

ちょっとハマったこと

ディレクトリ操作するときとかはpathの末尾に / 入ってないとエラーが出る

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0