2016-01-26 152 views
1

我試圖在Visual Studio Professional 2015中更改字體和文本顏色,但選項不存在。我有我的解決方案打開/加載,它是C#/ MVC。無法在VS 2015中更改字體或顏色

在VS中登錄我的Microsoft帳戶後發生問題。我的自定義顏色是從我的帳戶導入的,但我無法對它們進行任何更改。 (保存的更改,但顏色實際上沒有在編輯器中更新。)我跑devenv /resetsettings,導致當前的問題。然後我修復了VS,但沒有解決問題。我也試過devenv /ResetUserData,那沒用。我嘗試從studiostyl.es導入一個主題。主題顏色顯示在編輯器中,但我仍然無法自定義它們,如下面的屏幕截圖所示。

更新:我完全卸載VS然後重新安裝它,問題一直存在。在這一點上我沒有任何想法。

爲什麼我無法更改我的顏色設置?

settings window with nothing available

我特別打開字體和顏色標籤時,有時會收到此錯誤。圖像下面給出了引用文件中唯一的錯誤。

fonts and colors error

<entry> 
    <record>396</record> 
    <time>2016/01/26 19:18:52.544</time> 
    <type>Error</type> 
    <source>VisualStudio</source> 
    <description>CreateInstance failed for package [Microsoft Data Transformation Services Designer][Could not load file or assembly &apos;Microsoft.DataTransformationServices.VsIntegration&apos; or one of its dependencies. The system cannot find the file specified.]:{ at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A; at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A; at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark&amp; stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)&#x000D;&#x000A; at System.Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark&amp; stackMark)&#x000D;&#x000A; at System.Activator.CreateInstance(String assemblyName, String typeName)&#x000D;&#x000A; at System.AppDomain.CreateInstance(String assemblyName, String typeName)}</description> 
    <guid>{96B36E93-F71C-4160-A4EA-26AE801D2F63}</guid> 
    <hr>80070002</hr> 
    <errorinfo>Could not load file or assembly 'Microsoft.DataTransformationServices.VsIntegration' or one of its dependencies. The system cannot find the file specified.</errorinfo> 
    </entry> 
+0

你在檢查文件時發現了什麼? –

+0

@KenWhite我用文件中的錯誤更新了問題。 – vaindil

回答

0

我最終無法解決問題。由於沒有任何與Visual Studio相關的工作(卸載,清除數據等),我不得不重新安裝Windows。激烈的解決方案,但這是我的工作電腦,我需要Visual Studio正常工作。

0

我相信當你拿到電腦正在尋找那就是通過計算機訪問的文件夾中的錯誤信息,我往往有這樣的當我保存從互聯網上的Word文檔。進入\ AppData \ Roaming \ etc ...文件夾並將您需要的文件夾複製到另一個目錄中。我不會從原來的地方刪除文件夾,只是創建另一個文件夾。在處理\ Roaming \文件時似乎遇到問題。

希望這會有所幫助!

1

我有完全一樣的問題,我終於能夠通過重新安裝SQL Server Data Tools(又稱SSDT)來解決這個問題,希望這有助於。

1

當試圖切換VS2015使用新安裝的字體時,我遇到了同樣的問題,並發現問題似乎與在VS打開時安裝和切換到字體有關。以下爲我解決了這個問題:

  1. Close VS.

  2. 如果您希望切換到的字體已經安裝,請將其卸載。

  3. 打開VS並確認字體不再可用(可能是不必要的)

  4. 關閉VS一次。

  5. 重新安裝字體。

  6. Open VS.

  7. 切換到新安裝的字體。

希望這有助於!

+0

這確實解決了這個問題,爲那些不得不重新安裝Windows來解決問題的人感到遺憾 –