Skip to content

VS2017 - Can't resolve dependencies #13

Closed

Description

@GrahamTheCoder

If I debug the vsix project on commit dd123bf
when I attempt a conversion I receive the error below.
The dependencies haven't been copied to the extension folder (I believe because things with the MS public key token get excluded from being copied).

I tried a few fixes but for now I could only get this big hammer solution to work for me: c37e211

---------------------------
Microsoft Visual Studio
---------------------------
Convert VB to C#:

An error has occured during conversion: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

File name: 'Microsoft.CodeAnalysis, Version=2.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

   at ICSharpCode.CodeConverter.CodeWithOptions..ctor(String text)

   at RefactoringEssentials.VsExtension.CodeConversion.TryConvertingVBToCSCode(String inputCode) in C:\Users\Graham\Documents\GitHub\CodeConverter\Vsix\CodeConversion.cs:line 103

   at RefactoringEssentials.VsExtension.CodeConversion.PerformVBToCSConversion(IServiceProvider serviceProvider, String inputCode) in C:\Users\Graham\Documents\GitHub\CodeConverter\Vsix\CodeConversion.cs:line 67



=== Pre-bind state information ===

LOG: DisplayName = Microsoft.CodeAnalysis, Version=2.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)

LOG: Appbase = file:///C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/Common7/IDE/

LOG: Initial PrivatePath = NULL

Calling assembly : ICSharpCode.CodeConverter, Version=5.5.0.0, Culture=neutral, PublicKeyToken=null.

===

LOG: This bind starts in LoadFrom load context.

WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().

LOG: Using application configuration file: C:\Users\Graham\AppData\Local\Microsoft\VisualStudio\15.0_65d9c480Roslyn\devenv.exe.config

LOG: Using host configuration file: 

LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.

LOG: Post-policy reference: Microsoft.CodeAnalysis, Version=2.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

LOG: The same bind was seen before, and was failed with hr = 0x80070002.


---------------------------
OK   
---------------------------

Activity

  1. changed the title [-]Running debug version can't resolve dependencies[/-] [+]VS2017 - Can't resolve dependencies[/+] on Jan 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions