visual-studio

Is there a way to configure the details of MSVS static code analysis?

Static code analysis tool in MSVS (for C++) has plenty of false positives, and some of them are in Windows SDK files. Is there a way to configure it in order to improve quality and ignore stable SDK files? ...

Visual Studios - Share folders between different projects

I've got two projects, one CF2.0 project and one NET2.0 project. These projects are related to a CF2.0 application project and a NET2.0 WebService project respectively. The projects are my Data Access Layers and they are both identical, apart from the ProtoBuf Dll version. Is there any way that my NET2.0 DAL project can just reference ...

How to set "Specific Version" property for project references in Visual Studio

I have got a Visual Studio Solution containing several projects and have set up the references between the projects as project references. When a reference to an assembly is added, the references' properties contain a setting for Specific Version = True|False This property is missing for project references. How can it be set? I'd lik...

Visual Studio 2010 Team Explorer

I just installed VS2010 and I want to connect to TFS, But I don't have any team explorer options. I searched for Team Explorer and I found this link that states that Team Explorer comes preinstalled in VS2010 Team Suit. I downloaded VS2010 Pro and don't have team explorer and can't find it anywhere. Any ideas? Tips? Thanks ...

Suppress tlbimp warnings in visual studio

In a visual studio C# project, it is possible to add references to COM libraries. Visual Studio will then use tlbimp.exe to generate the interop assembly when building the project. The reference looks like this in the .csproj file: <ItemGroup> <COMReference Include="TDAPIOLELib"> <Guid>{F645BD06-E1B4-4E6A-82FB-E97D027FD456}<...

VS2008 and VS2010 on the same machine

Possible Duplicate: Will installing Visual Studio 2010 Beta side by side with VS2008 cause problems? Can both co-exist on the same machine? Thanks ...

how to specify both /clr and /mtd options for visualstudio c++ project

Hi in my project i have enabled /clr (Common Language Runtime) support as well as /MTd (Multithreded Debug) option in code generation section. But the compiler shows /clr and /MTd are incompatable types. I need to use both. How to fix this? Thanks in advance. ...

Is there a way to find a table in a DBML file in Visual Studio 2008?

This ones been bugging me for ages. Back in the olden days when we hunted our own food and used DataSets, you could snap to a particular table in a DataSet by selecting what you want from a drop down list at the top. If I have a big ol' Linq2Sql DBML file with lots of tables in it, it becomes a nightmare to navigate around. Is there a ...

Windows CE Icon lost when using CAB installer

I have a C# Windows CE 5.0 application. I am using VS2005. My executable shows the correct icon (32x32 8 bit). If I move the .exe file to the CE device using ActiveSync then the icon is still correctly displayed. When I use a CAB file to install the application the icon is lost. Currently the icon is an embedded resource. Any suggestions...

Crazy SSIS Component Arrangements

Is there a way to tell Visual Studio 2005 to not rearrange your SSIS package components when you close and re-open the .dtsx? VS2005 always moves my components around in the Control Flow tab and adjusts the flow pointers to seemingly random positions and it gets quite irritating. Anyone know the setting (if any) to stop this? Thanks in ...

Using nHibernate, how do you lay out your files in a VS.NET solution?

Using nHibernate, (and the repository pattern), how do you go about laying out your files/folder? I am going to to DDD, and use the repository pattern so I will have lots of classes that map to my database tables, and lots of repositories that inherit from an interface etc. Something like: /root/ /root/web.config /root/class/user.cs ....

How to automatically rename the "Application Files" folder in a ClickOnce deployment

We're currently using Visual Studio to build our ClickOnce deployment packages, but we'd like to rename "Application Files" because the webserver we're using does not support spaces. We've found that if we go into the .application file directly we can modify the path that is being pointed to, and we can also rename the folder manually. ...

NUnit 2.5 returns inconclusive state in Visual Studio

So' I'm getting in Unit Testing. I created a really simple Function to test it. public int MultiplyByFive(int x) { return x * 5; } The Test Method contains [TestMethod()] [DeploymentItem("UnitTestApp.exe")] public void MultiplyByFiveTest() { Program_Accessor target = new Program_Accessor()...

Is there a visual representation of CallStack in VS .Net (instead of the in-built stacked representation)?

Is there a plugin available for Visual Studio .Net that gives a visual representation of the CallStack while debugging (instead of the stacked representation of method calls that is in-built in it)? (I am imagining something similar to an execution path we have in SQL server) This, imho, would help in visualizing the logic flow of the pr...

Linked Files within a Folder Structure

In Visual Studio when I linked a file from one project to the next, I get the following error when an attempt is made to load the linked resource. This only happens when the linked file is within a folder(s). Error: Message="'pack://application:,,,/projectName ;component/ResourceDictionary .xaml' value cannot be assigned to property '...

CodeSite alternative for 64-bit C# development

I have used Raize CodeSite for years - first in Delphi and now in Visual Studio. I recently upgraded my development machine to a 64-bit OS. I was pleasantly surprised that everything just came up and worked - until I tried to use CodeSite in a C# app that targets 'Any CPU'. Turns out there is a known issue with 64-bit apps. As much as I...

Can you use DataTable.Contains(object key) if your datatable's primary key is two columns?

if so how? ...

Bulk Refactoring C#

I want to be able to refactor 500 projects at the same time. I have about 20 solutions and I don't have a master solution with everything because I haven't figured out a way to auto generate it. Any suggestions? Thanks Edit I've tried slnTools from codeplex to generate a solution and visual studio pretty much took down the entire ...

How To Debug VB.Net Crystal Reports Application That Causes VS2008 to Hang

Hi, I have encountered an error while debugging a VB.Net application in Visual Studio 2008. While debugging the console application in Visual Studio, when the application instantiates a Crystal Reports 'ReportDocument' object, VS2008 hangs. Even when the devenv.exe process has been killed, I am unable to kill the still running vshost...

Is it safe to remove the SQL Server 2005 Express installed by Visual Studio 2008 when SQL Server 2008 is installed?

Or will everything explode and kill a couple of kittens? ...