visual-studio-2010

Post Build event that puts all extra .dlls in bin directory using probing

I have WPF assembly with a bunch of other dlls in my project I want to move everything except the main assembly and the app.config from the build directory to a subdirectory called bin this is easy when I add the probing tag to my app.config and do it manually (a cut and paste job) <configuration> <connectionStrings> <add name="...

how to remove asp.net webforms tag from visual studio 2010

when i write mockup in visual studio i found in intellesense that some tags like asp:tagname but in mvc i don't want it. so are i can remove it then when i write mock up then i not see this webform tags in intellesense ...

Visual Studio showing {...} as value for Javascript variable in debugger

Visual Studio 2010 shows '{...}' in the debugger as the value for a Javascript variable. The type is object. How can I view the contents of the variable? There's no expansion icon. ...

Should I write unit tests as console apps first?

I'm debugging a set of WCF services. Initially, I created some unit tests, but since I'm using threading I often receive "Aborted" or "Stopped" tests without any clear explanation why (this is a known bug in Visual Studio). I found it extremely challenging to debug the services when I can't even read the log output, so I quickly wrote a...

VS2010 DSL samples

I want to create my own DSL but working with DSL Definition is confusing. Where can I find some samples? ...

Visual Studio 2010 Express for Windows Phone - IntelliSense problem

I have some problems with IntelliSense, before update IntelliSense auto-select corresponding type, f.e class Test { } //Main { Test t = new //<- there IntelliSense automatic select 'Test' type, now IntelliSense select 'Test' but I have to press 'down' before 'enter' if I want it } ...

How do I change the language of a Wix 3.5 MSI?

I have created an installer with Windows Installer XML 3.5 from within the Visual Studio 2010. The installer itself works pretty well but now I would like to change it's default language from english (1033) to german (1031). Therefore I changed the language attribute within the product tag to "1031" which should do the magic as far as I ...

Common DTOs accross multiple web services in VS2010

Hi all, I have a collection of WCF web services that share a common DTO model. The problem is that when I add service references in Visual Studio 2010, the proxy generated for each of the web services has its own namespace (internal to the solution), meaning that I essentially have duplicate DTO's on each of the service references. I...

Can I run a program from visual studio without elevated permissions?

Okay, so originally I was going to ask about dragging and dropping in Windows 7. I found the answer I was looking for here: http://stackoverflow.com/questions/2833709/c-drag-drop-does-not-work-on-windows-7. Basically it says that since I'm running Visual Studio (and subsequently, my program) with elevated permissions, some sort of isol...

How do I "Take Source Branch Version" for all conflicts in TFS 2008 on Visual Studio 2010?

The closest thing I see to what I want is "AutoResolve All". I don't want to AutoMerge though. In Visual Studio 2008 I could say I wanted to have the source override on all or the target on all. Where is this option in 2010? Did they take it away? It looks like my only option is to click "Take Source Branch Version" on all 70 fi...

How do I attach my Visual Stuido Add-in window to a tab programmatically?

I'm creating a small addin in the hopes of making it fun and easy to play with graphics in Visual Studio. There has been one small annoyance though, I can't seem to figure out how to attach my newly created window to the tab bar. It's all F#, but the solution should be just a couple of function calls so please feel free to use C# or VB...

How can I add PHP support to Visual Studio 2010?

I don't like splitting up my development environments, but I build projects for clients who use both .NET systems and Apache-based systems. This means I am forced to split my time between Visual Studio for the .NET and Dreamweaver or another IDE for the PHP-based work. I don't want to use two IDEs - I'd much rather build everything in ...

Handle .NET DataGridViewCheckBox Changed Event

How can I handle aCheckedChanged event for a cell in a DataGridViewCheckBoxColumn? Note: If applicable, I prefer VB.NET answers over C#, but I'll accept either. ...

WS-Policy Specification in WSDL document - .NET

I have authored a simple calculator Web service using visual studio 2010. I need to specify policy using WS-Policy language (which I need to append with the WSDL document generated for the service). How can I do that? Should I need WSE 3.0 Settings tool installed for that in VS 2010? Does VS 2010 support it? I have tried using XMLSeri...

Visual Studio | ASP.NET Configuration error

Hi developers! I have a problem as I have struggled with for a week. Now I give up! I really can not figure out how to solve it. Every time I open the ASP.NET Configuration in VS10, then comes the first with this error: *An error was encountered. Please return to the previous page and try again. * If I then press: How do I Use this Tool...

Visual Web Developer Express 2010 T4 Templates no icon?

I have installed Visual Web Developer Express 2010 but my .tt templates don't have icons. Do you know how to solve this issue? ...

upgrading a project from vs 2008 to 2010 loses generated code in service reference

I have a project that I'm upgrading from 2008 to 2010. My problem is with the code being generated by a service reference. Any classes used in the Reference.cs are given by their full name according to the reference The difference results in a 'cannot convert from foo.Data.MtkBaseRequest to foo.WebServicesClient.ModelDataService.MtkBa...

VS2010 ASP.NET ReportViewer Control Print as Zoom

I have a RDLC report displayed in the ReportViewer and then set the zoom to 10%. The report resizes to 10%. When I print or export the report it is full size again. Is there a way to make the zoom effect the export and print or is it merely for display in the browser? Thanks, ...

How can I force Visual Studio 2010 to reload files and projects that have changed on disk?

I often use command line tools to do source control updates of files and projects that I have loaded into Visual Studio 2010. With previous releases when I did this I could force Visual Studio to notice and load the changes by doing a Save All. This doesn't seem to work in Visual Studio 2010. I do have 'Detect when a file is changed o...

Pre/Post deployment scripts in VS2010

We are migrating from VS2008 to Vs2010. Currently we have a VS 2008 SQL CLR project that uses predeployscript.sql and postdeployscript.sql files to run pre and post deploy scripts. Once the project was converted to VS2010 and I try to deploy it against a database, I get errors indicative of the fact that the predeploy script was not run....