visual-studio

Regex to search for a word in a string in Visual Studio

I need to search all of my codebase for "Url" and replace it with "URL". If I search for Url in Visual Studio I also get all my variables with "Url" in it. Anyone have a Regex I can use to only find Url within a quoted string e.g. "Use this Url:"? Edit I was looking looking for a quick and dirty way to find designer text and hard cod...

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 ...

Tracking events of a control

Hi, Is there a way to know which .net events are being called on a control in real time? I'm not talking about "win32" event from spy++. I'm looking for events like BackColorChanged, CausesValidationChanged, ect. Thanks! ...

Code Generation from XML Files in Visual Studio

I have xml files called 1.template, 2.template, 3.template, etc. (The number refers to the application's ID number inside our company.) I have one XML template file per application and rarely have more that one application in a solution. I have a generic configuration reader called "ConfigurationReader". I have projects in both C# and ...

How to remove duplicate entries from visual studio web project?

I am working in a large team with multiple branches and merges happening on a regular basis. One thing that happens on regular basis is that web project files end up with duplicate entries for static content (.js, favicon.ico etc...). I have two methods to removing the duplicates: Delete the item in the Project Explorer (which remove...

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...

Any way to filter the files in a database project in Visual Studio 2008 Database Edition?

Is there any way, either natively or through an addon, that I can filter the files shown in my database project in Visual Studio 2008 Database Edition? We have an older database that was worked on by lots of contractors, and so things aren't organized very well, and we have hundreds upon hundreds of stored procs and tables. So, not being...

MSLinqToSQLGenerator generates different output than SQLMetal

I have a rather large DBML file and recently discovered that Visual Studio's MSLinqToSQLGenerator is generating different output than: SqlMetal.exe All.dbml /code:All.designer.vb /namespace:LINQ2FSE /pluralize /provider:SQL2005 It seems to have dropped an arbitrary (and I think relatively small) set of associations from the generated ...

Visual Studio disable TRACE in debug mode

For a C++ project that I'm developing in Visual Studio 2005, I would like to disable the TRACE output option while running the code in debug mode. I have searched the internet about how to achieve this, but no luck. Is this even easily achievable? If so, how? Thanks in advance. Update #1: #define USETRACE 0 #if !USETRACE && DEBUG ...

Threading problem with Visual Studio Debugger.

Hey fellas. I have an application that is designed to be run across a network. This means that the initial run of this application can take a while. So I've been putting together a splash screen to pretty the process up some. It uses threading to show the form via a static method. I'm still something of a threading novice, so when I go...

What technology is used for Visual Studio SDK window?

What library is used to create a window form like below? It certainly does not look/feel/acts like a typical windows forms app. ...

VS 2008 Windows Forms make "View Code" the default for UserControls

We have some UserControls that can not be designed. So the Windows Forms Designer in VS 2008 is pretty much useless and it takes some time until the designer throws the exception when accidentally doubleclicking the UserControl in the solution explorer. Is there a way I can make the designer open the C# code view when doubleclicking on a...

How to modify JavaScript Intellisense by using Visual Studio Integration Package?

I need to modify some logic of Javascript Intellisense on Visual Studio 2008 SP1 like some build-in function such as ScriptEngine, ScriptEngineBuildVersion and etc. Moreover, I need to dynamically generate function depend on opened docuement. ...

Showing possible property values in custom webcontrol

I have a custom control that print the current date into the page. The control has a Format property for setting witch DateTime property to be printed. (Date, Day, Year etc...) <TSC:DateTimeWriter runat="server" Format="Year" /> But what i want is when i type : Format=" I want to show a list of all the possible values(Using Vis...

Publish error VS2005 win forms app.

Hi, I am trying to publish to a FTP site using VS2005. This worked before and now having come back to it some months later dos not work. The error is Error 3 Could not find required file 'setup.bin' in 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Engine'. I also get this warning Warning 2 Item 'Microsoft.Net.F...

How can I generate a MSI package name according to its version?

In a Visual Studio setup project, is there a way to generate automaticaly the MSI fileName according to the current application version number? ...

How do you count the lines of code in a Visual Studio solution?

Hi, Is it possible to find the number of lines of code in an entire solution? I've heard of MZ-Tools but is there an open source equivalent? ...

Renaming files with Visual Studio and TortoiseSVN

I am using Visual Studio for editing source code and once a while I switch to Windows Explorer to commit changes with TortoiseSVN. This procedure works well for me and I am quite happy with it. However recently I started to rename classes and reorganize namespaces a lot. I like to rename and move files in Visual Studio because it automat...

C#: Is it possible to store a Decimal Array in an SQL database?

Hi there, I'm working on an application for a lab project and I'm making it in C#. It's supposed to import results from a text file that is exported from the application we use to run the tests and so far, I've hit a road block. I've gotten the program to save around 250 decimal values as a single-dimension array but then I'm trying to...

Add ASP.NET server script to mostly-static .JS / .CSS files without losing IntelliSense?

Using VS2008 and ASP.NET 3.5 (or VS 2010 / .NET 4.0?), how can I include a bit of dynamic ASP.NET server-side code in mostly-static JavaScript and CSS files? I want to do this to avoid cloning entire JS or CSS files to vary just a small part of them multi-tenant sites. Later, I want to extend the solution to handle localization inside...