لا يمكن تشغيل nuget من سطر الأوامر على ترافيس
سؤال
لقد عدت لمحاولة الحصول على بعض مشاريع F# لتكون قابلة للبناء باستخدام Travis-ci
يمل:
language: objective-c
env:
global:
- EnableNuGetPackageRestore=true
matrix:
- MONO_VERSION="3.2.6"
before_install:
- wget "http://download.xamarin.com/MonoFrameworkMDK/Macx86/MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg"
- sudo installer -pkg "MonoFramework-MDK-${MONO_VERSION}.macos10.xamarin.x86.pkg" -target /
- mozroots --import --sync
script:
- mono "packages\\NuGet\\NuGet.exe" install Failess -OutputDirectory packages -ExcludeVersion -Prerelease
- mono "packages\\Failess\\tools\\Failess.exe" "build.fsx"
لكن حتى nuget يفشل هنا:
ترافيس: https://travis-ci.org/Heather/Failless/builds/19554098
تثبيت $ mono "packages uGet uGet.exe" فشل -حزم OutputDirectory -ExcludeVersion -الإصدار التجريبي
ApplicationName='/Users/travis/.local/share/NuGet/NuGet.exe', CommandLine='install Failess -OutputDirectory packages -ExcludeVersion -Prerelease' , CurrentDirectory='/Users/travis/build/Heather/Failess' , Native error= Cannot find the specified file The command "mono "packages\NuGet\NuGet.exe" install Failess -OutputDirectory packages -ExcludeVersion -Prerelease" exited with 1.
ما الخطأ فى ذلك؟
المحلول
لذا فإن الخطوط المائلة لا تهم، والتشغيل داخل برنامج نصي لا يهم، وأعتقد أن ما لديك يجب أن يعمل.
المشكلة هي تلك النسخة NuGet.exe
تم التحقق من المستودع الخاص بك وهو إصدار قديم من nuget غير متوافق مع mono.تحميل الإصدار الأحدث من https://nuget.org/nuget.exe أو يمكنك استخدامها NuGet.exe update --self
إذا كان إصدار nuget لديك يدعمه.
لا تنتمي إلى StackOverflow