set property 'system.windows.resourcedictionar

2019-06-15 01:58发布

I'm running Visual Studio 2012, when I add a new File/Reference to a project the message box appears showing the error message

set property 'system.windows.resourcedictionary.deferrablecontent' threw an exception

I read an MSDN article suggesting to run the command devenv /resetuserdata on visual studio command prompt to resolve this problem, tried it but didn't work for me. In fact the command prompt shows the Unknown Error message.

12条回答
Viruses.
2楼-- · 2019-06-15 02:29

The mentioned issue can be resolved by simply restart the Visual Studio. :P

查看更多
疯言疯语
3楼-- · 2019-06-15 02:35

Other wise make sure given Resourcedictionary.xaml path is correct or not

查看更多
Luminary・发光体
4楼-- · 2019-06-15 02:36

I had this problem with My Devexpress Project in VS 2015 What finally worked for me was. Close my solution, Close Visual Studio, Open Visual Studio, Create a New dummy project, Add a form to it, Close and save the new project, Reopen original project and all was ok.

查看更多
乱世女痞
5楼-- · 2019-06-15 02:37

In my case it was to first launch Visual Studio in safe mode. You can create a shortcut for visual studio with a target like this:

'"F:\Program Files\Visual Studio\VS2013\Common7\IDE\devenv.exe" -safemode'

Once launched in safe mode, you can remove the problematic extension via the Addin Manager. However, this wont work for some extensions, as the uninstall option might be disabled for certain extensions when running in safe mode, particularly if you have already uninstalled another extension in the same session.

In My case the problem was caused by Paradox Game engine, in which I had uninstalled it via 'Programs and Features' - which in return did not remove the extension which was originally installed via Nuget package. Uninstalling Paradox via "Programs And Features" left the extension itself still registered in Visual Studio, presumably causing a hidden NullReferenceException.

This issue can be caused by any extension that may have an error in it, or by extensions that were not properly uninstalled.

Also, see this article...

查看更多
等我变得足够好
6楼-- · 2019-06-15 02:42

I fixed it. The resolution was to remove the Windows Azure Tools for Visual Studio 2012 which I was not actually using, and the error went straight away.

查看更多
Animai°情兽
7楼-- · 2019-06-15 02:45

Also seem to be able to get around this by closing the project and vis studio instance, re-opening, then when the start page/open project screen appears selecting Tools > Extensions and Updates..., then pressing Close

Now open the project and the error doesn't get thrown when trying add files or manage nuget packages, weird.

Just annoying you have to remember to open Extensions and Updates each time...

查看更多
登录 后发表回答