visual-studio

Visual Studio trying to add parent directory files into project located in subfolder

Hi guys I'm having trouble getting some code to build and debug in VS2008. Basically the project is located within a sub folder and it is trying to access .ascx files in a folder that is two folders up within the hierarchy ie: project is in //website/source/current/projectfolder and it tries to access a file in //website/usercontrols. H...

visual studio accidentally rebuild problem

Hi, many times i accidentally click on "rebuild" when i plan just to click on "build". This rebuild process may take so long time if there are dependencies of this project... do you know any plug-in or a configuration that makes visual studio to ask me if i am sure to rebuild this project... i hope there is a way to handle this situat...

Can I produce commercial code with Visual studio express editions?

Hi, Can I use Visual C# express to produce commercial applications? And are there any other licensing issues. Thank you ...

Not able to find "Use Custom Web Server"

I just installed Windows 7 on my development machine, along with Visual Studio 2008. Everything works fine, except for one thing - I have lost my "Use Custom Web Server" setting! What am I missing? :| Action shot: http://i28.tinypic.com/5l2re1.png ...

In the ORM designer, why don't the server objects get refreshed properly with new changes?

Whenever I use the ORM deisgner in LinqToSql I have real problems trying to get the latest objects from the server explorer after i've updated them in the database. For example, I have dragged in a stored procedure to handle my insert/updates, which creates the method for me to call. Problem is I then have to go and change one of the p...

Most reliable way to find the visual studio executable?

Assuming I want the newest flavour of visualstudio that is able to open C# projects, and if there are multiple (pro/express), I'd like to open pro. edit: I want my own program to open visual studio on the computer of my program's user. ...

How can I set a breakpoint and have the code stop on a line inside an AttachedCommand?

In my XAML I have this command (which is an AttachedCommand which I got from http://marlongrech.wordpress.com): <TextBlock Text="Edit Test Customer"> <Commands:CommandBehaviorCollection.Behaviors> <Commands:BehaviorBinding Event="MouseLeftButtonDown" Command="{Binding ClickEditTestCustomer...

VS2008 MySQL Connector/NET AccessViolationException

I've been struggling for weeks with relentless errors thrown either by VS2008 or MySQL Connector/NET. These errors appear sort of randomly while messing with Visual Studio's Dataset Designer and, as soon as it starts, it won't stop; It even prevents from saving the XSD file. A pop-up shows: Attempted to read or write protected memor...

Is summary necessary in unit test method

Since the naming of a unit test method makes its purpose more meaningful, is it necessary to add a summary to a unit test method? Example: /// <summary> /// Check the FormatException should be thrown when a give country data line contains a invalid number. /// </summary> [TestMethod] public void FormatException_Should_Thrown_When_Parse...

Make already opened instance of VS-Express open a file

Hey, I'm looking at creative ways to find all open instances of visual studio express, pick the one I like best (based on the currently opened solution), and then tell that instance to open a specific file. You can do this all trough COM and EnvDTE with visual studio pro, and I'm hoping to find an alternative way for VisualStudio Expr...

Visual Studio 2008 Addin to add a menu item in Project Popup menu

I am trying to create a Addin for Visual Studio 2008 IDE. First step in that is to add a menu item in the Project Context menu in the Project Explorer (where I want to add a menu item named "Add My Reference" along with "Add Reference" and "Add Web Reference" menus) I am able to add the a menu item to Main menu Project Commandbar but no...

Is it possible for an unmanaged C++ app to only load the CLR when it needs managed types?

More to the point, I have a native C++ application, that may never need to use managed types. I would like the CLR to remain unloaded until I the codepath that actually depends on managed types is actually hit. I was trying to accomplish this using the /clr switch in Visual Studio 2005, but as far as I can tell as soon as I use that swi...

How do I turn on multi-CPU/Core C++ compiles in the Visual Studio IDE (2008)?

I have a Visual Studio 2008 C++ project that has support for using multiple CPUs/cores when compiling. In the VCPROJ file I see this: <Tool Name="VCCLCompilerTool" AdditionalOptions="/MP" ... I can't find where that was turned added via the IDE and I want to set up another project that uses all of my cores during compilat...

TemplateInstance.Single breaks aspx designer file

In Visual Studio 2008 I am trying to modify a UserControl to support TemplatInstance.Single. However, with that value the IDE no longer is able to update the designer file when new controls are added -- any controls, not just those inside the template of the UserControl. [PersistenceMode(PersistenceMode.InnerProperty)] [Browsable(false)...

Using Visual Studio or Resharper, can I jump to the .aspx page while in the code behind?

Using Visual Studio or Resharper, can I jump to the .aspx page while in the code behind? ...

Visual Studio 2008 remote debugging disabled? (no "Remote" transport)

Hi, has anyone seen this happen before? I need to do remote debugging but don't seem to have the option to use it. When I load Visual Studio 2008 and go into the Tools > Attach to Process menu, the only Transport that is listed (first dropdown) is "Default". That means that I can't switch to the "Remote (Native Only)" transport I woul...

BaseOutputPath bug in Visual Studio 2008?

MSDN: BaseOutputPath: Specifies the base path for the output file. If it is set, MSBuild will use OutputPath = $(BaseOutputPath)\$(Configuration)\ I tried to use the MSBuild Project Property BaseOutputPath instead of specifying OutputPath for every configuration & platform combination but Visual Studio complains when I compile:...

Can you edit resx files with Visual Web Developer?

Simple question, but I am not allowed to install this program at work to test it out. Does it work just like Visual Studio for editing resx files? ...

automatically copy a config file from referenced dll

I have 2 projects in my VS2005 solution: Exe.csproj and Dll.csproj Dll.csproj has an app.config Exe.csproj has a project reference to Dll.csproj If I compile Exe.csproj, than Dll.dll and Dll.pdb will be automatically copied to Exe/bin/debug, but Dll.dll.config not. Is there any way to get Dll.dll.config in Exe/bin/debug without post ...

Best Practices Using Git with Visual Studio?

I'm considering migrating from Subversion to Git at work, and would like to get opinions about the best way to set up Git on Windows, and any problems that might arise from the combination of Visual Studio and Git. The current setup is TortoiseSVN, with Visual Studio 2008 and AnkhSVN for .NET applications. The replacement would probably...