启动vs2015专业版时,出现类似于这样的提示框,有好几个,点击是或否,但下次打开还是会出现。笔者也寻找了网上的一些解决办法,例如用vs命令窗口或其他,但都无疾而终,下面提供的这个办法,顺利解决此问题,以供.net从业者参考。
打开路径 C:\Users\用户名\AppData\Roaming\Microsoft\VisualStudio\14.0 将下面的文档放入该文件夹;
文档名:ActivityLog.xml
内容:
<entry> <record>257</record> <time>2010/05/02 20:36:35.490</time> <type>Error</type> <source>VisualStudio</source> <description>CreateInstance failed for package [Microsoft.Data.Entity.Design.BootstrapPackage.BootstrapPackage, Microsoft.Data.Entity.Design.BootstrapPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description> <guid>{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}</guid> <hr>80070002</hr> <errorinfo>Could not load file or assembly 'Microsoft.Data.Entity.Design.BootstrapPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo> </entry> <entry> <record>258</record> <time>2010/05/02 20:36:35.513</time> <type>Error</type> <source>VisualStudio</source> <description>End package load [Microsoft.Data.Entity.Design.BootstrapPackage.BootstrapPackage, Microsoft.Data.Entity.Design.BootstrapPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]</description> <guid>{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}</guid> <hr>80004005 - E_FAIL</hr> <errorinfo>Could not load file or assembly 'Microsoft.Data.Entity.Design.BootstrapPackage, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo> </entry>
XML