visual-studio-2010

How do I edit a text buffer (or selected text) with the Visual Studio 2010 SDK

I want to create a simple extension which modifies text buffers based on a command. No sample, documentation or template that I've found so far explains anything about working with text buffers. Anyone got a clue how to do this? What I want to end up with is a format selection/document extension for text files, that wrap content around ...

Using Mono 2.2.1 and Visual Studio 2010 simultaneously

I created a C# .NET 3.5 project with Visual Studio 2010, add some classes and forms and close it. After that I open the project with Monodevelop 2.2.1 and add some additional stuff and close ist again. Now when I reopen the project with Visual Studio 2010, the project conversion manager pops up and wants to convert the project. I analyse...

Wherefore art thou app.config?

I've noticed in Visual C# 2010, whenever you change the target framework version away from the default 4.0 client profile (and even if you change it back afterwards), the IDE creates a. config file that it clearly thinks ought to be shipped with the program. The .config file basically just says what the supported/target framework version...

Code error 2104 after moving aspx page to some folder.

Hi guys, I get the following error after moving aspx page to some folder. Error: Unhandled Error in Silverlight Application Code: 2104 Category: InitializeError Message: Could not download the Silverlight application. Check web server settings Environment: Win7 x64, VS2010, SL 4.0.50524.0, IE8, IIS7.5 Steps to reprod...

Can i use sharepoint server 2007 with Visual Studio 2010?

Can i use sharepoint server 2007 with Visual Studio 2010?, Is there any issue about it to pay attention to? ...

Visual C# source files in subdirectory

How do you get Visual C# 2010 to go along with the idea of putting source files in a subdirectory, that is, *.cs moves to src\*.cs while leaving everything else where it is? It's probably something very simple, I just tried creating a test class as src\myclass.cs instead of plain myclass.cs and Visual C# would have none of it. ...

Why Action.MoveUp/MoveDown commands in VS2010 disabled?

The VS2010 Power Tools provide functions to move lines up/down but I found these have stopped working. No amount of fiddling, reinstalling Power Tools, rebinding keystrokes, etc. has got them working again. Only after adding the Action.MoveUp and Action.MoveDown commands to my Edit | Advanced menu, where I thought I had seen them before,...

VS2010 Express: Theme "New Item..." Stylesheet; Where Is It?

Started checking out VS2010 Express. I have it installed on my home laptop and my work PC. This "problem" occurs on both systems. In past versions of VS I thought I was able to add style sheets to a theme by right-clicking on the theme folder, selecting "New Item...", then clicking the Style Sheet item. In VS2010 Express, Style Sheet is ...

How do I modify my settings to allow VS2010 to load 3rd party XSD files from the "Unauthorized Zone"?

I have opened a 3rd party XSD file in Visual Studio 2010 that imports namespaces from other schema files from the same 3rd party. In the XML editor view of the schema file, the xs:import element is underlined with the following error: Request for the permission of type 'System.Security.Permissions.FileIOPermission', mscorlib, Version=4....

Visual Studio - sending "content" files to the output directory instead of a subdirectory?

I'm using VS2010. I've got a C# project that uses a few native DLLs. In my source tree, I have these native files stored in a "DLLs" directory underneath the main solution directory. In my C# project, I have the "DLLs" folder listed with each of the DLLs inside it. Each DLL is set to build action "Content" and "Copy to Output" set to...

VS2010 only runs one TestMethod

I am admittedly new to unit testing in VS2010, but I'm having a problem that I can't seem to resolve. No matter how many classes I have in Test project decorated with [TestClass] or how many methods within those test classes are decorated with [TestMethod]. Whenever I run all tests in the solution. only one test gets run. and it pass...

Will Microsoft continue supporting C++/CLI?

I've found C++/CLI to be a very powerful language for wrapping C/C++ libraries with .NET. I believe it's much better than using PInvoke for C for various reasons. However, when I've upgraded my project to Visual Studio 2010, I've found that it has less support for C++/CLI. Examples: Targeting the 3.5 framework with the Visual C++ 20...

Visual basic sql command not returning anything to variables

Hi, i am working on this code that is going to query a database for an entry and return the value of the tracking number and the time to print on a label if the tracking number exist in the databse. it does not right now it only seems to reprint the number that is enetered in a text box and it does not grab the date. any ideas? here is t...

Properties won't get serialized into the .designer.cs file

In VS2010, control properties won't get serialized despite the ShouldSerializeFoo method, with the DesignerSerializationVisibility.Visible/Content as well. Here's the code: class Class1 : UserControl { [Browsable(true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public string Foo { ge...

Starting an application with coded UI tests in VS 2010

When I recorded a test with the recorder in Visual Studio 2010 Premium, I noticed that the recorder doesn't generate the code to start the program. Steps to repro: Add a new Coded UI test to a VB .NET testing project Click "OK" to use "Record actions, edit UI map or add assertions" Click the record button to start recording. Press CTR...

How to get Visual Studio 'Publish' functionality to include files from post build event?

I am currently attempting to use Visual Studio 2010 'Publish' and MSDeploy functionality to handle my web deployment needs but have run into a roadblock with regards to customizing the package depending on my build configuration. I develop in a 32bit environment but need to create a release package for a 64bit environment, so in the 'Re...

Default editor for tt template and syntax colouring

I installed the tangible t4 editor extension in vs2010 that gives some basic syntax colouring for t4 templates (.tt). When I add a t4 template via the wizard it opens with syntax colouring. After closing the file and double-clicking it opens again with syntax colouring. After closing the file and using the 'open with' menu and choos...

How to install/link NTL with Visual C++ 2010?

Hi, I cannot install WinNTL-xxx to my MSVC++ 2010. The instruction come up in http://www.shoup.net/ntl/doc/tour-win.html is for MSVC++6. Can anyone help me in this regard? Thanks ...

how do we alias a sql server instance name

I have two development teams, that come from different groups. Group A develops against a local default instance of Sql Server 2008 R2; Group B develops against a local named instance of Sql Server 2008 R2. Is there a way to setup an alias such that both groups are coding against the same name. As it stands right now we have a war o...

How to force VS10 to include DLLs into main app folder when publishing?

Note: I suspect my problem is related to this one: Visual Studio 2010 Publish Web feature not including all DLLs. My app has some references that are wrappers for non-.NET libraries. These wrappers need the original DLL to be in the same directory as them and the executable. The problem comes when publishing. Following the advice I fou...