Visual Studio 2010 Express multi-language solutions - c#

I am working on a C# project, which needs a VB.NET Class library.
I have added the DLL reference of VB.NET Project into C# project.
This works fine, but sometimes I need to debug the VB.NET project or pause the project and check the variable values of my VB.NET Project.
Is it possible in Visual Studio 2010 Express Edition?

What you can do is to keep two VisualStudio express open at the same time. One with the C# solution and the other one with the VB solution.
Also you make sure the VB project compiles where the c# finds its references (or reference the library from the Debug/Release folder)
At this point you can edit both the projects at the same time (it's tricky but it should work).
Problem is you do not have the "Attach to Process" feature of Visual Studio which would allow you to simply debug in one or another depending on the circumstances.
Maybe, you can follow these links to obtain what you want:
http://stewartr.blogspot.com/2006/09/debugging-nunit-in-visual-studio.html
http://www2.wealth-lab.com/Wiki/kbDebugExpress.ashx
In the link, it shows how Nunit is attached to the debugger.
Hope it helps

No this is not possible to do with Visual Studio Express. The Express SKU's only support a single language at a time.

Related

Good way to share demo code in Visual Studio without it depending on the version

Many of my colleagues use Visual Studio 2010 and 2008, I use 2010, 2012 and 2008.
Has anyone found a good way to share assemblies and source code without having the reader having to convert the solution to whatever flavour of Visual Studio they are using?
(I realise that frameworks need to be installed etc.)
You can create multiple solutions for each per "Visual studio version". but make sure you have compatible target framework version in your projects.
If you are only distributing a single project file you can just leave out the solution file (.sln) and only include the project (.csproj) files. Visual studio will create it's own .sln file the first time the user saves the project after opening it.
If you have multiple assemblies you need included one thing you can do is have multiple .sln files (one for 2008 and one for 2010 and newer. 2010, 2012, and 2013 can all use the same .sln file) and have them point at the same .csproj files. Just create the solution in 2008 with all of its projects, then create a new empty solution in 2010 and add all of the existing projects to the 2010 solution.
EDIT: I just found out that some types of projects are not cross version compatible. If you run in to this just create a version spcific .csproj file too and have it point at the same source files (you will need to keep the projects in sync by hand if you change project settings or add/remove any new source files)
Generally, program your solution to the lowest possible .NET framework version... Sounds like 2.0 would be right up your alley. Do this because the older versions of Visual Studio do not support the newer frameworks.
If your code can all be written using one of the Express versions, then you and your colleagues should all get VS2013 Express. All of the Express versions are free, so there's little reason not to use the latest.

Visual Studio Extensibility Package 2010 and 2012. Is there a way to have one package for both?

A while ago I created a Visual Studio Package/Add-In for Visual Studio 2010 (for those curious: http://visualstudiogallery.msdn.microsoft.com/ea23f9a7-a942-45b2-87e6-5df6ff0444ff). If I try to download that and install it in Visual Studio 2012, it doesn't work, I get a version error.
So my first thought was to see what happens if I try to port it to 2012. I downloaded and installed the VS2012 RC SDK, and basically recreated the whole thing in a separate solution and it all works. What I noticed was that many of the assemblies I had to reference (Microsoft.VisualStudio.*) were now version 11 as opposed to version 10 (for obvious reasons). After copying and pasting all the code over, I got it to work correctly in Visual Studio 2012.
My question now is this: Is it possible to have one .vsix file for multiple versions of Visual Studio (I'm guessing no.) If not, what's the correct approach to take as far as uploading the different versions? Can I upload two versions of a .vsix? Will the Add-In manager in visual studio pick the correct one automatically? Do I need to create a new package e.g. "Visual Pastie 2012"? Just looking for some guidance.
Rename the VSIX package to give it a ZIP extension and open it up. You'll find a file called extension.vsixmanifest. Inside this XML file you'll find an element called SupportedProducts which should look like the following to work in VS2012.
<SupportedProducts>
<VisualStudio Version="11.0">
<Edition>Pro</Edition>
</VisualStudio>
</SupportedProducts>
HTH

Can't add Visual C++ template project in Visual Studio Express

Don't know if this is related to the fact that I'm using Visual Studio 2010 Express, but when trying the first step in the link below I can't find the template Visual C++. I tried to download Visual C++ 2010 Express but still no luck.
Does anyone have a work around for this?
http://msdn.microsoft.com/en-us/library/ff967550(v=VS.92).aspx
EDIT:
I have now tried to create this DLL in Visual C++ 2010 Express instead. When following the guide from the link above I get stuck when I should add resource to the project (Step 2 under 'Create the Language-Neutral Resource Strings for Your Application'). The menu item is greyed out/disabled.
You will need the C++ edition of VS Express to create this Win32 Resource DLL. I assume that that is possible.
And then add the Project (might work) or the resulting file (should work) to your Phone project.
as far as I know you cannot create or build a native C/C++ project in Visual Studio Express. As I understand it, the Visual Studio Express is similar to a demo version that only allows you to create projects that use the .NET framework.
To create and build native C/C++ projects you need the retail Visual Studio Professional.

Downgrade C# Project from visual studio 2010 to visual studio 2008

I wrote a visual c# 2008 windows form application ,then i edited the code in a computer which had visual studio 2010,but i can no longer run it in visual 2008,is there a way i can do this?
When you say "can no longer run it"... what happens?
the sln files are not compatible; you'll need different sln files for each VS version
the csproj are mostly compatible, although you might see a "version 4 not recognised, using 3.5 instead" warning or two, which is usually fine
the cs is compatible as long as you don't use dynamic or the other new language features
In most cases you can get away with just having a separate sln for VS2010. So just rename it to "Whatever_2010.sln", get your old "Whatever.sln" back from your source repository, and rename it to "Whatever_2008.sln".
http://stevedunns.blogspot.com/2010/02/tool-to-switch-project-files-between.html

Is there a way to force Visual Studio 2005 to use the Framework v3.5 C# compiler?

I want to compile some code that targets .NET v3.5 in Visual Studio 2005.
I suppose I could download the 2008 Express Editions... do I need both Visual Web Developer AND C#?
No there is not. That (framework targeting) is a feature that was introduced in VS2008.
To answer your second question that depends. If this is solely a Website/Web Application then you would not need the C# Express. If this is an application/service/etc, then you would need the C# Express.
You can create a custom MSBuild script to do your builds, making sure that you use latest MSBuild tool. (You still could not build from within Visual Studio though) You are going to have all kinds of problems using VS2005 to build .NET 3.5 apps so I'd recommend against it.
Im not sure if this applies to VS2005 due to Stephen Wrightons answer but i remember that when you create a new project, to the top right of the dialog box that appears there is a drop down box to select the version of the framework you want to use.

Categories

Resources