visual-studio

Visual Studio massive renaming of controls in WPF project

I have a scene in my WPF project with about 2000 different user controls: <local:MyControlType x:name="aaka4sn9f" /> <local:MyControlType x:name="aaks22nf_1" /> <local:MyControlType x:name="aa66s2f_2" /> and so on down the screen... Is there a way to rename all of these controls using Visual Studio (and possibly a regex) to be: <loc...

Is there a way to extract info from vs project, eg cl.exe command line

Since I write a command line program to check cpp files, and it need lib path and include path of those cpp files. How can I get the include and lib path info from visual studio project? Our project uses property sheets to make up those information. ...

Is there a tool to navigate targets and properties 's definition?

I'm working on a bundle of MSBuild script files and many many times I have the need of locating the definition of a called target or a property being used. At the moment, I have to search to the target/property 's name text and view the file containing that text - only then I can read the definition of the target/property I'm looking for...

Visual Studio 2008 Build question x64 vs x86

Hi Everyone, I have written an application on my x64 machine in Visual Studio 2008. The application will be sent to someone, and I have two questions that I need answers to. What requirements will they need to have installed. I am assuming the .NET 3.5 redistributable. Are there anything else though? (The application does not call a...

MVC 2 with VS 2010 View Building Error: Feature 'anonymous types' cannot be used because it is not part of the ISO-2 C# language specification

I have a shared project where I store all of my custom EditTemplates and DisplayTemplates. This is a regular C# class library project with the views all tagged as embedded resources. The target framework of this project is ".Net Framework 4". Inside the /Views/ folder I have included this web.config file so I get MVC 2 intellisense whe...

VisualSVN and VS2008 integration - moving files

If I drag and drop tracked .cs files to new folders in VS2008 with VisualSVN what message should I see when I commit the .cs file? I see added (+) shouldn't I see a "move"? I'm asking because I'm getting ready to do a major refactoring (including moving lots of files) and I don't want to lose my version history on these files. Note: I'...

How do I specify the User's LocalAppDataFolder in a VS 2008 setup project?

Basically I am looking for a way to create application data files during setup inside the folder corresponding to: Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) or put another way (for WindowsXP): C:\Documents and Settings\%username%\Local Settings\Application Data I tried the solution suggested here, but ...

How to incorporate customized wpf screens in Wix Solution

We are developing a customized installer using Wix and Wpf. We have developed some screens using wpf and wish to integrate the same in Wix solution instead of using UI screens provided by Wix. Has anyone done this; Does WIX provides WPF dialogs or can we use our own custom dialogs (WPF Forms) in WIX solution. Any pointers for this will b...

Do I need to use any other attributes other than CssClassProperty to enabled design-time support?

Hi, I'm trying to provide the same design-time support that the CssClass provides on some custom properties of a server control. The documentation suggests that decorating the property with the CssClassProperty is all that's required. [CssClassProperty] public string SomeOtherCssClass{get;set;} This has no effect, in vs2008 or vs201...

Unknown Publisher when I install application I wrote?

When I install my application on my computer I get a warning that the publisher is not verified. How can I change that? or do I need to worry about that when I distribute my application? The application is written in Visual Studio 2008 with VB.NET ...

How can upload image URL in SQL server and retrieve in grid view using ASP.NET?

How to upload image URL in SQL server and retrieve in grid view using ASP.NET? Can you point me to any tutorials and/or sample code? ...

database already exists please choose a different name

Here's the case I created this Permias.mdf on another solution that I had and then after that I decided not to use that solution and created a new website from visual studio and copy and paste the .mdf file to be used for this website. Database 'C:\\Permias.mdf' already exists. Choose a different database name. ...

DataContext not visible when choosing data source for LinqDataSource

I have a page on which I've thrown a LinqDataSource and a GridView. I've created a DataContext LINQ-to-SQL class called dcResidents.dbml. When I attempt to configure the LinqDataSource to utilize the dcResidents data context - it doesn't appear in the list of options...though under class view (tab in VS) it does appear. I do have several...

LinkButton not working due to validation control field

In my .aspx page which derives from a master page I have a contact form which uses some validation, such as the RequiredFieldValidator and RegularExpressValidator. At top of my page I have a link bar and whenver I am at contact.aspx I can't navigate to the other pages as if that I need to fill in the necessary data so that it satisfies ...

Running Visual Studio 2005, 2008, and 2010 on same system.

I have around 50 projects in Visual Studio 2005 that I am building a new development machine for and I'd like to slowly move those projects to VS 2008 but also have 2010 available for select new projects. Can this work? Are there any gotchas for this sort of setup? Any general advice for running multiple versions of Visual Studio on the...

How to prevent VS copy .pdb files

Hi, i set the cache symbols from symbol servers to directory to D:\WebSymbols, but whenever i use VS2008 attach to process to debug, the VS2008 will copy the .pdb to the location of the attached process, and i also found many .pdb in the Microsoft Visual Studio 9.0\Common7\IDE\sym. is there any way to prevent VS copying the .pdb files? t...

What's Differences Between Using Entity Framework in Vs 2008 And 2010

You know firstly Entity Framework came with Visual Studio 2008 SP1. Now it is come with Visual Studio 2010. The question is that, what are differences between these two version? ...

Form Based Authentication problem?

i have 2 pages : Login.aspx and Satis.aspx. i redirected from Login.aspx to Satis.aspx if authentication is correct . if i signout from satis i redirected to Login.aspx. But if i write satis.aspx' url on web scanner i entered satis.aspx. But i am not sign in Satis.aspx. i should't enter Satis.aspx directly. my web config: <authent...

Can I have a macro run whenever I save a file in Visual Studio 2005?

When I save a file in Visual Studio 2005, I'd like to have a macro also run that updates a copyright (through a regular expression search and replace). I'm not new to regular expressions, but I am new to VB/VBA and Visual Studio macros, so what I need help with specifically is: getting a macro to run upon save, preferably after I pres...

installing WF into VS 2008 Express

Hello guys. I'm trying to install WF with VS2008E. That's what I already did: Go to http://msdn.microsoft.com/en-us/netframework/aa663328.aspx "Get it" http://msdn.microsoft.com/en-us/netframework/dd980558.aspx "Get the Windows Software Development Kit" http://msdn.microsoft.com/en-us/windows/bb980924.aspx Select first link at Downlo...