visual-studio

Which Namespace For EnvDTE?

I was playing with writing a Visual Studio Add-In in F# and I was following along with some stuff that Gabriel Culliver and Brian McNamara had posted in response to this question. When I put the following code into a .fs file in VS 2010 namespace TestFSharpAddIn open System open Extensibility //open EnvDTE //open EnvDTE...

How can I take a picture of my database Entity Framework model for people to reference?

My company has made an Entity Framework model of the database with all of the relationships mapped out and I'd like to take a screenshots of that with all of the FKs included in it. But I can't seem to figure out how to take a screenshot that includes all of that information. Any advice? The "Export as Image" feature of Entity Framework...

open one sql express db in multiple projects

I would like access a sql express db in multiple projects, a dynamic data project to administrate the data and a console application which fetches the data from the db, is there an option to do this? or should I use a SQL CE for this kind of scenario? ...

Visual Studio Breakpoint Macro to modify a value?

I'm debugging an application (C++), and I've found a point in the code where I want to change a value (via the debugger). So right now, I've got a breakpoint set, whereupon I do: Debugger reaches breakpoint I modify the variable I want to change I hit F5 to continue running lather, rinse, repeat It's hitting this breakpoint a lot, s...

Seeing console output without console?

I'm making an application and would like to test the toString method I just made. I'm using Visual c++ 2008. Is there a way to see console output without having a console window? Such as in the Output panel? Thanks ...

Visual Studio Unit Test - Weird behaviour

Has anyone seen this very strange behaviour before? I've got a solution whith 70 unit tests. All of them pass on my dev machine. Whenever I commit my changes, our continuous integration process kicks in and the build box will eventually run the same 70 unit tests. There is only ONE test in the build box that fails all the time. The err...

Visual Studio: how to debug a library with an external executable?

I am developing a class library. The library is to be used by another program, an .exe with no source code. The library file location is passed as a parameter to this exe, for example by running: prog.exe lib.dll I would like to debug the library using this .exe (using debug tools such as breakpoints, etc.) How do I use Visual C# to do ...

alternative way to explore .net framework source code

While developing with Java in Eclipse it was very handy: you can attach sources and explore core java code just like your own. In Visual Studio I know about watching at the .net source code is possible only when debugging (and I can't say this feature works well). Are there any alternatives of exploring .net source code? ...

Short cut to create properties in Visual Studio?

I have seen some people creating properties in C# really fast but I don't know how they did it. Does anyone know what short cut are available in Visual Studio (currently using 2010) to create properties? I am using C#. ex. public string myString {get;set;} Thanks. ...

Web Service/Client relationship in Visual Studio or Visual Web Developer.

Can you create a web service/client relationship in Visual Studio or Visual Web Developer over 2 PC's - 1 as the web service, the other as the client? If so how do you do it? I have create this relation ship on 1 PC running both the Web service and the client, I want to send data between 2 PC's if possible? ...

Launching another project from visual studio.

This must be simple, but I guess I'm searching with the wrong key words. I have a visual studio solution(2008) that includes two projects (win32). is it possible for one to launch another? they are entirely self sufficient programs. ...

Where is a .net Application Icon Stored?

I'm trying to figure out where my application's icon is stored in VS 2008. On the startup project's application properties, I added an icon with the setting "Embed manifest with default settings." I'd like to programatically display the icon in the application, but I can't figure out where the icon is being stored. How can I get a refe...

mono 2.6 and visual studio 10

When I tried to run a binary (exe file) that was made with Visual Studio 10 from mono 2.6/Mac, I get the following warning. WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322 How can I disable this message with mono? Is there a way from Visual Studio not to show this message wi...

Disabling visual studio reload message

I use emacs to edit source code, and use visual studio ide to compile. However, I see the following message in visual studio when the source is modified. Can I disable this message with the default action of reloading? ...

Code-snippet or short cut to create a constructor in Visual Studio

What is the code-snippet or short cut to create a constructor in Visual Studio? Visual Studio 2010 and C#. I've used before but I can't remember. ...

Why are there sln, suo and csproj files?

I begin to use visual studio 10. After I'm done with C# program, I see that there are sln, and suo file in the project root directory, and csproj file in the subdirectory. What are those files for? I need to identify the files to put into git repository. Together with the source code/documents that I create, I guess those three files ...

ASP.net dateADD help

Hey all, i have the following code to populate a dropdown to coinside with a companies 2008-2010 calander year. This is the output: 2008 Period 1: 11/30/2008 - 12/27/2008 2008 Period 2: 12/28/2008 - 1/24/2009 2009 Period 3: 1/25/2009 - 2/21/2009 2009 Period 4: 2/22/2009 - 3/21/2009 2009 Period 5: 3/22/2009 - 4/18/2009 2009 Period ...

Looking for Suggestions on Microsoft Visual Studio Solution and Project Naming Conventions

There doesn't seem to be any tried and true set of best practices to guide you on how to setup your solutions, projects and the assemblies they output. Microsoft seemed to have tried back in the VS.net days, but they have since retired this content. For every method I read about I read another that claims the opposite is better, or a pos...

VS2010 Wix proj - How to pass a command line variable to be used as a directory name

Hi, We have a requirement to install the same software in multiple directories on the same machine. I want to install the software using a batch file. I am having difficulty using the variable I have passed in as a directory name. (I am using VS 2010). Batch file code msiexec /i "SetupProjectTestMultiInstalls.msi" CUSTOMER="TESTCUSTOM...

In vs2008 when using the debugger and copying a string's current value, automatically change \\ to \

In vs2008 when using the debugger and copying a string's current value, automatically change \\ to \ I end up having to debug long paths and always get things like "e:\\eeeee\\blah\\d\\ddd\\fff\\bbbb\\rrrrr\\rrss\\sssss\\somefile.exe" I then I have to go manually replace every doubleslash. Is there a quick dumb way so the v...