If Visual Studio 2010 based on WPF, why I cannot open it with reflector?
In other words, devenv.exe seems to be native assembly, so where is the WPF UI code?
Hi!
How can I programmatically refresh Visual Studio Solution Explorer?
I can get a hold of the solution explorer window object, but don't know what to do with it!
var solutionExplorer = (UIHierarchy)DTE.Windows.Item(Constants.vsext_wk_SProjectWindow).Object();
Thanks.
I am very confused
I have this lamba expression
tvPatientPrecriptionsEntities.Sort((p1, p2) =>
p1.MedicationStartDate.Value.CompareTo(p2.MedicationStartDate.Value));
Visual studio will not compile it and complains about syntax.
I converted the lamba expression to an anonymous delegate as so
tvPatientPrecriptionsEntities.Sort(
delegate(PatientPrecriptionsEntity p1, PatientPrecriptionsEntity p2)
{ return p1.MedicationStartDate.Value.CompareTo(p2.MedicationStartDate.Value); }
);
and it works fine.
The project is uses the .net 3.5 framework and I have a reference to system.linq.
Hi,
I'm using the Visual Studio Development Server, with a specific port. Is there a way to add a virtual directory to it?
EDIT:
Sorry, I wasn't very clear. I'd like to be able to add one or more virtual directories to arbitrary physical directories. For instance: http://localhost/c_drive/ would map to C:\, http://localhost:/d_drive/ would map to D:\, etc.
I'm trying to use a WSDL Top Down approach to create a Web Service in Visual Studio 2010.
I used Eclipse's WSDL GUI Editor to generate a WSDL file (CalculatorWSDL.wsdl) which uses the SOAP method for communication.
I also used wsdl.exe to generate a C# file (Calculator.cs).
Now, I'm not sure what to do next. How do I actually use the Calculator.cs on the server and/or client?
In the Visual Studio output window, you can double click a line that contains a file path and line number and it automatically takes you to that location. In my program, I need to mimic this behavior and be able to click something (a button for example) and do go to a specific file and line number that I tell it to go to. Any help/suggestions would be appreciated.
I am working in C#.
How do I set a path for dll's to be searched in Visual Studio for a particular project alone.
Now I am setting it in environment path variable, but I would like better control over this.
We added a SharePoint BDC model project to a solution in Visual Studio 2010. Ever since, whenever the solution is built, instead of showing the Build output in the Output window, it insists on having "SharePoint Tools" selected in the "Show Output from:" drop-down, just to say "Model validation started ... Model validation completed with no errors."
Short of shutting off any SharePoint projects in the build configuration, can this behavior be overridden?
What is a "Visual Studio SharePoint Package file" (.package)? I am trying to extract some data and this is the only file that looks large enough to contain what I'm after.
In Visual Studio, two files are created when you create a new Windows Form in your solution (e.g. if you create MyForm.cs, MyForm.Designer.cs and MyForm.resx are also created). These second two files are displayed as a subtree in the Solution Explorer.
Is there any way to add files to the sub-tree or group for a Windows Form class?
I have developed an application using Visual Studio 2003. I have been told the hosting environment will be of a Windows Server 2008. Does it support my application?
Sometimes I would like to undock a source file and slide it over to another monitor while editing another file. How do you do this in Visual Studio 2008?
I am using a custom colour scheme in Visual Studio 2008. The annotate bar (that shows who checked each block of code in and when) is rendering in some illegible colours. I can't identify which colours these are within the relevant Options dialog so I cannot change them to something clearer.
Does anybody know how to change these colours?
Hey. Call me dumb but I can not get amaterasERD working with Aptana Studio under OS X.Is this doable? I have Aptana 2.04. I've installed amaterasERD, GEF, EMF, UML2 and AmaterasUMLExtension. No joy. Am I wasting my time?
When I create a MVC web application in Visual Studio 2010 it offers also to create a testing project using one of framework from the list.
But I have only VS built-in testing framework in it.
Is it possible to add NUnit there?
Are there any coders out there that have real experience/exposure to both PHP and ASP.net? I'm a C# developer, wondering if any PHP frameworks compare to the robustness of the Visual Studio Development environment.
Is there a g++ equivalent to Visual Studio's __declspec(novtable) argument?
Basically, in a pure virtual base class the __declspec(novtable) argument can be used to suppress the creation of a vtable for the base class as well as vtable initialization/deinitialization code in the contstructor/destructor respectively. E.g.,
class __declspec(novtable) PureVirtualBaseClass
{
public:
PureVirtualBaseClass(){}
virtual ~PureVirtualBaseClass() = 0;
};
See Paul DiLascia's article for more info. Also see my related question.
Open a file in the Visual Studio binary editor that contains a null byte (0x00), then use the Quick Find feature (Ctrl +F) to find null bytes.
I would have thought I could use a regular expression such as \x00 to match null bytes but it doesn't work. Searching for any other hex value using this method works fine.
Is this a VS bug, 'feature', or am I just missing something? Is there a work around?
Hi folks,
is it possible to have a way to clear the Visual Studio OUTPUT window, programatically? For example, the SysInternal's debugger app called DebugView has the specific command called DBGVIEWCLEAR .. which clears the log window.
Please don't say: right-click, clear window .. with the mouse. I know that, but that's not what i'm after.
cheers :)
Visual Studio 2008 has a Copy Web Site tool that remembers previous FTP locations that files have been copied to. There is a "Connections" drop down where they are listed. I'd like to remove some old listings from that, but I can't find where they're stored.
I've looked at the solution file, and there's nothing there.
John
Visual Studio 2010 moved to using WPF for rendering the editor. This is leading to slowdowns while I am editing code, especially if I'm running something else that uses other video capabilities.
How can I speed this up? A new video card? New drivers? Settings?
What technologies does WPF use to render and what video card would complement it?
Good afternoon
is there anyone who noticed that Find and Replace window each time is getting wider when coding and compiling?
Even when I resize this window in Visual Studio 2010, it gets wider again... :-(
Perhaphs is there a way to fix its size?
A project I'm on requires Visual Studio 2005. One annoyance is that when a website project in the solution, any compile errors from .aspx or .ascx files show up like:
(0,0): warning CS0168: The variable 'ex' is declared but never used
(0,0): warning CS0162: Unreachable code detected
(0,0): warning CS0168: The variable 'ex' is declared but never used
(0,0): warning CS0168: The variable 'ex' is declared but never used
How can I track these down? Is there an option I'm missing that gives me filename and line numbers?
I am new to SQL Server Management Studio and am wondering if there is a way to see what queries have been ran against a database. Surely there is a way to see these. In the Activity monitor, there is a "Recent Expensive Queries" but I'm guessing that isn't all of the queries since I'm not seeing the ones I have ran. I am running SQL Server 2008 v 10.0.1600.22.
Hi,
a colleague and I are trying pair programming for the first time. We both remote into a development machine; I'm using RemoteDesktop and my colleague is using UltraVNC. This works great except that he can't see the Intellisense dropdown in Visual Studio 2008. According to online posts, this may be something to do with DirectDraw, but I don't see much by way of a workaround.
Has anyone else experienced this?
Thanks,
Andrew