visual-studio-2008

Visual Studio debugging bug??

I am trying to debug a unit test. When I step into the code of the class I want to test VS2008 show the disassembly rather than the source. I have checked in the modules window and the status for the module in question reads "symbols loaded" so everything looks OK The project is c#, I am using Visual Studio 2008 SP1, anyone got any idea...

LINQ to SQL Classes not CLS-Compliant?

I'm using LINQ to SQL as my data access layer for a new project. I have added my database tables to the designer and all is well. Whenever I use one of these classes in a function, Visual Studio warns me that 'Type xxxx is not CLS-compliant' or that 'Return type of function xxxx is not CLS-compliant' Is this a problem with the classes...

Visual Studio 2008 css warnings

I have a Visual Studio 2008 .NET 3.5 Web forms project that constantly shows warnings for my class tags in the html. I have the CSS file included in the master page with the following link: <link href="/Css/Site.css" rel="stylesheet" type="text/css" /> The warnings I get are: The class or CssClass value is not defined. At run time...

VB.NET 3.5; compiler complaining about nullable types (as in Double?) with "error BC30037: Character is not valid."

So, Visual studio just started throwing "error BC30037: Character is not valid." at me (while validating a web site) whenever I use the nullable operator anywhere within one of my VB.NET 3.5 projects. This happened to a colleague some months ago but he doesn't remember how he fixed (I seem to remember it fixing itself eventually). If ...

Designer file no longer automatically updating when adding new controls

The closest answer I could find to my question here was this (which has an edit that says it no longer works, and I have confirmed it does not): http://stackoverflow.com/questions/187881/visual-studio-2005-designer-not-adding-controls-to-the-aspx-designer-cs Let me start by saying this only happens in one particular web app for me, it's...

Eclipse-like features in Visual Studio

Eclipse-like features in Visual Studio I really like the feature where you can double click (select) a variable and it is highlighted through out the page (Can see all the instances of it). How can I get this feature in visual studio (2005 or 2008 or other)? Is there an option or plug-in to turn this on? I am sure there are features in...

Is it possible to adjust the opacity of the Visual Studio 2008 intellisense popups?

In VS2008, you can hit CTRL to make an intellisense popup partially transparent so you can read the code under it. Is it possible to adjust the degree of transparency somewhere? Like a registry key, for instance? I find the default translucency a bit too opaque and still struggle to read the code underneath. ...

How can I perform 'find and replace' on references?

Our solution has several (10+) C# projects. Each has a reference to the CAB extension library, with the reference pointing to the DLLs in the library's release folders. Each project has between four and seven such references. We'd like to make some changes to the library; but to debug the changes, we'll need to build a debug version o...

Why does Intellisense not work when using render blocks on an HTML attibute with double quotes?

When I try to write code like the following source code, Visual Studio doesn't show any Intellisense for current context. Moreover, it tells me that another "<% %>" brackets is incorrect. <div> <input type="checkbox" title="<%= LogOnView.RememberMe_ToolTip %>" /> </div> How to solve this problem by patch or VSPackage(if you have ...

FxCop taking issue with my use of format strings in resources with NON-Team System Visual Studio

I ran FxCop on one of the projects that I am working on and I got a whole slew of warnings that look like the following: CA1703 : Microsoft.Naming : In resource 'MyProject.Properties.Resources.resx', referenced by name 'MyString', correct the spelling of 'Myyyy' in string value 'Some format string: {0:dMMMyyyy}' As Reso...

Unable to debug: ntdll.dll Access violation error for hello world C++

When trying to Debug in Visual C++ 2008 Exress on Windows XP SP3 it's showing Unhandled exception at 0x7c91b21a (ntdll.dll) in Hello.exe: 0xC0000005: Access violation writing location 0x00000010. --------------------------8><-------------------------- // Hello.cpp #include <iostream> int main() { std::cout << "Hi All" << std::en...

VS2008: Where is the Startup Project setting stored for a solution?

When I right-click my solution in the Solution Explorer and choose Properties I get a dialog where I can select the Startup Project. I sometimes select Current selection (If it is an experimental solution with lots of projects I jump between), but most often it is a Single startup project selected, which would usually be the main WinFor...

Compiling one C# Project into another

I have a C# Application that uses some other Assemblies, so when I compile, I end up with my .exe and 2 or 3 other .dll Files. Ideally, I only want 1 .exe file. At the moment I use ILMerge for that, but as the Assemblies that I use are Open Source (and under the same license), I wonder if there is an easy way to add them to my Solution a...

Timestamps during MS Build

I have a single solution with multiple database projects and an SSIS projects. The entire build and deploy portion takes a few minutes especially because we deploy unit test data along with the build. Does Visual Studio 2008 allow me to display timestamps the output window of the build so I can keep track of things? I know I can execut...

Can I easily exclude files from my web deployment project, that are excluded from my web application project?

Today I've started adding Web Deployment projects for our web application, and noticed that the deployment project picks up everything that could be a content file from the web application, including the csproj files etc. I've seen online how you can manually exclude files using the MSBuild task ExcludeFromBuild, and that is currently t...

What I have to do in order to use Entity Framework 4 in VS08?

I have VS08 SP1 Professional Edition (9.0.30729.1) running with .NET 3.5 SP1 Framework. I am using this tutorial to build an EF/POCO environment, but I can't find ObjectSet<T>, only ObjectQuery<T>, so I suppose the EF I am using isn't the fourth version. What do I need to do to have EF 4 running with my VS08? ...

Display of JavaScript files totally bolixed in Visual Studio 2008

I've recently had Visual Studio Team System 2008 installed on my work system, and I can't use it to view (much less edit or debug) javascript files. If it opens the file at all--about 30% of the time--it's frequently cut off at the bottom. Additionally, the display format is awful, not at all what it's supposed to be set up to be. Tiny ...

Error with VS2008 trying to debug WCF service

Pulled down an old revision of a project from subversion, made some changes, and rebuilt it. Now VS2008 errors out when i try to debug it with this error: It doesnt even hit my service ctor, and it indicates a invalid configuration file, but its the same when comparing against my current revision. Anyone seen an error like this? Al...

How do I specify the name of the assembly created when publishing an ASP.NET Web Site Project?

The title pretty much says it all. Given a web site project in VS2008 named FooDLL, I would like to be able to specify the name of the assembly that VS2008 spits out when I click "Publish Web Site". I am using the "use fixed naming and single page assemblies" option, so the resulting DLL is consistently named. However, I would much rat...

How can I persist an environment variable to the visual studio build helper?

I've got an NMake project in Visual Studio 2008 that has the Build command set to a custom tool that performs a long build task. Build = "@call MyTool -config $(ConfigurationName)" I want a way to to pass a special flag ("-quickbuild") to my tool to tell it to do a quick subset of the overall build. Build = "@call MyTool -config $(Con...