visual-studio-2008

Visual Studio 2008 Crash on Viewing Build MSTest Results when Solution is Open

Has anyone come across this issue before? ...

Why does SharePoint Workflow Project in VS 2008 get modified every time it's opened?

The same goes for the workflow source files -- every time I open the project or go to the source file, it's indicating (by the asterisk) that the file has been modified. Which means two things: when closing VS, I always get the "Project has been changed, do you want to save changes?" prompt. It's annoying but I can live with that. Mor...

VB.Net Application Settings / ClickOnce

VS 2008 / VB.Net / WinForms I have an application setting (Settings.settings) for a project and I am using Click Once deployment. I used the VS Editor to create the setting and I can see the setting in the app.config file <applicationSettings> <MyApp.Win.My.MySettings> <setting name="MySetting" serializeAs="String"> <value>Fa...

How to configure SQLite db in Visual Studio?

I've messed with Access a little bit in the past, had one class on OO theory, and one class on console c++ apps. Now, as a hobby project, I'm undertaking to write an actual app, which will be a database app using System.Data.SQLite and C#. I have the db's table structure planned. I have System.Data.SQLite installed and connected to ...

How can I invoke the post-build script without a build!

Hi there, does anyone know how I can have the post build action execute without doing a build? There are loads of xcopy commands and it would be nice to use them on their own... but you cannot put them into a separate cmd file because of all the VS macros. thanks Kris ...

UpdateModelFromDatabaseException when trying to add a table to Entity Framework model

I'm running into a weird issue with Entity Framework in .NET 3.5 SP1 within Visual Studio 2008. I created a database with a few tables in SQL Server and then created the associated .edmx Entity Framework model and had no issues. I then created a new table in the database that has a foreign key to an existing table and needed to be adde...

matching repeated group using regex

I am trying to capture urls in an html page that is being repeated and it usually works when the urls are on different lines but in this case they appear all in one line and separate lines. The url has the tags: Here is what I have been trying Dim regex As Regex = New Regex( _ ".*<a.*href='http://(?&lt;Link&...

How to recover after a merge failure in TFS 2008?

We recently attempted a large, "cherry picked" merge. First we did a full merge from one child development branch into the parent Main branch, then did a full merge of the Main branch into another child development branch, then we attempted to do a cherry pick merge from the second Development branch back into merge. There were many chec...

How to kill msvsmon.exe when finished remote debugging?

Hi, We are a .NET LOB shop using MS CRM as our CRM platform. To this end, we many times a day during development phases are using remote debugging due to 2 connection limit to the server. We are able to setup remote debugging without logging onto the machine by using PsExec. This works great - but how the heck do we kill the remote deb...

crosshair tool, is there one? Visual studio 2008

Hi, I am doing some image sampling. What my question is, is there a 'crosshair' tool in visual studio? I want to have several instances on a single form, be able to move them around and then sample those points, obviously returning the color of the pixel at the center of the crosshair, is there already a tool that will do this, before...

Understanding RTF and edit it with vb.net

I have this RichTextbox in my vb.net form and I would like to when a user click a button, for example to embold the selected text, how would I do this. Also, I do NOT want to use the standard vb.net expressions such as RichTextBox1.SelectedText.Font.Bold = true. I want to do something like RichTextbox1.SelectedRTF="[bold]" & RichTextBox...

Why can I not install ASPNET MVC2 from the Web Platform Installer? (Error: "requires VS2008 SP1", but SP1 is installed!)

I went to http://www.asp.net/mvc/ to try to install ASP.NET MVC. I didn't know, but MVC is now at version 2. There's a nifty thing called the Microsoft "Web Platform Installer" (WPI) which basically is a small installer-driver tool that presents a menu of things I might want to install, to do web things on Windows. On the menu are th...

Custom Windows Forms Control not exporting functions, not showing in tools list, showing as Text

Hi, I have written a very simple control. C# Visual Studio 2008. Its output should be, and is a dll. I have added a reference to the dll within the project that I intend to use it with. The msdn article about how to write a control states that it should appear in the 'Add reference / projects' list, which it doesn't but I simply nav...

Compiling a C++ Win32 project as a .exe file under Visual Studio 2008

Hi, I have a C++ application that works and compile perfectly. I can execute and debug it via Visual Studio. I would like to know how to compile to an .exe file. Actually under the debug dir there are only .obj file. How to tell VS to compile it to a single .exe file ? Thanks. ...

How to make Visual C++ 9 not emit code that is actually never called?

My native C++ COM component uses ATL. In DllRegisterServer() I call CComModule::RegisterServer(): STDAPI DllRegisterServer() { return _Module.RegisterServer(FALSE); // <<< notice FALSE here } FALSE is passed to indicate to not register the type library. ATL is available as sources, so I in fact compile the implementation of CComM...

How can I use the SSRS ReportViewer from VS 2008 in a VS2010 project?

Hi, I'm working on an ASP.NET MVC 2 / .NET 3.5 project which includes SSRS 2008 reports. After migrating to VS 2010 RC, the new web forms report viewer has been giving so much trouble that I'd like to use the old report viewer from VS 2008 again. Now I'm just wondering what would be the easiest way to do that. The report viewer is emb...

How to turn off pdb generation and vshost for all Release builds

Every time I start a new piece of software I have to go into the configuration and turn off pdb file generation and the Visual Studio hosting process for Release builds. Is there any way to tell Visual Studio (2008 specifically) that I want to do that for all projects for the rest of time? ...

Many ascx-to-one ascx.cs bug in VS2008

I'm developing second language support for the site. So I made duplicate .ascx and .aspx files for existing ascx.cs and aspx.cs Most of the time everything works fine.. but suddenly I'm getting: Type 'ctrl_car' exists both in 'c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\rzhdengine\d072cc72\b9d5698b\App_Web_...

ClickOnce disallow publishing of Debug builds

Is there anyway to disallow publishing Debug builds when publishing ClickOnce aplications using Visual Studio 2008? I know this was asked before, but i can't figure out how from the answer. THe Accepted answer for previous question was: One thing you can do is add a condition to the .csproj or .vbproj file that MSBuild will chec...

Stop Visual Studio from searching text in some file types in project/solution

I have a number of large data files that I included in projects attributed with copy-on-newer. When I search for a string in the project or solution, I would like it to not search these large files, since it slows the process way down. Is there are way to have these files in the project, but exempted from the text search? ...