How to include a Nuget package in a Visual Studio Extension (vsix) -


i have created visual studio extension (vsix) makes changes our application's code using roslyn.

the vsix solution includes nuget package microsoft.codeanalysis.analyzers. aside, described version 1.3.2, underlying dlls (e.g. "microsoft.codeanalysis.csharp.dll") report 1.3.2.

anyhow, put on our local private gallery. there, can add visual studio (vs2015 update 3) , executes expected.

however, after colleagues add visual studio (vs2015 update 3) , attempt execute it, receive following message:


microsoft visual studio

could not load file or assembly 'microsoft.visualstudio.languageservices, version=1.3.1.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified.

ok

when in vsix archive, see many dlls, these "my dll" , prefix "system.". i'm not seeing prefix "microsoft.". did try manually copying every dll have in bin folder vsix see if make difference, no success.

all dll referenced appear have "copy local" on them, they're in bin, they're not accessible on end users' machines.

i see manifest can include both "assets" , "dependencies", it's not clear if these can used nuget packages.

what missing?

eventually found answer:

vsix project templates , nuget packages

  • see answer min (aug 28 '13) regarding youtube video
  • and take note of kylemit's comment regarding in rather lengthy video appears.

the fix rather lengthy, best presented in video.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -