visual-studio

tips about creating VisualStudio LanguageService (for languages similar to java)

I need to create in very short period of time proof of concept for Visual Studio Language Service supporting "Java-like" languages. I would like to ask you about experience with creating VisualStudio LanguageServices or similar addins. Where I should prepare for really hard battle and what is easier to implement than it appears to be ? ...

wpf Image resources and visual studio 2010 resource editor

Hello My motivation for this question is really just to specify an image to be used in a user control via a dependency property for ImageSource. I'm hitting some pain points involving the management, access, and unit testing for this. Is the resource editor a good tool to use to maintain images for the application? What is the best...

ASP.NET MVC/VS: How to stop VS inserting automatic IDs in pasted view content?

Is there any way to stop VS (specifically 2008) automatically inserting WebForms Ids in <asp: elements when pasting code into a view? E.g. by default pasting this into a view: <asp:Content ContentPlaceHolderID="TitleContent" runat="server"/> </asp:Content> Results, annoyingly, in this: <asp:Content ID="Content1" ContentPlaceHolderID...

VS 2010 MVC Formatting

Hello, MVC is formatting my code horribly, and I was wondering if you can turn it off? I feel the answer is no, but I was hoping VS 2010 had built in a setting... Here's what its formatting as: <% if (org.UserKey.HasValue) { %> <%= org.Reference(i => i.UserReference).Email%> ...

VS 2008 "Choose Data Source" wizard

Good Day, I'm using Visual Studio Professional 2008 SP 1. When I create a connection via the designer, the "Choose Data Source" dialog only lists the following data sources: Microsoft SQL Server Compact 3.5 Microsoft SQL Server Database File When I create a connection on the Server explorer the list is complete with : Microsoft SQL S...

ASP.NET Controls Not Recognized

I just installed the release version of Visual Studio 2010, and it looks like there's something wrong with the standard ASP.NET server controls. When I create a basic server control, such as a TextBox, the editor underlines it in green and says (I also get no intellisense for ASP.NET controls): Element 'TextBox' is not a known element....

Sharing visual studio macro's with team members

Is it possible to add visual studio macro's to a solution, so they would be checked in by svn ? If not, how do you deploy your utilities/scripts with your developer team ? ...

Turn off VisualAssit for *.cl, *.cu and *.cuh

How can I define, which filetypes should be work by the VisualAssit in Visual Studio 2010? I don't like, how this tool works with openCL and cuda files, therefore i would like to turn off it for thie file types (oherwise it highlights 1000 errors). thx. ...

Windows.Forms control like "properties" table in VS.

I need a table control where one can edit properties by various ways, just like editing properties in Visual Studio (it's for XML editing). Does anybody know about something like that, written by others, or maybe a solution from MS itself? ...

On Memory Allocation and C++

And I quote from MSDN http://msdn.microsoft.com/en-us/library/aa366533(VS.85).aspx: The malloc function has the disadvantage of being run-time dependent. The new operator has the disadvantage of being compiler dependent and language dependent. Now the questions folks: a) What do we mean that malloc is run-time dependent? ...

resources at class library project

Hello I want to add some xml file as resource to my class library project . Any idea how to do so , and call it later? In windows application i would do it like ClassLibrary1.Properties.Resources.file.xml But here it didn't worked any idea how i do it here ? ...

SQL query not working

hi, I'm trying to create a query in an access database for a C# dataset using the query editor but the created method says there is a problem and isn't created correctly. SELECT Discs.* FROM Discs WHERE (Title=@Title OR @Title IS NULL) AND (Type=@Type OR @Type IS NULL) AND (ContainerID=@ContainerID OR @ContainerID IS NULL) AND NOT (@Tit...

Using Visual Studio for open source projects (projects management & legal issues)

Hello! I'm working on small open source project for developed Windows. I created new project using Visual Studio wizard and now I want to publish it using subversion and develop it with friends. What projects' configuration files I have to add to repository to make my friends able to download current project's revision and open it in V...

Visual Studio Linked Files Directory Structure

I have two versions of a project. One for Silverlight and one for .NET. The SL project has the vast majority of the code base in it. I want to globally add all files from the SL project into the .NET version as linked files. I've managed to do so successfully like this in the csproj file for the .NET version: <Compile Include="..\MyProj...

How can i cancel language setup?

i setup vs studio with Turkish language package. But i want to uninstall or cancel this property. i need to help . i don't want to see turkish error message. i want to see in english? ...

"Tabify" all files in Visual Studio solution?

There's a "tabify" command in Edit > Advanced > Tabify Selected Lines (and the Power Tools 2010 also provide this functionality on a per-file basis) but is there a way to do this for all code files in a solution? ReSharper has a Clean Up command but the only half-suitable option I found there is to run formatting on all files which does...

Getting list of all existing vtables.

In my application I have quite some void-pointers (this is because of historical reasons, application was originally written in pure C). In one of my modules I know that the void-pointers points to instances of classes that could inherit from a known base class, but I cannot be 100% sure of it. Therefore, doing a dynamic_cast on the vo...

How can i add column name in list generic?

class MyExcelSheets { public List MyColumnNames { get; set; } } how can i add Excel data's column name in "List MyColumnNames ". it returns to me Object reference not set to an instance of an object. i want to use above class in: myexcelSheet = new MyExcelSheets(); myexcelSheet.MyColumnNames = new...

Why is it not possible to evaluate lambdas in the immediate window?

Is there any particular reason? Is it not possible at all or is it just not implemented yet? Maybe there are any third-party addins that allow lambda evaluations? UPDATE: I've found this project on codeplex Extended Immediate Window. Seems that it has been abandoned for some time, but this can be a proof of a concept. Does anybody know...

How can i trim or remove " , " at the end of my query?

i try to write a query but my query finished with "Control nvarchar(500), ". i want to finish "Control nvarchar(500)" How can remove ",", " "? void SqlTable(List listMyColumnNames, string TableName) { string Text = "Create table ENG_"+TableName+" (ENG_"+TableName+"_ID integer PRIMARY KEY identity(1,1), "; ...