visual-studio

Visual Studio Redraw Fail

I am using Visual Studio 2008 to develop SQL Server 2008 R2 SSIS packages. Whenever I switch between applications, the components in the package lose their outlines, break point visual markers - it just looks ugly. Here is where everything except the name and the background color is lost I have uninstalled an reinstalled Visual Stu...

What type is this: ISNULL(SUM(COALESCE (a.currency, 0)), 0)

I have the following piece of sql query: Sql += " SELECT ISNULL(SUM(COALESCE (a.currency, 0)), 0) AS monthCurrency FROM IW_Awards AS a "; The query works fine, I am trying to cast this value in C# after the query has been submitted and I cannot find what type it is. I tried int, int? and string. When I trie...

C++ Project Structure

I'm now involved with a C++ project, and I've never developed in C++ before. The question I have is the structure of projects that are multi-platform. One developer is working in VC++ and another in XCode. XCode doesn't have literal directories, they're logical (groups) directories. Should big C++ projects have actual folders, and if...

Can only run AutoCAD 2010 or 2011 when debugging from visual studio

I've noticed recently that AutoCAD gets slower and slower after as I debug it, close, then debug again. In addition AutoCAD just freezes when I try to open it without debugging (in or out of visual studio). Has anybody else ran into this problem before and what is the solution? ...

Resgen a folder of .resources files to .resx?

How can I convert a folder of .resources files to .resx? I don't want to have to manually convert each file. ...

Is it possible to "collapse" content file paths in build output in visual studio?

I'm using an open source library (log4net) that comes with LICENSE, NOTICE, and README files that are supposed to be included when you distribute it. So I want to make visual studio put them in the output directory along with my binaries. I have log4net and its three files in a "lib\log4net" dir. The problem is if I add the files as c...

Does not exist in current context build question?

The problem is that I have to hit build on my website application multiple times to get all the errors to go away, eventually it will build successfully. But, i get several messages "label, button, etc does not exist in context". If I click on the file, it corrects itself and disappears. If I click build again it corrects. I am looking...

The type '...' exists in both 'Util.dll" and 'Util (Silverlight).dll'

Hello! I'm attempting to follow David Betz' wonderful advice on how to use a library project in both your .NET and Silverlight code. In particular, I'm using his File-Level technique: I have a .NET library project already set up, so I created a Silverlight project, and added links in the latter to the former's files. Unfortunately, the...

Integrating Nemerle in Visual C# 2010 Express

I would like to use Nemerle to write parts of a .NET application. Is there a plugin for Visual C# 2010 Express? The only one I found returns an error because it is thought for a different version of Visual C#. ...

How to develop a VS2010 Silverlight Business Application without it caching the .xap file?

In Visual Studio 2010 I've created a Silverlight app by choosing the "Silverlight Business Application" template. I changed some code in Home.xaml.cs, closed Visual Studio, opened it again, and began making more changes. But now the changes that I make to the code don't take effect at all. It's as if the entire application is cached. I...

compatibility issue with sql server 2005 and visual studio 2005

warning -- This program has known compatiblity issues. It shows me a warning message when i installing SQL SERVER 2005 or Visual Studio 2005 on my machine which is Win7 Ultimate 32 Bit it said Windows has a compatibility issue with Sql server2005 kindly install sql server service pack 3 or later on that machine. And when i installing vi...

How do I change all the build directories in my VS solution?

I've got a solution with dozens of projects. I can individually go into the nice "Properties" tab and change the output directories there, but that would take ages. What's the fast way? Also, there are some old build configurations that are no longer required. How do I zap them? ...

Visual Studio Window Shortcut Wonkyness

I've been diligently memorizing VS 2010 shortcuts based on the cheatsheats on Scott Guthries blog. The shortcuts in the cheatsheet for WIndows dont match my setup e.g. Ctrl W,C is the cheatsheet shortcut to open the class viewer but mine is Ctrl + SHift, C. Maybe this is because my 08 settings got picked up at some point. I've changed...

Cmake add_library with boost source files introduces references to non-existant files

Hello all, we're building a cross-platform utility which must have a small footprint. We've been pulling header files from boost as and when we need them but now we must link against some boost C++ thread code. The easiest immediate solution was to create our own custom library using CMake's "add_library" command to create a static libra...

"An attempt to attach an auto-named database" error

I am making a desktop application in C#, VS 2010 on Windows XP SP2 Pro. If i run that application directly from published folder without running setup OR run it from debug folder OR simply debug the application, it does not give this error. But if i run setup from published folder and then run it from start menu, it gives this error. ...

Is there a way to embed on code snippet into another?

Let's assume that I have snippet A snippet B where snippet A contains snippet B n times with n > 1. Right now I have copied the content of snippet B into snippet A. This has the disadvantage, that whenever I change snippet B, I have to additionally change snippet A. Therefore, my question is whether there is some kind of statemen...

Use Wizards with Project Templates

I'm trying to create a wizard for my project template like the one demonstrated below: http://msdn.microsoft.com/en-us/library/ms185301.aspx This great example shows how to add custom parameters to a project. What I want to do is allow the user to select which files should be added to the new project from the template. example: On a pa...

Visual Studio 2010 Snippets - Current Date

I'm making a snippet for a file header in Visual Studio 2010. I want the date to match whenever the snippet was executed. Is this possible? ...

Visual Studio TFS build with code coverage

Essentially what I would like to do is write a visual studio build script that will only build the solution if my code coverage requirements have been met. So essentially, after compiling and running the automated testing of the solution, I want to pass the build (working with Team Foundation server) only if a certain % of the code is c...

Getting fields from a list on Sharepoint page

I'm very new to Sharepoint, I have an aspx page on a Sharepoint site that shows a list of fields, including First Name, Last Name, etc. I'm have a console app, in Visual Studio, I'm using for testing communication and data transfer capability between between one web service and another; namely Sharepoint and another web service. My go...