Azure-Samples / Azure-Samples/batch-dotnet-quickstart

filepath is not compatible with mac os

オープン
#14 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C#
スター
16
フォーク
35
PR マージ指標
30日以内にマージされた PR はありません

説明

> Please provide us with the following information:
> ---------------------------------------------------------------
Function:
private static ResourceFile UploadFileToContainer
returns a ResourceFile created by
ResourceFile.FromUrl(blobSasUri, filePath)

The filePath is in macOS style, but is used in the azure task as a windows path:
cmd /c type /Users/xyz/Dokumente/Azure/Lab_BatchJob/batch-dotnet-quickstart-master/BatchDotnetQuickstart/bin/Debug/netcoreapp2.1/taskdata0.txt

This command does not work on the windows virtual machine in azure...

### This issue is for a: (mark with an `x`)
```
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
> compile and run with visual studio for mac

### Any log messages given by the failure
>Task ends with error:
The syntax of the command is incorrect.

### Expected/desired behavior
>

### OS and Version?
> macOS Catalina

### Versions
>newest

### Mention any other details that might be useful

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

プライベートな static ResourceFile UploadFileToContainer 関数と ResourceFile.FromUrl(blobSasUri, filePath) の呼び出しから始めます。Visual Studio for Mac でコンパイルして実行して再現し、その後、Azure タスクのコマンドで macOS のパスがどのように使用されているかを調べます。タスクが Windows 仮想マシン上で、コマンド構文エラーなしに生成されたファイル パスを処理できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, csharp
領域
cloud, operating-systems
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。