visual-studio-2010

Work with VS 2010 on a project for VS 2005

I have a project on SourceSafe that the team work with VS 2005. I have installed VS2010 and like some features of this version. Is there a way that I keep the project to day with SourceSafe, but however work locally with VS2010. Say, I could not add new files to solution, but at least obtain, modify and archive the existing ones. ...

Visual Studio 2010 crashes opening WPF user control

I am having a problem with Visual Studio 2010 crashing when opening a WPF user control on one computer. Whenever I open any WPF user control or try to create a new WPF user control in our product solution (any project in the solution), Visual Studio crashes. I have uninstalled or disabled all Visual Studio add-ins (such as ReSharper and...

How do I generate a constructor from class fields using Visual Studio (and/or ReSharper)?

I've gotten accustomed to many of the Java IDEs (Eclipse, Netbeans, IntelliJ) providing you with a command to generate a default constructor for a class based on the fields in the class. For example: public class Example { public decimal MyNumber { get; set; } public string Description { get; set; } public int SomeInteger ...

Vs2010 using log4net with Intellisense

I'm using vs2010 and I need to log a multithreading application. So I decided to use log4net, but as I'm not used to work with this, Intellisense is gonna be worth. I download the .xsd from http://csharptest.net/downloads/schema/log4net.xsd and put this in VSFolder/Xml/Schemas. But, how can I say to my log4net.config to use the XSD Sche...

Visual Studio 2010 with Managed Extensiblity Framework

I've been looking into into MEF (Managed Extensibility Framework), but I am not entirely sure if it is something that I need and can help me accommplish what I need to do. Can someone provide an easy to understand description of MEF, provides good resources and tutorials (aside from MSDN), and/or know if it can do the task I am trying t...

Automate VS 2010 "Publish" Config File Substitutions

I'm using the config file replacement feature of Visual Studio 2010's "Publish" functionality, as described in this article. I want to automate this using MSBuild/Hudson. Does anybody know how to do this? I like how it works but if I cannot automate it I'll have to switch to XmlMassUpdate or similar. ...

How to disable ClearType in Visual Studio 2010?

How to do that? I can't find solution. VS 2010 version: 10.0.30319.1 ...

Do you have ideas for a workaround for this Known bug in Visual Studio 2010's addIn model ?

When developing AddIns for Visual Studio 2010 the following line fails: CommandBarEvents handler = (EnvDTE.CommandBarEvents)m_VSStudio.DTE.Events.get_CommandBarEvents(popup); Update: Forgot to tell that m_VSStudio is of the type DTE2 Where popup is of the type CommandBarPopup (for the type CommandBarControl it works though) The line...

in VS2010 Class Designer is it possible to specify namespace / folder for classes to go

Hi, in VS2010 Class Designer is it possible to specify namespace / folder for classes to go? I created a design in a subdirectory however the classes seem to go into the root, and I can't see how to specific a folder or namespace? Is the designer meant to be a one way or roundtrip tool? ...

Custom setup project for "Setup and Deployment Visual Studio"- How to get the contents of the folder where the .msi file resides?

Does anyone know how to find the path of the installer while it is installing? My goal is to get either none, 1, or 2 folders that are also in the same folder with the setup, and copy them to a destination the user chooses before installing. Those folders may or may not be there. Through lots of pain I have found out how to use the cu...

Which is better for VS2010, VisualHG or hgscc (64 bit install)?

Simple question, have you used them, which do you prefer? Do either of them display the current branch in an easy to see place? Edit: If you have a preference, please let me know why. It is crucial in making an educated decision. ...

Which Visual Studio 2010 edition for sole developer

I am the sole .net developer for a small company. My projects span many .net technologies including WinForms, WPF, SQL, XNA, Linq, WCF, WTF?, and others. I struggle staying on top of all these projects so I'm looking to make my life easier with the release of VS2010. Without a mentor I rely heavily on StackOverflow and whatever else Go...

Problems with MembershipUser / System.Web.ApplicationServices when upgrading to .net 4

I have a large vb.net web project that I am trying to updgrade to .net4/VS2010. During compile I get the following error: 'System.Web.Security.MembershipUser' in assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has been forwarded to assembly 'System.Web.ApplicationServices'. Either a reference ...

VisualStudio2010: AccessViolationException

Hey, I get an AccessViolationException when I try to start debuggin a C#-MVC2-webproject in VisualStudio 2010. But there is no Stacktrace or indication where the error occurs. When I switch from degub-mode to release-mode I get the error "unknown software error" (0xe0434352) [...] at (0x765e5b727). The window has the title from the ASP....

where is "create instance" menu in visual studio 2010?

Hi, in visual studio 2008 there is a sub-menu called "create instance" which is resides in class designer. Today I've opened VS.net 2010 and then opened class designer and create my class over there and when I wanted to test my class with the help of "create instance" option there was no such option available in vs.net 2010. and I've g...

VS 2010 SDK - Get function and class name when carret change, with c#.

Hi experts. How can i get the name of the function and its class when the caret change position i a code file, using VS SDK 2010? I am using Editor Text Adornment template as an start and c#. Thanks. ...

How to run SpecFlow tests in Visual Studio 2010?

Trying to get SpecFlow running with a fresh VS2010 Professional install. Created a new console application and added references to NUnit and SpecFlow. Created a SpecFlow feature. The .feature with the default template code is created. Now I try to run this test, but I don't understand how. When I right-click the project (at the top-lev...

Excluding standard directories from code coverage results with C++/CLI

I have a Visual Studio 2010 .NET 4 solution with C# projects and a C++/CLI project. I use Visual Studio's built in unit tests and code coverage. Other than the fact that Visual Studio 2010 coverage tool for C++/CLI projects seems to be much weaker than Visual Studio 2008 coverage tool, I get weird results. For example, I get uncovered...

Visual Studio 2010 Compiling C code

I have the following code snippet. This is a c file in visual studio 2010. If i try to compile this with the line: int hello = 10; commented out it will compile just fine. If I comment that line in it will not compile. Am I missing something or should I not be using Visual Studio 2010 to compile C code. If this is a Visual Studio pr...

GUI to include a .prop file in a VS 2010 project?

Visual Studio 2010 has no longer uses .vsprops files and instead uses .props files. To include a .vsprops file in a Visual Studio 2008 project, one could right-click the project icon in the Solution Explorer panel, choose Properties, go to the Configuration Properties | General section, and modify the Inherited Project Property Sheets p...