alphacep / alphacep/vosk-api

Publishing for Linux runtime from Windows machine is broken

Offen
#1,159 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
15.1k
Forks
1.8k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

in the nuget targets (https://github.com/alphacep/vosk-api/blob/master/csharp/nuget/build/Vosk.targets), if checks [MSBuild]::IsOsPlatform to decide what library to copy to the output folder.

When publishing on a Windows machine, [MSBuild]::IsOsPlatform(Windows) is always true, regardless of the target runtime.

This means that running on a Windows machine a publish like
dotnet publish -c Release -o "centos-x64" --force --self-contained False -r linux-x64 -f net6.0

ends up with libvosk.dll instead of libvosk.so in the output folder

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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