2016-01-26 149 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来解决问题的人感到遗憾 –