visual-studio

Maven equivalent for .Net

For me, the best feature in Maven is not having to keep 3rd party libraries at part of the source tree. Is there a tool for .Net/Visual Studio that does something like that? ...

How to downgrade from SQL Server Express 2008 to SQL Server Express 2005?

Hi friends, I was using Visual Studio 2008, and I use service based database, then one day I installed Visual Studio C# Express 2010, which automatically upgraded my SQL Server the 2008 Express edition. But I want to use Visual Studio 2008, but it does not support SQL Server 2008. So, please give me the method to downgrade from SQL Ser...

Visual Studio C# projects: how to place conditional references in .csproj?

Hello, I'm working on an open source project (Logbus-ng), and I need to implement a web service spawned by a console application in a way that works both on Windows and Mono. Currently, thanks to the tutorial by MSDN Magazine, I succeeded in doing this on Windows. A console application can spawn its own web server and actually open a we...

Visual Studio Debugging

I just installed windows 7 64 bit I cannot debug an app in Visual studio using the Cassini web server. I have attempted to use firefox, chrome and IE and nothing will let me connect in debug mode. As anyone seen this issue before? All make it appear as though the website does just not exist. EDIT: I cant even get a aspx page to displ...

How can I get a collection of the assemblies in my .NET solution?

Hi, For a .NET solution, is there a way to get all the .dll files for each project in the solution? For example, if I make an empty .NET solution (this is Visual Studio 2010 btw), and add 3 projects called "a", "b" and "c", and build each, providing me with dll's a.dll, b.dll, and c.dll, is there any code sample in either C# or Powershe...

Unnecessary locking in STL? (Visual C++ Express)

I'm trying to build a Tetris AI algorithm that can scale over multiple cores. In my tests it turns out that using multiple threads is slower than using a single thread. After some research I found that my threads spend most of their time waiting for _Lockit _Lock(_LOCK_DEBUG). Here's a screenshot. As you can see, the lock is applied o...

How to use CUDA constant memory in a programmer pleasant way?

I'm working on a number crunching app using the CUDA framework. I have some static data that should be accessible to all threads, so I've put it in constant memory like this: __device__ __constant__ CaseParams deviceCaseParams; I use the call cudaMemcpyToSymbol to transfer these params from the host to the device: void copyMetaData(C...

Delete additional files when cleaning project

When executing build->clean solution in Visual Studio 2005 I want to also remove some debug text files that may exist in my build directory. The file name will always be the same, i.e. debug.txt. Is there a way to get Visual Studio to do this? ...

arabic text box

hi every one. i develop a web site some fields entered in English and others entered in Arabic language,, now i wanna to simplify the input operation for the user ,i wanna arabic textbox as a DLL ,, i have one but it works only with IE not with firefox or google chrome .. thanks so much ...

Visual Studio Setup Project Localization of System Controls

I'm trying to create a Setup using Visual Studio Setup Project. A mistake, but there's legacy work to consider here. Generally speaking, these projects do not support localization. However, almost all the Setups I've seen have some basic localization i.e., controls such as the Next button show the localized text. My setup project shows...

Viewing CSS Intellisense in partial views and Content pages - Visual Studio 2010?

I am trying to figure out how to get Intellisense for CSS to render when in a partial view or a content page. Of course I don't want it to render a runtime, as the css comes from the masterpage. I found this trick.... <%if (false) {%> <link rel="Stylesheet" href="styles.css"/> <%}%> But is there a better option? ...

How to use a C++ library in a C# app?

Thus far I've figured out out I needed to recompile the library as a .dll instead of a .lib, enable /clr and /EHa instead of /EHsc. Now I've got a managed dll which I've added as a reference in my C# project. Now how do I use it? I'm prepared to write some wrappers, but I don't know where to begin or how to "see" what functions I've ga...

space after function in visual studio ide

How can I set up the designed in visual studio to put a space after my javascript functions? At present when I press the return key I get this var myfunc = function() { .... }; When I want this var myfunc = function () { .... }; Know its a setting somewhere but cant find it - will help with my JSlinting! ...

Removing an installed shortcut when application is uninstalled in Visual Studio 2008

Hi guys, I have a Visual Studio deployment project that installs my application. For this application, I create a shortcut and then place shortcut into a special folder. I would like this shortcut to be deleted when the application is uninstalled. Is there any way to do this without resorting to custom actions? Thanks, kreb ...

Make Visual Studio add-in form always on top

I'm developing an add-in for Visual Studio 2010, the add-in consists of a form with some controls. I want my form to stay on top of the calling VS instance, but not the top of all the running applications. The form should not be modal, the ideal solution would be that the form would stay visible when the calling VS is the active window, ...

C# - Process redirected output - Console different to CMD window

I have an application with a Process that use a cmd program. The Process's output is redirect like so: pr.StartInfo.RedirectStandardOutput = true; pr.StartInfo.UseShellExecute = false; pr.StartInfo.CreateNoWindow = true; pr.EnableRaisingEvents = true pr.StartInfo.WindowStyle = ProcessWindowStyle....

Visual Studio: "This document is opened by another project"

I spend most of my time developing controls for both WPF and Silverlight using the same codebase. To do this I add existing files from one project (say Silverlight) "as links" to the other (say WPF). For minor differences I use preprocessor directives like #if SILVERLIGHT ... #else ... #endif The code in these blocks is grayed out dep...

Is it appropriate to use MFCs PropertySheet for a TDI-application?

I think it is possible to write a TDI-Application with MFCs CPropertySheet class. Is this the right way to do it, or is there a standard way with not using this class? It should also be possible to include a status-, menu- and toolbar into the application. Thanks! ...

VSPackage: Modify toolbar button text/tooltip at runtime

I have been developing a Visual Studio extension as an Add-in for VS2008/2010. The new version now is to be done as a VSIX package for VS2010 only (as it has to be .NET 4 anyway), and I am having some troubles with (rather simple, I would think) UI handling. The extension primarily consists of a toolbar with some buttons that launch var...

Win32 GetOpenFileName prevents app from exiting

Hi, I'm using Win32 with C++ to make an app that can load the contents of files through a dialog with the GetOpenFileName function. Everything works fine, except when I close the main window and the app quits and prints this to the console: The thread 'Win32 Thread' (0xa50) has exited with code 0 (0x0). But the main process keeps runn...