तो मेरे पास एक पैकेज है, NServiceBus.Host जो NServiceBus> = 4.5.0 पर निर्भर करता है।NuGet पैकेज निर्भरता के गलत संस्करण को हल करता है
nuget पर NServiceBus का 4.5.1 संस्करण है। जब मैं-पैकेज स्थापित NServiceBus.Host मैं:
PM> install-package nservicebus.host
Attempting to resolve dependency 'NServiceBus (≥ 4.5.0)'.
Attempting to resolve dependency 'NServiceBus.Interfaces (≥ 4.5.0)'.
Installing 'NServiceBus.Interfaces 4.5.0'.
You are downloading NServiceBus.Interfaces from NServiceBus Ltd, the license agreement to which is available at http://particular.net/LicenseAgreement. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'NServiceBus.Interfaces 4.5.0'.
Installing 'NServiceBus 4.5.0'.
आप देख सकते हैं मैं निर्भरता के 4.5.0 संस्करण मिलता है।
nuget doco में यह कहा गया है: निर्भरता स्थापित नहीं है
हैं, NuGet निम्नलिखित चरणों के माध्यम से चला जाता है:
NuGet फ़ीड उस संस्करण विनिर्देश भीतर है भीतर Subkismet के हर संस्करण विश्लेषण करता है । NuGet तब संकुचित करता है जो सबसे कम मेजर/माइनर संस्करण वाले पैकेजों को केवल पर सेट करता है। शेष पैकेजों में से, NuGet उच्चतम संस्करण संख्या वाला एक चुनता है।
"NuGet उच्चतम संस्करण संख्या वाला एक चुनता है।" ऐसा लगता है कि यहां कभी भी संस्करण नहीं है।
क्या यह NuGet में एक बग है?
जब आप प्रलेखन का हिस्सा requoted अगर आपके अंत से पहले पैरा एक सा याद किया: "शेष संकुल * के *, NuGet उच्चतम संस्करण संख्या के साथ एक उठाता है" - एक उच्च संस्करण संख्या में हो सकता है NuGet भंडार में, लेकिन यह आपके पैकेज या इसकी निर्भरताओं द्वारा संदर्भित उच्चतम संख्या नहीं है। –
लेकिन इस मामले में शेष पैकेज के उस सेट में 4.5.0 और 4.5.1 दोनों शामिल किए जाने चाहिए? –