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

filepath is not compatible with mac os

Offen
#14 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
C#
Sterne
16
Forks
35
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

> 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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit der privaten statischen ResourceFile UploadFileToContainer-Funktion und dem Aufruf ResourceFile.FromUrl(blobSasUri, filePath). Reproduziere das Problem, indem du mit Visual Studio for Mac kompilierst und ausführst, und prüfe anschließend, wie der macOS-Pfad im Azure-Task-Befehl verwendet wird. Fertig ist die Aufgabe, wenn der Task den generierten Dateipfad auf der Windows-VM ohne den Syntaxfehler des Befehls verarbeiten kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, csharp
Bereich
cloud, operating-systems
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.