pedropombeiro / ReSharper.AutoFormatOnSave

An addin for Visual Studio which causes the documents to be reformated on save
http://blog.pedropombeiro.com/keeping-code-formatted-the-easy-way/
MIT License
27 stars 20 forks source link

Extension is failed to load #7

Closed andrewmolyuk closed 9 years ago

andrewmolyuk commented 10 years ago

After upgrade to 1.2.0 I've started to fail.

Environment : Windows 7 x64, VS2012 Pro U4, Resharper 7.1.1 Activity log extraction:

324 Begin package load [ReSharper.AutoFormatOnSave.ReSharper_AutoFormatOnSavePackage, ReSharper.AutoFormatOnSave, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0c13295e2103ff99] {2C65FBA8-3ECB-4004-8EE3-6D9E62CD987A} VisualStudio 2013/11/27 13:29:22.246

325 ERROR CreateInstance failed for package [ReSharper.AutoFormatOnSave.ReSharper_AutoFormatOnSavePackage, ReSharper.AutoFormatOnSave, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0c13295e2103ff99] {2C65FBA8-3ECB-4004-8EE3-6D9E62CD987A} 80070002 VisualStudio 2013/11/27 13:29:22.252

326 ERROR End package load [ReSharper.AutoFormatOnSave.ReSharper_AutoFormatOnSavePackage, ReSharper.AutoFormatOnSave, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0c13295e2103ff99] {2C65FBA8-3ECB-4004-8EE3-6D9E62CD987A} 80004005 - E_FAIL VisualStudio 2013/11/27 13:29:22.253

image

mkisaacs commented 10 years ago

I get something similar with v1.2 on a Windows 8.1 x64 machine, running Visual Studio Ultimate 2012: A dialog provides a little info. 2014-02-06 11_27_00-microsoft visual studio

The ActivityLog.xml shows the following:

590 Information VisualStudio Begin package load [ReSharper.AutoFormatOnSave.ReSharper_AutoFormatOnSavePackage, ReSharper.AutoFormatOnSave, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0c13295e2103ff99] {2C65FBA8-3ECB-4004-8EE3-6D9E62CD987A}
<entry>
    <record>591</record>
    <time>2014/02/06 19:25:01.919</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>CreateInstance failed for package [ReSharper.AutoFormatOnSave.ReSharper_AutoFormatOnSavePackage, ReSharper.AutoFormatOnSave, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0c13295e2103ff99]</description>
    <guid>{2C65FBA8-3ECB-4004-8EE3-6D9E62CD987A}</guid>
    <hr>80070002</hr>
    <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.10.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
<entry>
    <record>592</record>
    <time>2014/02/06 19:25:01.919</time>
    <type>Error</type>
    <source>VisualStudio</source>
    <description>End package load [ReSharper.AutoFormatOnSave.ReSharper_AutoFormatOnSavePackage, ReSharper.AutoFormatOnSave, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0c13295e2103ff99]</description>
    <guid>{2C65FBA8-3ECB-4004-8EE3-6D9E62CD987A}</guid>
    <hr>80004005 - E_FAIL</hr>
    <errorinfo>Could not load file or assembly 'Microsoft.VisualStudio.Shell.10.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.</errorinfo>
</entry>
taconaut commented 9 years ago

I'm getting thee xact same error as described by @mkisaacs on a v64 win7 machine running VS2010 ultimate (10.0.40219.1 SP1 Rel). Did you find a solution for this? I'd love to use the extension.

chwt commented 9 years ago

Same environment and error as @taconaut.

Just copying the first search engine link on that topic: http://stackoverflow.com/questions/25606632/how-can-a-vs-extension-target-multiple-versions-in-regard-to-microsoft-visualstu

pedropombeiro commented 9 years ago

Should be fixed with new version 1.2.2

taconaut commented 9 years ago

Thanks! I can confirm my issue is fixed with the new release.

pedropombeiro commented 9 years ago

Glad to hear that @taconaut! I apologize for the time it took to fix it, but I'm not using the extension myself at this point, so I didn't really have things set up to test it.