2015-05-21 26 views
6

मैं एक चॉकलेट पैकेज बनाने की कोशिश कर रहा हूं। मैंने शुरुआत में एक संस्करण बनाया था जिसमें कोई निर्भरता नहीं थी और मैंने बस उपकरण/बिन निर्देशिका में एक एक्सई फ़ाइल डाली और फिर एक साधारण nuspec फ़ाइल बनाई, और यह सही ढंग से exe फ़ाइल को पथ पर स्थापित करेगा, जो मुझे चाहिए यह आंतरिक उपकरण।मैं एक पैकेज कैसे बना सकता हूं जो "परियोजनाओं को लक्षित करता है" पर निर्भर करता है?

हालांकि, परियोजना को अब पुनर्गठित किया गया है ताकि यह बाहरी निर्भरता पर निर्भर हो। निर्भरता एक nuget पैकेज है जो मुख्य परियोजना के रूप में एक ही भंडार में है। निर्भरता जोड़ने के लिए, मैंने इसे निर्भरता अनुभाग में जोड़ा। विजुअल स्टूडियो में प्रोजेक्ट स्वयं भी इस पर निर्भर है। यहाँ मेरी nuspec फ़ाइल है: (मैं कुछ डेटा, rm द्वारा चिह्नित हटा दिया है, लेकिन यह यह प्रभावित नहीं होना चाहिए बाकी सब कुछ वैसा ही है।)

<?xml version="1.0" encoding="UTF-8"?> 
<!-- Do not remove this test for UTF-8: if “Ω” doesnt appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. --> 
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd"> 
    <metadata> 
     <!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages --> 
     <id>lisp-translator</id> 
     <title>lisp-translator (Install)</title> 
     <version>0.1.0</version> 
     <authors>rm</authors> 
     <owners>rm</owners> 
     <summary>rm</summary> 
     <description>rm</description> 
     <projectUrl>rm</projectUrl> 
     <tags>lisp-translator admin</tags> 
     <copyright /> 
     <licenseUrl>rm</licenseUrl> 
     <requireLicenseAcceptance>false</requireLicenseAcceptance> 
     <!--<iconUrl>http://cdn.rawgit.com/__REPLACE_YOUR_REPO__/master/icons/lisp-translator.png</iconUrl>--> 
     <dependencies> 
     <dependency id="LispParsingLibrary" version="1.1.0.17190" /> 
     </dependencies> 
     <releaseNotes /> 
    </metadata> 
</package> 

हालांकि, जब मैं इसे स्थापित करने का प्रयास, मैं एक नहीं बल्कि गूढ़ मिल त्रुटि:

lisp-translator not installed. An error occurred during installation: 
External packages cannot depend on packages that target projects. 
The install of lisp-translator was NOT successful. 
lisp-translator not installed. An error occurred during installation: 
External packages cannot depend on packages that target projects. 

Chocolatey installed 0/1 package(s). 1 package(s) failed. 
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 
Failures: 
- lisp-translator 

इस निर्भरता को जोड़ने के संबंध में मैं क्या गलत कर रहा हूं?

उत्तर

1

यह वास्तव में पुराना, गूंगा न्यूज पैकेजिंग मुद्दा है। पैकेज LispParsingLibrary में एक "फ़ोल्डर" नामक फ़ोल्डर है। जिसका अर्थ है कि आपके पैकेज में भी एक सामग्री फ़ोल्डर की आवश्यकता होगी।

हम इसकी बिल्कुल अनुशंसा नहीं करते हैं। कृपया उस फ़ोल्डर को हटाने या इसे इंस्टॉल करने और फ़ाइलों में प्रतिलिपि बनाने के लिए LispParsingLibrary के रखरखाव से पूछें।

मैंने सोचा था कि हम एक मुद्दा यह ट्रैक करने के लिए दायर किया गया था, लेकिन मैंने जोड़ा https://github.com/chocolatey/choco/issues/290

+0

इससे संबंधित एक सवाल यह है कि http://stackoverflow.com/questions/24710818/external-packages-cannot-depend-on-packages- वह-लक्ष्य-परियोजना-आंशिक-विफलता – ferventcoder

+0

LispParsingLibrary में कोई सामग्री फ़ोल्डर प्रतीत नहीं होता है। उदा।, इसे NuGet पैकेज एक्सप्लोरर में खोलने से केवल एक lib/net45 फ़ोल्डर dll और कोई सामग्री फ़ोल्डर नहीं दिखाता है। – Jake

+0

@ जेक इस लिस्पपर्सिंग लाइब्रेरी पैकेज को कहां से ढूंढता है? मैं इसे न्यूजेट या चॉकलेट पर नहीं देखता हूं। – ferventcoder

संबंधित मुद्दे

 संबंधित मुद्दे