visual-studio

How do I compile a 64-bit native C++ DLL in VS 2008?

I'm trying to port a native ATL C++ in-proc COM server to 64 bit in Visual Studio 2008. I've opened the Configuration Manager, added "x64" platform. Now I have 6 configurations - 3 for Win32 that compile and link fine and 3 for x64 that compile fine, but make the linker emit the following error: \Debug64\Objects\common.obj : fatal error...

What does Visual Studio offer that Monodevelop lacks?

What would a developer used to working in Visual Studio have to give up if they switched to Monodevelop? This hypothetical developer most often develops ASP.NET web applications with C#. I'm aware that Monodevelop has the basic Visual Studio features like syntax highlighting and support for Visual Studio solutions. What are the deficien...

Run exe after msi installation?

Using Visual Studio 2008 to create an msi to deploy my program with a setup project. I need to know how to make the msi run the exe it just installed. A custom action? If so please explain where/how. Thanks. ...

Setting display in .NET code

I have a modal popup with a formview with a default mode of Edit. The controls inside the form are bound to data. I have JavaScript that shows a textbox and a label only if a certain value is selected from a dropdownlist. I want to do this on load also. <tr> <td align="left"> <asp:DropDownList ID=...

Visual Studio 2008 on an External Hard Drive?

My laptop had an install error with Vista Ultimate and now it does not let me run Visual Studio. I was able to install Visual Studio 2008 on my HP TouchSmart without a problem and now I use it on there. I want to be able to travel though. So I was wondering if I take the folder in which Visual Studio was installed and put it on my extern...

TextTransform.exe seems to only accept an older version of C#

When I expand T4 templates inside Visual Studio, I can use the full C# 3.0 syntax, including LINQ expressions, etc. When I expand it outside Visual Studio using TextTransform.exe it complains about LINQ expressions and other new features of C# 3.0. Is there a newer version of TextTransform.exe? The one I'm running is in: C:\Program F...

Trouble with visual studio file extensions (.vdproj)

I'm trying to open an open source project and I'm getting an error when trying to open a certain component of the project. I'm using Visual Studio C# 2008 Express Edition and I'm opening a .sln file. That part of the file opens fine, but when I enter the IDE I'm greeted immediately with the error: ...DinamapSetup.vdproj' cannot be op...

detect duplicate insert

Is there an easier way to prevent a duplicate insert after refresh? The way I do it now is to select everything with the all fields except ID as parameters; if a record exists i don't insert. Is there a way to possible detect refresh? ...

VS 2003 After build target

Hi - I have a huge solution with more than 20 projects (Included with the main vbproj thro project references)I'm trying to get rid of project references and use dll reference instead to improve the build performance. Visual Studio .Net 2003 doesn’t have a inbuilt PostBuild event to move a compiled dll’s to a central folder location whe...

How to call a custom Visual Studio Wizard from Command Line?

We have a Visual Studio Wizard written using the DTE environment to automatically generate code, templates, etc.. based off some custom database stuff. Right now it brings up a few dialogs, collects information, and then uses the EnvDTE class to generate the code and format it. Given that I have the information collected from the dialog...

Turning Resharper on/off

Can I switch reshaper on/off in a simple manner. The issue is sometimes I dealing with big files and makes my VS slow, sometimes it pops out a message telling me resharper is out of memory. Can I active/deactive it without having to reload the solution? ...

Visual Studio - Current file in Solution Explorer - Make it darker?

I don't want to change the entire background color of solution explorer in VS, only the selected file. Hints? Thanks. ...

Keyboard Assignment in Visual Studio

Every now and then my keyboard in Visual Studio gets all screwy. For example Shift + 3 inserts a pound symbol instead of a hash #. Shift + \ inserts a tilde ~ instead of a pipe |. When this happens it only affects the current instance of VS - even if I have multiple VS windows open. Only VS is affected - Notepad and other windows app...

Visual Studio: Test ClassCleanup Timeout When Executing A Batch File

My aim is to restore an Oracle database back to it's previous state after a lot of unit tests have been run by using flashback recovery using the ClassCleanup attribute. I have written a batch file + SQL to properly restore the database. This has been tested in my command prompt numerous times without issues I would normally put the re...

Visual Studio pre-build scripts can't find exe files in windows/system32

I'm stumped. All of a sudden Visual Studio cannot find exe files in the Windows/System32 directory (such as xcopy, attrib etc). I have some pre-build and post-build events that execute batch files that use xcopy and attrib. Previously they were working fine but today, during the build process, Visual Studio cannot find them. The error i...

How do I get Visual Studio to add a open source license at the top of each file

How do I get Resharper to add a open source license at the top of each file? ...

State of VBScript tooling - anything new in Visual Studio 2010?

What is the preferred environment for authoring VBScript and/or building script solutions for the Windows Script Host? Since I have a MSDN subscription, I could choose something from Microsoft, but 3rd party tools aren't excluded, either. (Below some background, mainly optional reading - the above question still remains.) I wasn't plan...

Easily select default usings for project namespaces and subamespaces

Is there an easy way in Visual Studio to assign default usings when i make a new file in a certain (sub)namespace in my project? ...

WCF webservice running on a two server cluster, with loadbalancer, resolving web service address

Hi All, Apologies for the long winded title but looking for a solution to what might be a common problem. We have a loadbalancer with address, say: www.myloadbalancer.com Below is two web servers First server: webserver1.farm.com Second server: webserver2.farm.com We deployed a webservice on to the two servers but noticed something ...

Visual Studio Solution behavior in XCode

Is it possible to have multiple projects in one xcode project all accessible for simultaneous development? Specific situation is to have an application and middleware library under simultaneous development in XCode: all source is accessible for modification (both app's and lib's) but library code is building into library and linking to ...