How to add refence to another project in VS Code - visual-studio-code

I couldn't find how to add reference to another project in VS Code in help documentation or in Internet.
The approach from How to reference assemblies using Visual Studio Code? does work but looks really strange for that purpose.

I found it. Just use dotnet add reference [path to project.**csproj**].

Related

Project looking for own DLL in another project

I'm currently trying to move a solution with multiple projects from VS 2015 to VS 2019.It consists of one application and a couple of class libraries, target framework for each is .net 4.5.1. I have made a local copy of the solution to do this.
Most of the projects compile without a problem, but some of the one that are used as AddIns for the application don't.
When trying to build, doesn't matter if the projects by themselves or the whole solution, it fails because it's looking for itself. In my example picture, the project ZZ_WPF_Bank_AddIn is, while trying to build, is looking for the ZZ_WPF_Bank_AddIn in the bin folder of another project in the solution.
I tried just copying the dll from the original project, to see what happens, but it just points to the same dll missing in another project.
Has someone encountered this behaviour before? I tried googling it, but couldn't find anything useful.enter image description here
For anyone who might stumble upon this:
The solution to my problem was removing all references to projects inside the solution and adding them via Browse, noch via the projects tab on the left side. For some reason the bindings were not working properly after the migration.

End to end testing implementation for Visual Studio Code extension

I have developed a Visual Studio code extension. i want to implement end to end testing for each Command we configure in package.json. these commands have Quickpicks etc
i am not sure how to implement tests
I'm also looking for a concrete solution to do the same. While googling, I came across this. I haven't tried it yet but looks promising to me. Please share your experience in case you use it. Also, don't forget to share if you find a better working solution for the same.

View Class Hierachy in VS Code

Does VS Code inherently come with any tool other than Ctrl+Shift+O to view the entire class hierarchy within a project? Think similar to a Visual Studio solution or Eclipse project.
I've looked around the VS Code extension marketplace and have not seen one. It would be very useful to see this kind of tree for a TypeScript based project instead of seeing just the imports from a particular .ts file
If anyone knows of one, please share!
If you're in the Explorer, the built-in OUTLINE view does exactly this. I am apparently not paying attention.

Specflow Autogenerated c# code using cake

I was wondering if there was any way Cake could build Visual Studio Solution and detect changes in feature files and generate the corresponding changes. If not Cake, can it be done using any other way other than Visual Studio? I have tried finding documents related to it but I cant find anything related to it.
If you want to generate the code behind files of the feature files during build time, you have 2 options.
Run specflow.exe generate all in the pre build event
Documentation: http://specflow.org/documentation/Tools/
Use the MSBuild integration
Documentation. http://specflow.org/documentation/Generate-Tests-from-MsBuild/
The recommend way is to use the MSBuild integration.
I have no experience with Cake, but perhaps you can integrate/use one of these options with it.

VS Code, No code completion for c# code inside cshtml razor

Im having a problem with using Visual Studio Code for editing CSHTML files. im using windows. This is ordinary web matrix page not MVC..
#{
MyClass my = new MyClass();
MyClass.
}
No intellisense at all... Am I missing an extension or something..
It's something others have noticed as well. Apparently it's an upcoming feature with no ETA.
david-driscoll:
We'll be adding support to OmniSharp eventually to support Razor, sadly I don't have a specific timeline. This is mainly because it's not a very easy problem to solve, but it is something we want to get working.
https://github.com/OmniSharp/omnisharp-vscode/issues/168
Update: This has been released, and is under active development see: https://github.com/aspnet/AspNetCore.