2013-09-01 7 views
9

मेरे वर्चुअल एनवायरनमेंट सेटअप को व्यवस्थित करने के प्रयास में, मैं अपने वीएम को स्वचालित करने के लिए Chocolatey का उपयोग कर रहा हूं।मैं कमांड लाइन के माध्यम से विजुअल स्टूडियो अपडेट की जांच कैसे कर सकता हूं?

जब से मैं दृश्य स्टूडियो

c:\> cinst VisualStudio2012Professional 

अगर बाद इसके इंस्टॉल हो मैं सोच रहा हूँ स्थापित करने के लिए cinst आदेश चला सकते हैं, वहाँ के लिए जाँच करने के लिए (और बाद में "इंस्टॉल करें") दृश्य के भीतर अपडेट एक कमांड लाइन स्विच है स्टूडियो? की तर्ज पर

कुछ ...

"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe" /InstallUpdates 

यह भी किसी भी एक्सटेंशन उस तरफ बनाम साथ स्थापित कर रहे हैं विस्तार करने के लिए करना चाहिए

उत्तर

9

जांच करने का एक तरीका है लेकिन यह बिल्कुल आगे नहीं है। \ Program Files (x86) \ माइक्रोसॉफ्ट विजुअल स्टूडियो 11.0 \ Common7:

सी:

http://go.microsoft.com/fwlink/?LinkID=251032

यह URL में स्थित किया जा सकता है: दृश्य स्टूडियो अद्यतन एक एटम फ़ीड है कि वर्तमान में यहां की मेजबानी की है के माध्यम से प्रकाशित कर रहे हैं \ आईडीई \ CommonExtensions \ प्लेटफार्म \ शैल \ Microsoft.VisualStudio.ExtensionManager.Implementation.pkgdef

[$ RootKey $ \ ExtensionManager \ डेटा संग्रह स्थान {52943709-1abb-4abe-b413-41e8bb6d0462}] कुंजी के तहत।

उपर्युक्त यूआरएल विजुअल स्टूडियो के किसी भी संस्करण के लिए नहीं बदला जाना चाहिए लेकिन यह गारंटी नहीं है।

<?xml version="1.0" encoding="utf-8"?> 
<feed xmlns="http://www.w3.org/2005/Atom"> 
    <title type="text"></title> 
    <id>uuid:99B94631-1B1A-45A0-9C34-54F75988DD54;id=1</id> 
    <updated>2013-02-12T20:00:00-07:00</updated> 
    <entry> 
    <id>8EAF6C8E-1283-4EEE-AB6E-F0F087BFCBFF</id> 
    <title type="text">Visual Studio 2012 Update 3</title> 
    <summary type="text">Includes security updates, other critical updates, hotfixes, and feature packs that have been issued since the product was released.</summary> 
    <published>2012-12-01T21:00:00-07:00</published> 
    <updated>2012-12-01T21:00:00-07:00</updated> 
    <author> 
     <name>Microsoft Corp.</name> 
    </author> 
    <link rel="alternate" type="text/html" href="http://go.microsoft.com/fwlink/?LinkID=257044&amp;clcid=0x409"/> 
    <link rel="releasenotes" type="text/html" href="http://go.microsoft.com/fwlink/?LinkID=257045&amp;clcid=0x409"/> 
    <link rel="update" type="text" href="http://go.microsoft.com/fwlink/?LinkID=302339"/> 
    <!-- icon should be 32 x 32 pixels --> 
    <link rel="icon" type="text" href="http://visualstudiogallery.msdn.microsoft.com/Content/VisualStudio/VSDownload_32x.png"/> 
    <!-- preview image should be 200 x 200 pixels --> 
    <link rel="previewimage" type="text" href="http://visualstudiogallery.msdn.microsoft.com/Content/VisualStudio/VSDownload_200x.png"/> 
    <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/developer/vsx-syndication-schema/2010"> 
     <Id>8EAF6C8E-1283-4EEE-AB6E-F0F087BFCBFD</Id> 
     <Version>11.0.60610.01</Version> 
     <References /> 
    </Vsix> 
    </entry> 
    <entry> 
    <id>28743233-1A36-4e67-8747-F072F8C76D1F</id> 
    <title type="text">Visual Studio Extensions for Windows Library for JavaScript</title> 
    <summary type="text">This release updates the development resources for the controls, CSS styles, and helper functions that are included in the Windows Library for JavaScript.</summary> 
    <published>2013-08-08T20:00:00-07:00</published> 
    <updated>2013-08-08T20:00:00-07:00</updated> 
    <author> 
     <name>Microsoft Corp.</name> 
    </author> 
    <link rel="alternate" type="text/html" href="http://go.microsoft.com/fwlink/?LinkId=260891&amp;clcid=0x409"/> 
    <link rel="releasenotes" type="text/html" href="http://go.microsoft.com/fwlink/?LinkID=260892&amp;clcid=0x409"/> 
    <link rel="update" type="text" href="http://go.microsoft.com/fwlink/?LinkID=260893"/> 
    <link rel="icon" type="text" href="http://visualstudiogallery.msdn.microsoft.com/Content/VisualStudio/VSDownload_32x.png"/> 
    <link rel="previewimage" type="text" href="http://visualstudiogallery.msdn.microsoft.com/Content/VisualStudio/VSDownload_200x.png"/> 
    <Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/developer/vsx-syndication-schema/2010"> 
     <Id>Microsoft.WinJS</Id> 
     <Version>1.0.9200.20789</Version> 
     <References /> 
    </Vsix> 
    </entry> 
</feed> 

नोट इस फ़ीड और एक आप में रुचि रखते हैं में दो प्रविष्टियों "Visual Studio 2012 के साथ शुरुआत एक शीर्षक के साथ एक देखते हैं कि जाता है: आप http://go.microsoft.com/fwlink/?LinkID=290886 की प्रतिक्रिया की जांच, तो आप वर्तमान में यह प्रतिसाद मिलेगा अद्यतन करें।"

तो संस्करण इस फ़ाइल में निर्दिष्ट (यहाँ 11.0.60610.01) संस्करण से अधिक है तो आप डिस्क पर है:

(Get-Item "${env:ProgramFiles(x86)}\Microsoft Visual Studio 11.0\common7\ide\devenv.exe").VersionInfo.ProductVersion 

तो फिर तुम में लिंक/@ अद्यतन डाउनलोड करने और यूआरएल को स्थापित करना चाहते हैं नोड:

<link rel="update" type="text" href="http://go.microsoft.com/fwlink/?LinkID=302339"/> 

उस यूआरएल को एक एमएसआई पर रीडायरेक्ट करना चाहिए जिसमें अद्यतन है।

+0

यह समस्या हल करने के लिए एक अच्छा, लेकिन हैकी तरीका है। Devenv.exe कमांड लाइन स्विच में यह सब शामिल करने के लिए कोई सुविधा अनुरोध कौन करेगा/कहां करेगा? यदि यह उन "गनना कभी नहीं होता" स्थितियों में से एक है, तो मैं बस ऐसा करने के लिए एक EXE बनाने और इसे # चॉकलेट पर धक्का दे सकता हूं। –

+1

हाँ। शायद आप जिस एपीआई की उम्मीद कर रहे थे वह नहीं है :) बनाम फीचर अनुरोध सबमिट करने के लिए कहीं कहीं एक यूजरवॉइस साइट है लेकिन मुझे संदेह है कि यह बैकलॉग पर अधिक झूठ बोलता है।मैं भी सोच रहा था कि चॉकलेट स्वयं-अद्यतनकर्ता बनाने के लिए tlit शांत होगा। इसके दौरान आप अपडेट के लिए choco संकुल पा सकते हैं। पैकेज निर्माता और उपभोक्ता को बनाए रखने के लिए यह दर्द है। –

1

Devenv Command Line Switches एमएसडीएन दस्तावेज में स्थित जानकारी के आधार पर। विजुअल स्टूडियो को अद्यतनों की जांच/स्थापित करने के लिए वर्तमान में कमांड लाइन स्विटिच को कॉल करने का कोई तरीका नहीं है।

हालांकि मैट रॉक उनके जवाब में एक अच्छा कामकाज दिखाता है।

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

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