visual-studio-2008

Visual Studio 2008 Profiler - C++ Library Problem

I have two VS2008 C++ projects. One builds a static library (.lib). The other uses that library and builds an executable. I would like to profile the .exe, but am primarily interested in the profile of the code inside the library. When I run the profiler in the .exe project, I only get stats on functions in that project, and the library ...

How can I stop CSS validation errors appearing in the Errors List in VS2008

For some reason in Visual Studio when I build my application it wants to validate my CSS and show those up as build errors in the error list. It's really really annoying as it makes it hard to find what the real build errors are. Is there any way to stop CSS validation errors showing up in the Errors List? ...

Unit test with accessors

This is a two part question. Background: We moved our C# application from VS2005 to VS2008 and in the process moved the application from .net 2.0 to .net 3.5. The transition went smoothly except for Unit Tests. First: Is the unit test framework based off Visual Studios or .NET? Second: This question is derived from the issues we have ...

@ and “ keys are swapped in visual studio

My @ and “ keys are swapped in visual studio along. My OS is windows XP and my language settings is set to English(United States). Somehow visual studio still seems to consider English(United Kingdom) as my language instead of picking up the system settings. Any solutions/suggestions would be a great help. Thanks in advance, Bharath K. ...

Unresolved external in C-program on Win 32 in Visual Studio 2008

Why doesn't this C-program compile and what does the err messages mean: #include <stdio.h> int main() { char op = ' '; char cont = ' '; int tal1 = 0; int tal2 = 0; int result; int ok = 1; printf("Welcome\n"); do { printf("Which one (+ - * /)? "); scanf("%c", &op); fflush(stdin); printf("Nu...

TFS 2008: Checkin cannot proceed because the policy requirements have not been satisfied

We have a project with many developers. Some use Visual Studio 2008 Professional with TFS Client, others use Visual Studio 2008 Team System. We have checkin policies that there should be a comment and it should be connected to a work item. Some of the developers with Visual Studio 2008 Professional are getting the following error: ...

Multiple Pre-Build Events in Visual Studio?

I've followed a blog post by Scott Hanselman for managing configuration with PreBuild Events and have it working fine. I now want to split up my configuration into a couple of different files, so need to exectue the command again before the build. The problem is the PreBuild event text all gets executed as one console command. How can ...

Visual Studio Database Edition: What is causing "ModelException: At least one identifier expected."?

We have a database project in Visual Studio 2008 that has been working great. Out of the blue, however, deployment stopped working. This is the error we get: EZTrac.Database.dbschema : Deploy error TSD01234: Microsoft.Data.Schema.SchemaModel.ModelException: At least one identifier expected. We've searched everywhere tryin...

Unwanted Dependency on .NET Framework

I have moved my Microsoft Visual Studio 6.0/C++/MFC application to Visual Studio 2008 SP1 using the new MFC Feature Pack classes. I explicitly use nothing from the .NET Framework. However, we have trouble installing on a system which does not have .NET Framework 3.5 SP1 installed on it already. Installshield fails to load an applicati...

Debugging C++ template class in VS 2008

Hello, I'm learning C++ and using VS C++ 2008 Express. I have a simple project with 2 code files. One is for my Class and the other is "_tmain()". My class file is using: template <typename T> code. The program seems to run fine, but I can't step into my class file code in c++ view. I have to look at the assembly code. I can step in...

Visual Studio Default Open File Action

I am using Visual Studio 2008 with C#. Is there a way to set the default editor for a class file containing a DataTable derived class? Whenever I double click on one of these classes to open the file VS attempts to open a component designer. Since my class isn't compatible with that editor this is a rather useless default. I would li...

VS08: Jump to beginning of the 'block'

In working with code in VisualStudio 08 Pro i frequently find myself facing a closing brace (}) wondering exactly where the thing opened. If it's only one screen's worth I can seen the shaded character right away but usually have to scrollup and look close. Is there a keyboard shortcut that jumps to the beginning of the matching brace? ...

Multiple usercontrol projects in MSVS08

Hello everybody, I'm rather new to C# development so that's why I ask that question: I have several projects in my solution. Most of them are UserControls. Some of them depends on mine other UC projects (included in the solution). For the sake of simplicity let's say the dependecies of projects are like that: A->B->C A is a main app., ...

Resolving "Validation (): Element ‘xxxx’ is not supported" warning in Visual Studio 2005/2008

Over the last couple of days I started getting the following validation warning (green squiggly line at design time) in a Visual Studio 2008 ASP.NET WebForms project: Validation (): Element ‘xxxx’ is not supported. Where 'xxxx' was a standard ASP.NET server controls (asp:panel, asp:container, asp:textbox) The application would st...

Creating a custom property in Entity Framework

I have a database I'd like to create an entity from, and then generate RESTful output. My objective is to add a property to one of the tables once it becomes an entity. The data for that property would be one I'd come up with through calculations done on a few different fields in the table. From there, the code generator would create ...

What "Gotchas" are should I look out for migrating from VS Pro to VSTS?

I recently got a copy of Visual Studio Team System Suite 2008. I am currently running Visual Studio Professional 2008. I am sure others have done this migration in the past. What problems, if any, did you encounter? Should I first uninstall Pro? What about existing add-ons, Code Rush, GhostDoc etc? Do I need to uninstall these? W...

vs2008: create and consume xml files

what is the best way to create and consume xml files in vs2008? I am not sure if LINQ could be used? are there any good tutorials out there for vs2008 xml? ...

Can I use Crystal Report for Visual Studio 2008 for creating commercial product?

I search everywhere for finding information about license of Crystal Report. But I can't find anything. I have a few questions for Crystal Report 2008 for Visual Studio 2008 SP1. What's license of Crystal Report for Visual Studio 2008 SP1? What's different between Crystal Report runtime & Crystal Report server? What's limit of Crystal ...

How can I debug the uninstaller part (with CustomAction) of an installer project in Visual Studio 2008

I have inherited this c# solution that includes an ix installer project (a bunch of .wxs files and some c# files). The uninstaller is generating an error message. I haven't a clue what this installer project is. What are the .wxs files for? I can guess (and have successfully been able to fix some issues with the installer. I have figure...

Where do I set the license text in Visual Studio 2008 Setup project?

When I run the Output of my Visual Studio 2008 Setup project (*.wixproj), the install wizard displays a license. Where do I change the text displayed? I have searched all *.wxs files, but cannot find the license displayed. Also, a hint on where to find information on this stuff would be really cool... ...