visual-studio

Configure Visual Studio 2008 to compile Posix applications

Hello, I'm an experienced programmer in .Net languages but I have not almost any work experience in C++ or C development. I currently have to develop an application for a device running VxWorks (a realtime OS). We will first build a x86 version and then port to VxWorks. As VxWorks is Posix compliant we plan to create a Posix applicatio...

How to Debug a Class Library in Visual Studio

I am working on a class library (dll) project in Visual Studio 2008; programming in C#. In order to test my dll I just created a second project that is a console application and in that project I can reference the first and run tests. Is there a simpler way of doing this? Can I just create another file within my class library project tha...

Visual Studio with DoxyGen for documentation, or should we use something else?

We are currently using DoxyGen to document code written in C/C++, PHP and Java. To have a consistent environment it would be nice to use it for C# documentation as well. However we are wondering: Do you see any advantages in the generated documentation layout or structure using something other than DoxyGen? We are generating documenta...

How can I obtain a list of modified files within a 'changeset' range from team foundation server through a windows form application?

I'm trying to create a tool which will help my team perform code reviews on a more regular basis without it's usual massive overhead. At the moment the manual process involves using Team Foundation Sidekicks to identify the Changesets and then exporting that to excel to filter the results to find which items need to be reviewed (e.g. co...

merged DLLs, Intellisense not picking up separate XML doc files

I use ILMerge to merge several of my C# project DLLs into a single DLL for the whole solution. I have each project produce a .XML file of its documentation for Intellisense, and I'm having trouble getting those comments to show up when I try to use my merged DLL as a reference in another solution. I have these files all in the same dir...

visual studio 2008 asp.net project templates missing

My desktop management team have just installed visual studio 2008 and there is no pluggins for asp.net .. is this missed out while they installed visual studio? can this to be installed again?? ...

Conditional Debug on Visual C++ 2008 Express

Is there a way to debug code on Visual C++ 2008 Express, such as I can watch a variable for certain value(s) and, when it assumes this value, to break? For instance, I want to break when xbecomes 5. In gdb I would set a breakpoint then a condition that x == 5. How can I do it (if possible) on Visual C++ 2008 Express? ...

VS.NET: Project Refs vs. Assembly Refs

There's some debate here over which is better for referencing our common code base from other projects: by project or by assembly. I'm in favor of referencing the project, especially since we have automated unit tests that prove that the common code does what it needs to. The thought from the other camp is to lock down those projects...

How to model concurrency in unit tests?

I'm pretty new to unit testing and currently experimenting a bit with Visual Studio's testing tools. My question is how to define assertions about concurrent behaviour in these tests. E.g. given a class BoundedChan<T> implementing a bounded channel, how can I specify tests like "channel.Send will not block" or "If the channel's capac...

Is there a way to automatically add "Option Strict On" to all codebehind files created in Visual Studio 2005?

I've been manually adding the following line every time I create a new user control / web form in one of my ASP.NET web forms projects: Option Strict On I can't just set it in web.config because it's a legacy project that has user controls / web forms that would bomb out if we turned on option strict for the entire site, so the curren...

Insufferable word wrap in Visual Studio XAML editor - is there any relief for 2010?

Just curious if the XAML editor is any better at auto-formatting and wrapping attributes in Visual Studio 2010. Here's how the editor auto wraps attributes in VS 2008: <StackPanel Grid.Row="0" Grid.ColumnSpan="3"> <StackPanel Orientation="Horizontal"> <TextBlock VerticalAlignment="Center" FontWeight="Bold" Text="Current Use...

Is there a way to prevent Visual Studio 2008 from opening a file in design view by default?

I'm writing an NUnit TextFixture for portions of a Windows Forms application. Some of the classes in the file are derived from UI component classes, like so: [TestFixture] public class MainFormTest : PersistenceTestBase // Base class here is not a form { class TestMainForm : MainForm // MainForm inherits from Form { pub...

Print the contents of an array (code is one line, for use in Immediate window of visual studio)

Can you write a convenient line of code that prints the contents of an array? I will use this in the Immediate Window of Visual Studio 2008, so really it has to work in that window. I may have left out some requirements, but that's pretty much what I'm trying to do. ...

Datasources in asp.net

My colleague wants to connect a Gridview's datasource to a dynamic Stored procedures. The Stored procedure is not showing up in the list so I put the stored procedure in the select command. I need to pass it parts of sql statements and not just regular string parameters. How can i accomplish this? ...

WPF Converter casting causes Visual Studio designer exception

A converter such as what follows will cause the 2008 visual studio designer to not display the xaml, and error out with a "Specified cast is not valid." exception. public class ItemsVisibilityToGridColumnWidthConverter : IMultiValueConverter { public object Convert(object[] values, Type targetType, object parameter, CultureInfo cult...

Visual Studio 2010 keeps trying to update my projects

When you open a project in VS 2010 it asks you if you want to upgrade the project to target .Net 4.0 and has a checkbox to do this to all applications. The first time every project opens it gives me this prompt and I always click no. This time I accidentally clicked yes and it had the checkbox checked to do this to all project. I rese...

Compile to a stand-alone executable (.exe) in Visual Studio

how can I make a stand-alone exe in Visual Studio. Its just a simple Console application that I think users would not like to install a tiny Console application. I compiled a simple cpp file using the visual studio command prompt. Will the exe work even if the .NET framework is not installed? I used native C++ code. ...

How do I create a table in SQLite using the VS2008 Server Explorer

Hello, I would like to create a table in a SQLite database using the Server Explorer in VS2008. I am able to do other operations on the database but when it comes to creating a table using the query builder I get Not Supported messages. is there another way other than writing code just for the sole purpose of creating the table? CREATE...

Target "build" does not exist in the project for Visual Studio

I'm checking out code for a project where contributors use different dev tools for coding in c sharp (C#). My .csproj file was manipulated by someone using Sharp develop and now I get 'The target "build" does not exist in the project'. How can I correct this? I am using Visual Studio 2008 SP 1. ...

.NET pop-up box terminology along with Java

I need to know a couple things. What is the terminology for the pop-up box shown in this Image? (Not the text, but the actual box itself) This is with Visual Studios. I need to do a project in Java and I heard that Eclipse has this pop-up box, but I cant seem to find it. Does anyone know where this option is? I was hoping maybe fi...