How to use code from external project in Visual studio (c#)? - visual-studio

I have experience in c++ but not in c#.
I have a windows phone project going and would like to use this library:
http://sshnet.codeplex.com/
it has lots of C# source files and one Project File
After hours of googling and trying I still can't use the functions of Renci.sshnet.
I have Microsoft Visual Studio 2010 Express for Windows Phone.
Thanks in advance..

WP is Silverlight, so you need SshNet Windows Phone Binary. Did you took this one? What steps did you took to use(eg could you add a reference?).

I hope this help you.
First add the existing project(http://sshnet.codeplex.com/) into your same solution. Right click on the project in solution explorer and click on add reference , select the project tab. select the project you want to add.

Related

I can't find tab control in visual studio 2010

I using VS2010 professional edition. I can't find the TabControl anywhere. It's not only the tabControl, there are some others.
Do I need to download them from somewhere?
Thanks for helping
The link you refer to is Windows Forms and the TabControl is in the ToolBox:
You mention jQuery and for ASP.Net applications to you need use controls like these:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Tabs/Tabs.aspx
http://jqueryui.com/demos/tabs/
http://jquerytab.codeplex.com/
http://codecanyon.net/item/sliding-tabs-jquery-plugin/full_screen_preview/141774
http://www.codeproject.com/Articles/13165/A-Simple-ASP-NET-Tab-Control-Using-the-MultiView-c
http://www.codeproject.com/Articles/17292/Tab-control-for-ASP-NET-Applications

Creating a ".rc" file in Visual Studio 2010 Express

I'm trying to learn game programming. I am using Microsoft Visual Studio 2010 Express on Windows Vista. I want to know how to create a resource file (.rc). The microsoft website gives some fairly ambiguous instructions on creating one. http://msdn.microsoft.com/en-us/library/sxdy04be.aspx. If I go to my Solution explorer, right click and select Add New Item, the IDE does not give a .rc file as one of the options. It only gives me a .cpp, .h and windows form as options. I don't know what to do. I just can't figure out where i'm goofing up. I'd be very grateful if someone could point me in the right direction.
Thanks a lot
Merry christmas!
The Visual Studio Express 2010 does not have the ability to edit resource files. Take a look at this MSDN page it is the listing of which features each version of VS 2010 contain.
From above link. There is no resource editor in the Express Version.
This link discusses a way to add a resource editor to Visual Studio Express.
Also take a look at this MSDN Forum Link It has some tips and links to external editors.

Write VS 2010 plugin/addin/extension

For my project I was need localization plugin. I dont find it and instead of write own console localiztion utility. I think this will be useful for community.
I want to wrap it into plugin for VS.
May be already exisists VS addings project templates?
Can anybody help me from what I should start?
Many thanks.
Download and install the Visual Studio 2010 SDK. It comes with plenty of sample code.

How to develop Add-In/Extensions for Visual Studio 2010 [Source / Reference]

I'm thinking of developing a tool that runs under Visual Studio 2010 and am struggling to find sample applications, source codes, and especially handouts that help in this journey.
I wonder if anyone would have any recommendation of material, or website.
Thanks
Yes, please look into VSPackages, by far the easiest and best way to extend upon VisualStudio 2010.
http://msdn.microsoft.com/library/bb286983(VS.100).aspx
It's actually incredibly easy: Just open the New Project dialogue in Visual Studio and select Visual C#->Extensibility-> Visual Studio Package.
Then look into APIs like the DTE (Design Time Extensibility).
Have fun :)
Edit:
Further learning can be found in Open Source projects which I mentioned in the comments:
AllMargins: An extension that replaces the scroll bar.
http://code.msdn.microsoft.com/OverviewMargin/Release/ProjectReleases.aspx?ReleaseId=3957
And MetalScroll which does the same and is for VS2008 as an Add-In:
http://code.google.com/p/metalscroll/
The concepts of using the DTE are the same everywhere.

Load 2 solutions in Visual Studio .NET IDE

Is it possible to load more than one solution in the Visual Studio .NET IDE at once, so that both solutions appear in the Solution Explorer ?
Thanks
No, Visual Studio can only load one solution at a time. There's a Microsoft Connect suggestion on this very topic.
What you can do, though, (aside from an obvious option of opening several instances of Visual Studio) is to "Add Existing" project to either solution, or create an ubersolution which will include them both.
You can "add existing" picking .sln file type to current solution
or you can try to automate the process you can try playing around with this tool (might make sense if you have to do it repeatedly):
http://code.google.com/p/merge-solutions/

Resources