visual-studio-2010

Can C++ projects use T4 in Visual Studio 2010?

T4 did not work for C++ projects in Visual Studio 2008 since it did not use msbuild for C++ projects. (Yes there were workarounds) In Visual Studio 2010, C++ projects uses MsBuild, so do anyone know if C++ projects can use T4 in the same way as C# or VB? ...

Visual Studio slow in Virtualbox

Like really really slow. I've got a 64 bit, 8 cores, 12 gig ram windows 7 host. I gave 4 cores and 4 gigs of ram to a 64 bit windows 7 virtual machine within which I am trying to run visual studio 2010 (and sql server - but that's it). It worked for a few days but then the resource usage went off the charts - near 100% CPU at all time...

Visual Studio 2010: How do I create and/or update a specific file within a Project from an Editor Extension?

I am working on extending the spell checker that has recently been updated on the code gallery: http://code.msdn.microsoft.com/spellCheckerSample I would like to update it so that the "ignore" list of words comes from CustomDictionary.xml, the same file that the static code analysis tools use. From within my VS 2010 editor extension, I...

NUnit vs Visual Studio 2010's MSTest?

I realise that there are many older questions addressing the general question of NUnit v MSTest for versions of Visual Studio up to 2008 (such as this one). Microsoft have a history of getting things right in their 3rd version. For MSTest, that is VS2010. Have they done so with MSTest? Would you use it in a new project in preference to...

Why do 'requires' statements fail when loading (iron)ruby script via a C# program?

IronRuby and VS2010 noob question: I'm trying to do a spike to test the feasibility of interop between a C# project and an existing RubyGem rather than re-invent that particular wheel in .net. I've downloaded and installed IronRuby and the RubyGems package, as well as the gem I'd ultimately like to use. Running .rb files or working i...

Visual Studio 2010 B2 add reference issue in SL project

Hi everybody! I'm new to Silverlight development (making my first steps). I thought i try VS2010: first i installed VS2010B1, completely uninstalled this version for VS2010RC and as soon as i realized that there is no RIA service support, i again completely uninstalled this version to install VS2010B2 (i had some issues regarding the ...

MSBuild imported script directory

In Visual Studio 2010 we have MSBuild for C++ project. Also we can add additional custom properties files "*.props" to projects, which are just MSBuild scripts. Is it possible in imported "some.props" file know its directory? for example there is "project.vcxproj" file and "common.props" file. I would like to write something: <Includ...

Weird behavior in VS2010 Beta 2 while adding a reference

Hi everybody! I 'm experiencing a weird behavior in VS 2010 Beta 2: a) i 'm not able to add reference in a Silverlight 4 project (the .NET tab is empty) and i think it 's the same issue like this here and b) (i thought what the heck i try to find the assemblies myself, so:) i'm navigating to C:\Program Files\Microsoft SDKs\Silverlig...

IntelliTrace - Says it needs a Symbol Server

I am trying to get my Automated builds working with IntelliTrace. When I load a IntelliTrace file that was based off a build, it get the following error: The build associated with this IntelliTrace log file was not configured to publish symbols to a symbol server. You may have to enter the symbol path for this debugging session manu...

Force visual studio to always 'rebuild all' when debugging

Edit: Basically what I need is for visual studio to always rebuild all when I hit debug. I'm currently using visual studio to compile my assembly programs, using MASM and in general it's working fine. However I've run into an annoying issue: If I include a file (say, a file with functions) like this Include functions.inc and comp...

Generating UML Class diagrams in VS 2010

I read that VS 2010 supports modelling projects in UML. Is it possible to generate UML diagrams from already existing code. If so how? ...

The type or namespace name 'DevExpress' could not be found -- error

Hi all I am trying to use DevExpress with vs2010 , and got that error . It comes from line private DevExpress.XtraTreeList.TreeList treeList1; But I have already a Reference to that DevExpress.XtraTreeList.v9.3 and have there copy local flag set to true. How i can solve that issue ? ...

Visual C++ Tail Call Optimization

According to answers to that question: Which, if any, C++ compilers do tail-recursion optimization? it seems, that compiler should do tail-recursion optimization. But I've tried proposed options and it seems that compiler can't do this optimization in case of template functions. Could it be fixed somehow? ...

Use XSD Build task in c# project

How can I use the c++ XSD Task in a c# project? I have already created the task in the csproj file like this: <Target Name="BeforeBuild"> <XSD Namespace="$(RootNamespace).Xml" Language="CS" GenerateFromSchema="classes" Sources="Xml/schema.xsd" /> </Target> but the build output says, although intellisense offers me the XSD task...

What happened to the "Run" and "Run On" commands in Visual Studio 2010 Database Projects?

Hello, I have migrated a database project from VS2008 to VS2010. While in VS08, I used to be able to right-click on a .sql or .cmd file and select a "Run" or "Run On" command from the context menu. In VS2010, though, these menu items seem to have gone away. I have a number of .sql and .cmd scripts that I am used to being able to run ...

PInvokeStackImbalance C# call to unmanaged C++ function

After switching to VS2010, the managed debug assistant is displaying an error about an unbalanced stack from a call to an unmanaged C++ function from a C# application. The usuals suspects don't seem to be causing the issue. Is there something else I should check? The VS2008 built C++ dll and C# application never had a problem, no weird ...

Sequential workflow console application template missing in VS2010 Ultimate Beta2

Hi, I am using VS2010 ultimate Beta2 and under Visual C# -> Workflow -> I don't see the Sequential workflow console application or state machine console application Could someone please advise why these are missing in VS2010. I am able to see them on VS2008 ->Workflow. Thank you ...

Team City and Visual Studio 2010 and Coverage Tool

Hi everyone ! In my team we shall use Visual Studio 2010 and .NET 4.0 as soon as possible and I have a question regarding VS 2010 and Team City. In VS2010 there is a simple tool to measure mstest coverage. Question: Is it possible to read the result of ms-Coverage from team city? If yes, how do we set up that configuration. best Regar...

WPF Templates error - "Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception."

I've just started experimenting with WPF templates vs. styles and I'm not sure what I'm doing wrong. The goal below is to alternate the colors of the options in the menu. The code works fine with just the , but when I copy and paste/rename it for the second segment of "MenuChoiceOdd" I get the following error: > Provide value on 'Syst...

What happened to the Help->Index menu item in VS2010?

I've been using VS2010RC and I really miss the old help system. Is it coming back in the release version? Is this the way help will be in VisualStudio for the foreseeable future? I miss incremental search more than anything else. Although I also miss independent scrolling of the help table of contents and the help content. I also must ...