visual-studio-2008

Which unittest framework is integrated into Visual Studio 2008

Visual Studio 2008 has built-in unittesting that was previously only available in the Team Suite editions. What unittesting framework is this based on? MbUint, MStest, xUnit or something completely different? ...

LNK2001 error when compiling apps referencing STLport-5.1.4 with VC++ 2008

I apologize in advance for the long post... I used to be able to build our VC++ solutions (we're on VS 2008) when we listed the STLPort include and library directories under VS Menu > Tools > Options > VC++ Directories > Directories for Include and Library files. However, we wanted to transition to a build process that totally relies o...

Fastest way to insert replacement characters in Visual Studio

I'm just starting to pick up ASP.Net MVC and find myself writing a lot of <%= %> in the views. Intellisense does supply the closing %>, but I find that typing the introductory <%= to be burdensome (they are tough for me to type :-)). I've dabbled around a bit with Rails and the NetBeans IDE where I was able to type: r<tab> - which wo...

Add references to project when control dropped from Visual Studio 2008 toolbox

When I drop a third-party control onto a visual design surface in Visual Studio, any library references required by the control are automatically added to my project. I have an inherited version of a third-party control that I've added to the toolbox. However, when I drag it onto a Form, only some of the references to the underlying thir...

Adding a Web Reference for SharePoint in Visual Studio 2008

Whenever I add a web reference for any Sharepoint web service in VS 2008, the preview window while adding the web reference shows the proper method names: Note CreateFolder: Before: And after, the CreateFolder method is not there I looked over the documentation at MSDN but it appears I am using it properly. Can anybody point out my...

Which is the better .NET ORM Tool: SubSonic or WebWidgetry?

I was pointed to SubSonic (www.subsonicproject.com), but then I found WebWidgetry (www.nthpenguin.com) Before I dig into them too much I'm curious to know who's used either and what the pro's and con's might be? Thanks for the help, Jim ...

Report Viewer - Request for the permission of type SqlClientPermission failed.

I am using the ReportViewer control from Visual Studio 2008 in Local Mode with objects as the data source. My classes are mapped to data tables in my database. In the objects, it loads related objects as needed. So it leaves the reference null until you try to use the property, then it tries to load it from the database automatically. Th...

Graphing large amounts of data

In a product I work on, there is an iteration loop which can have anywhere between a few hundred to a few million iterations. Each iteration computes a set of statistic variables (double precision), and the number of variables can be up to 1000 (typically 15-50). As part of the loop, we graph the change in the variables over the iterat...

launching VS2008 build from python

if I paste this into the command prompt by hand, it works, but if I run it from python, I get The filename, directgory name, or volume label syntax is incorrect. os.system('%comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86') os.system('devenv Immersica.sln /rebuild Debug /Out last-build.txt') ...

launching vs2008 build from python

The first batch file launches a command prompt, i need the second command to be in the ccontext of the first. how can I do this in python? As is, it launches the batch, and blocks until the batch (with its command prompt context) terminates, and then executes devenv without the necessary context. os.system(r'%comspec% /k ""C:\Program ...

VS 2008 keeps removing and re-adding <SubType>ASPXCodeBehind</SubType>

I've got a VS 2008 C# Web project and whenever I make some changes to the files in it (not even to the project file itself) VS will remove some lines like this from the csproj file: ASPXCodeBehind So something like this: <Compile Include="Default.aspx.cs"> <DependentUpon>Default.aspx</DependentUpon> <SubType>ASPXCodeBehind</SubTyp...

Running vc2008 debug builds on non-dev machines

I'm building my app in vc2008 and testing it on a network of machines. Is there any way, other than installing Visual Studio 2008, to run a debug build of a C++ program on another machine? (i.e. that doesn't have vc2008 installed) Installing the redist package only installs the release mode support DLL's for vc2008 programs. Currently ...

How can I get Javascript debugging to work with my ASP.NET MVC application?

I can't seem to get Javascript debugging working for my ASP.NET MVC application even though I can for a traditional ASP.NET WebForm app. I have followed the steps for unchecking the 'Disable Script Debugging' boxes for both IE and other. when I add a simple function to display an alert in both the site.master and any content view the b...

Effects on csproj file when upgrading to VS2008 SP1

We are in the process of upgrading our VS2008 to the new SP1, but noticed a change in the csproj files for something that we can't find information on. Seems that the ProductVersion in the csproj file is changed from: <ProductVersion>9.0.21022</ProductVersion> to <ProductVersion>9.0.30729</ProductVersion> It looks like some propert...

HTML Formatting in Visual Studio 2008

Is it possible to turn off all HTML formatting in Visual Studio 2008? It just totally messes everything up. For example, I'll add a grid with columns, styles, etc. with them all indented and on separate lines. I'll switch to design view or split view and all the work I just did is on one line! It is so frustrating. I've changed some thi...

WSE 2.0 SP2 on VS 2008

Is it possible to use WSE 2.0 SP2 under VS 2008? I realise that the add-in (that generates the proxy classes/configuration) is not compatible but there are work-arounds to this (copying over the files from a VS 2003 solution). Our web services are relatively static so would not be making too many changes anwyay. We may at a future date...

Missing Import statements. (VS2008 doesn't compile my project anymore)

This is probably a no brainer but... I've just opened a solution in VS2008 and for some reason the compiler doesn't recognised previously compiled errors. I hit build and I get 100s of errors : Name 'IIf' is not declared. Name 'IsNumeric' is not declared. Name HttpUtility is not declared etc.. Think this must be something to do w...

How to add and compile for custom 'Platform' switch for visual studio projects?

We are looking to provide two custom Platform switches (the platform dropdown in the configuration manager) for our projects in Visual Studio. For example one for 'Desktop' and one for 'Web'. The target build tasks then compile the code in a custom way based on the platform switch. We don't want to add to the Debug Release switch becau...

2008 MFC and threads?

I was reading this thread/post: http://stackoverflow.com/questions/262298/windows-c-ui-technology and am also wondering about a non .NET UI framework. Specifically - prior to .NET having support for serial ports (I can't believe they left that out of the first release of .NET) I was forced to use MFC for an application. I had not been...

Execute only one unit test while debugging in Visual Studio 2008

Is there a way to select which TestMethods you want to execute in Visual Studio 2008 Unit Test project while debugging? I want to debug one particular test without having my other TestMethods execute during each debug session. ...