लोड करता है मैं सेटिंग्स फ़ाइल लोड करने के लिए बस एक रास्ता (शायद एक मैक्रो?) ढूंढ रहा हूं। आदर्श रूप से मैं इसे डेस्कटॉप से शॉर्टकट के रूप में चलाने में सक्षम होना चाहता हूं। मैंने इसे गुगल किया, लेकिन शायद मैंने सही कीवर्ड नहीं मारा।विजुअल स्टूडियो 2010 में मैक्रो जो सेटिंग्स फ़ाइल
5
A
उत्तर
5
यह एक मैक्रो है जो मेरे लिए काम करता है।
Sub MySub()
DTE.ExecuteCommand("Tools.ImportandExportSettings", "/import:""<full path to settings file>""")
End Sub
कुछ डॉक्स here
0
PowerShell में:
function Import-VisualStudioSettingsFile {
[CmdletBinding()]
param(
[string] $FullPathToSettingsFile,
[string] $DevEnvExe = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe",
[int] $SecondsToSleep = 20 # should be enough for most machines
)
if(-not (Test-Path $DevEnvExe)) {
throw "Could not find visual studio at: $DevEnvExe - is it installed?"
}
if(-not (Test-Path $FullPathToSettingsFile)) {
throw "Could not find settings file at: $FullPathToSettingsFile"
}
$SettingsStagingFile = "C:\Windows\temp\Settings.vssettings" # must be in a folder without spaces
Copy-Item $FullPathToSettingsFile $SettingsStagingFile -Force -Confirm:$false
$Args = "/Command `"Tools.ImportandExportSettings /import:$SettingsStagingFile`""
Write-Verbose "$Args"
Write-Host "Setting Tds Options, will take $SecondsToSleep seconds"
$Process = Start-Process -FilePath $DevEnvExe -ArgumentList $Args -Passthru
Sleep -Seconds $SecondsToSleep #hack: couldnt find a way to exit when done
$Process.Kill()
}
संबंधित मुद्दे
- 1. विजुअल स्टूडियो - "{}" सेटिंग्स
- 2. विजुअल स्टूडियो 2010 में दस्तावेज (एक्सएमएल) एप्लीकेशन सेटिंग्स
- 3. विजुअल स्टूडियो 2010-सी ++ प्रोजेक्ट
- 4. WindowsSdkDir विजुअल स्टूडियो 2010
- 5. विजुअल स्टूडियो 2010 अल्टीमेट
- 6. विजुअल स्टूडियो 2010 - RemovePreviousVersions
- 7. विजुअल स्टूडियो 2010 में xslt फ़ाइल डिबगिंग
- 8. विजुअल स्टूडियो 2010 में .pdb फ़ाइल निकालें
- 9. विजुअल स्टूडियो 2010 एक्सटेंशन
- 10. विजुअल स्टूडियो 2010 सी कोड विजुअल स्टूडियो 2010 में
- 11. विजुअल स्टूडियो 2010
- 12. विजुअल स्टूडियो मैक्रो
- 13. विजुअल स्टूडियो 2010 एक्सटेंशन जो कोड विस्तार
- 14. विजुअल स्टूडियो 2010
- 15. विजुअल स्टूडियो 2010
- 16. । Vssettings फ़ाइल (विजुअल स्टूडियो सेटिंग्स) रंग प्रारूप
- 17. विजुअल स्टूडियो 2010 ऐप_Data
- 18. विजुअल स्टूडियो 2010
- 19. विजुअल स्टूडियो 2010 प्रोजेक्ट
- 20. विजुअल स्टूडियो 2010
- 21. विजुअल स्टूडियो 2010
- 22. विजुअल स्टूडियो, अनुप्रयोग सेटिंग्स ...
- 23. विजुअल स्टूडियो 2010 समाधान स्तर
- 24. विजुअल स्टूडियो 2010
- 25. विजुअल स्टूडियो 2010 - प्रति डेवलपर/मशीन/पर्यावरण वेब। कॉनफिग सेटिंग्स
- 26. विजुअल स्टूडियो 2010
- 27. विजुअल स्टूडियो 2010
- 28. विजुअल स्टूडियो 2010
- 29. विजुअल स्टूडियो 2010
- 30. विजुअल स्टूडियो 2010