visual-studio

Web test to edit a SharePoint pages properties using Visual Studio Test Suite

I am using visual Studio 2008 sp1 to try and create a web test that will allow me to edit a page using the EditForm.aspx. I am trying using fiddler and the recorder. I have managed to get some test to run, but they do not change the properties. Anyone have any tips on how to do this? ...

How to configure the import path in Visual Studio IronPython projects

I have built the IronPythonIntegration solution that comes with the Visual Studio 2005 SDK (as explained at http://www.izume.com/2007/10/13/integrating-ironpython-with-visual-studio-2005), and I can now use IronPython projects inside Visual Studio 2005. However, to let a Python file import from the standard library I need to include thes...

Disable, but not uninstall Resharper 4.x onwards

Any ideas on how to disable, but not uninstall Resharper 4.x or above? ...

Why doesn't anyone upgrade their C compiler with advanced features?

struct elem { int i; char k; }; elem user; // compile error! struct elem user; // this is correct In the above piece of code we are getting an error for the first declaration. But this error doesn't occur with a C++ compiler. In C++ we don't need to use the keyword struct again and again. So why doesn't anyone update their C compile...

How do you invoke the Visual Studio Preprocessor from the command line?

I want to implement the solution using the pre-processor described here: http://stackoverflow.com/questions/100854/reuse-define-statement-from-h-file-in-c-code Bonus points if you can point me to the docs at MSDN. I'm having trouble finding them... ...

Dealing with .NET IDisposable objects

I work in C#, and I've been pretty lax about using using blocks to declare objects that implement IDisposable, which you're apparently always supposed to do. However, I don't see an easy way of knowing when I'm slipping up. Visual Studio doesn't seem to indicate this in any way (am I just missing something?). Am I just supposed to che...

Is it possible to make a vs2008 c++ project import source file names from another file?

I have a situation where another developer is including source files from a project that I maintain in a project that he maintains. The nature of the files is such that each source file registers a "command" in an interpretive environment so all you have to do is link in a new source file to register a new "command". We can't put these...

Is it true, visual studio can't handle fonts installed after it was ?

I was trying to solve my XNA Font problem, when I found this here: Visual Studio doesn’t recognize any fonts you add after it is up and running. Is there a way to use fonts installed after Visual Studio? After finding out that is was the Font file why would the tutorial mention something like that ? ...

How to put unicode characters on a System.Windows.Forms.Button in C#?

In Visual Studio 2008 in a C# WinForms project, there is a button on a form. In the properties view, the property "Font" is set to "Arial Unicode MS". What do I need to put into the property "Text", so I get the unicode character \u0D15 displayed on the button? When I put \u0D15 into the "Text" property, the button displays the six cha...

MSTest & AppDomains

Hello In some my project I notice that during executing unit tests under VSTS2008 its VSTestHost's memory consuming grows. As I have very many tests in my solution it leads to OutOfMemroyException eventually. That looks very strange for me as I was sure that MSTest creates a new AppDomain for each unit test. Otherwise how would it reset...

How do I keep the development web server (Cassini) running in Visual Studio 2008?

I'm using Visual Studio 2008 to develop ASP.NET applications. Currently I'm debugging with running on IIS. I would like to switch to the development web server (Cassini) for debugging, so that I can use features like edit and continue. The reason that I'm not, is because the development web server only starts up when you are in debug mod...

Is there a resource to help convert Prototype JavaScript to jQuery?

I have extensively used Prototype before and it helped us add considerable interactivity to our web applications. However we are looking at making the move to use jQuery in order to standardize on something better supported in Visual Studio. I understand that we can use the jQuery.noConflict to run it alongside Prototype, but we would l...

How to highlight occurrences of a search term in text in Visual Studio?

How do I make all occurrences of a phrase (search term) in a file to be highlighted in the VS code editor? ...

Weird compile error dealing with Winnt.h

When trying to compile a file that include winnt.h via windows.h, I get the following error: MyGl.cpp ..\microsoft sdks\windows\v6.0a\include\winnt.h(964) : error C2988: unrecognizable template declaration/definition ..\microsoft sdks\windows\v6.0a\include\winnt.h(964) : error C2059: syntax error : 'typename T, size_t N> char (*RtlpNumb...

SharePoint Visual Studio document upload Web Test fails with Connot close stream until all bytes are written

I have created a Visual Studio 2008 sp1 test suite web test that uploads a document to a document library in SharePoint. The test is a lot like the one described here. All is fine until the test is converted to a coded web test. Then the upload post returns the response "Request failed: Connot close stream until all bytes are written"...

Creating Visual Studio Templates

I'm looking to create a Visual Studio 2008 template that will create a basic project and based on remove certain files/folders based on options the user enters. Right now, I have followed some tutorials online which have let me create the form to query the user and pass the data into an IWizard class, but I don't know what to do from th...

Visual Studio whitespace settings

Can some one help me with my VS settings? I have the whitespace characters showing, and I'd like to remove them. Please see the images below. I have highlighted the parts I'd like to remove. ...

Ribbon UI for Visual Studio 2010 or beyond?

One of the PDC2008 presentations showed off the new VS2010 UI (not the same as the current beta) that was built with WPF. Some of the new code effects looked fairly nice (comment xml parsed and styled within the code editor). It got me wondering if Microsoft would ever change the VS UI to the Ribbon; like Office, the change could possi...

Will installing the Visual Studio 2010 +Oslo CTP screw my Visual Studio 08 install?

I'm eager to give these a go, but I've only got my precious home machine to try it out. I'm in the middle of some important work that can't get inferred with, yet I can't resist the urge to give the new bits a go. Will installing VS10 on a Vista SP1 box with VS08 screw with the VS08 experience in any way? ...

Best way to deploy and reference an XSLT file

In a visual studio project I have three layers, Data Layer, Business Layer and Presentation Layer. In the Data Layer I have a few XSLT's that transform some objects into an email, all works fine but I have discovered that the XSLTs do not get built/copied when building. I have currently, created a folder in the deploy location and pl...