visual-studio-2010

Including file date in source code printouts in VS2010

Where do you tell VS2010 to print the file date (or printout date) in source code printouts? I must be going blind or something, but sifting through the VS2010 options, I just can't find it... ...

encryption codes on .net WCF request and response

Hi all, I am using VS 2008 WCF to create a sample service. The problem is the request and response has lots of information like encoded string, codes, uuid and so on. when i tried the same source code on VS 2010 WCF it is like clean and does not have any special data like this. what could be wrong ? what should i change in my project se...

How to override the code generation for Generate > Class in VS 2010

I have read http://stackoverflow.com/questions/913836/why-are-my-classes-private-by-default-in-visual-studio and succcessfully used the advice given. Now if I invoke Add > New Item, > Class (or just Add > Class), I get the empty class created the way I want it (as a Public class, amongst other things). However, if within my code I write...

DLL issues after upgrading from VS2008 to VS2010

Hello, I'm dealing with this issue: We have recently upgraded to VS2010 and I am working on recompiling all of our software tools in '10. One of these tools in VC++ was created by an outside vendor. We have the source code for this tool (fairly old) and its required dll (also fairly old), although we don't have the source for the dll...

Is it possible to send an e-mail using the VS2010 development server?

Hello, Is it possible to send an e-mail using the VS2010 development server? If that's possible, can someone point me to a sample the web? I'd like to send an e-mail to the person who register so to keep a proof that we (yes or not) received his request. The e-mail will contains a few pertinent info, such as the name, time, and son on....

WCF & Silverlight: How to go about without interfaces?

Hi All, Let me try to explain my challenge. I'm building a Silverlight app which will be using a WCF service. The WCF service returns a list of users and roles (and lots more but trying to keep it simple). In the SL app I need to fill several comboboxes with lists of users and roles. Usually I would use an interface to specify the ke...

Open TFS Query results in VS 2010 with all nodes collapsed by default

When I open a TFS Query with hierarchical results in Visual Studio 2010, the nodes are expanded by default. I can click the button to collapse them, but is there a setting or extension that will open query results with all nodes collapsed by default? ...

Can I use the VS 2010 SDK to create add ons for VS 2008?

I'd like to create an add-on for Visual Studio 2008, but am finding more examples and sample code for VS2010 SDK. Is it possible to build an add-on with VS2010 SDK and target VS2008? If not, are there any good sites for VS2008 add-on dev? Google searches seem to all lead to http://msdn.microsoft.com/en-us/vstudio/, which is focused on VS...

WPF UserControl Container C# VS 2010

I have a problem because y want to create a UserControl that can have a functionality as a container. I used the link: http://support.microsoft.com/kb/813450/en-us?fr=1 but i suposed that this part don't work for WPF 4.0: [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))] public class ...

MSVS2010 Coded UI Tests no longer work when saving/generating methods

The coded UI test functionality used to work, but now it won't allow any methods to be saved. I keep seeing the following error: "The code could not be generated because the cursor in the source code file is not located within a method. Place the cursor in the method where you want to insert the generated code." I receive this error w...

WPF Design view in Visual Studio 2010--scroll the scrollbar?

I just added a ScrollViewer to my WPF app. Now some of my content is hidden because it is at the bottom of the ScrollViewer--this is intentional. However, is there any way in the Design view of Visual Studio 2010 to scroll a scrollbar so that I can preview what my app looks like when the scrollbar is at different positions? It would b...

how do I check the encoding of a file in visual studio 2010?

How can I check whether a file is encoded in UTF-8, ANSI, etc... in visual studio 2010? ...

Publish a web app from within an VS2010 Extension

I want to publish a web app from within an VS2010 extension. In macro I use to write: DTE.Windows.Item(Constants.vsWindowKindSolutionExplorer).Activate() DTE.ActiveWindow.Object.GetItem("MyWebApp").Select(vsUISelectionType.vsUISelectionTypeSelect) DTE.ExecuteCommand("ClassViewContextMenus.ClassViewProject.Publish") but this doesn't se...

assembly and Visual C++ Express 2010 64 Bit

Is it possible to insert assembly code on Visual C++ Express 2010 64 Bit? If not, is there an intrinsic for adc (add with carry)? ...

How do you control the duration or speedratio parameters in a storyboard via a slider?

I created the following storyboad to continually rotate an image: <Storyboard x:Key="Rotate"> <DoubleAnimation Storyboard.TargetName="arrowRotate" Storyboard.TargetProperty="Angle" From="0.0" To="360.0" Duration="0:0:0.25" SpeedRatio="1" AutoReverse="False" RepeatB...

Visual Studio 2010 UI Rendering Issue

Recently I have been having an issue with my installation of Visual Studio 2010. On starting up, the menu items aren't being displayed correctly and are kind of clipping each other. Also, the start up page isn't displayed correctly either. Here is a video of what is happening: http://www.youtube.com/watch?v=DWEIc_TMG_A You can see me...

How to use vs2010 config transform when running/debugging locally?

In the team Im working in we have a big product with many wcf web services and some web sites which use the services. We are just about to upgrade to vs 2010 and Im looking at if we should start using the new config transform functions in vs2010. We have several different environments which needs different web.configs (database connect...

VS2010: minimal build log in output and detailed log in log file.

In Visual Studio 2010 we have under 'tools|options|projects and solutions|build and run' (couldn't find a correct image on the internet) two options for the logging of MSBuild: 'MSBuild project build output verbosity' and 'MSBuild project build log verbosity'. So I was hoping to be able to get a minimal build log in the output view wit...

Breaking single thread

Hello. Is it possible to break a single thread in Visual Studio, while other threads will continue their execution? I have one background thread that does simple data sending/receiving, which I would like to happen, while stepping through my code in some other thread. ...

How to set up TFS 2010 in Visual Studio 2010 Premium/Ultimate?

This might sound like a silly question but is there a manual or a guide on how to set up Team Foundation Server 2010 in Visual Studio 2010 Premium or Ultimate? It comes built-in right? I've only got up to the Server list part. It's asking me to select a TFS server and port, but I don't think I have one. All I have installed is Visual St...