visual-studio

Embedding a file into C# .NET application and then reading it in slowly?

I have a rather large resource (2MB) that I'm embedding into my C# application ... I want to know read it into memory and then write it to disk to use it for later processing? I've embedded the resource into my project as build setting Any sample piece of code will help me startup. ...

Free install system with GUI

Hello. Is there any free install system with a GUI interface? I found one - Advanced Installer, but free edition is too limited, I even can't show EULA. Other free tools like NSIS, WiX... are scripting only. I got no extra time to dig into new scripting language, or whatever time consuming activities. Currently I'm using default Visual...

How to stop Visual Studio caching Imported MSBuild scripts?

I have a csproj file which references a shared MSBuild script with an <Import> directive. I have noticed that when I change the shared script, I need to close and reopen Visual Studio before it notices the change - a build within Visual Studio notices changes to the csproj file but not the shared file. This doesn't happen when I build ...

SVN keeps corrupting files with "<<<<<<< .mine", how to fix?

Hello, I've got a Visual Studio C# project which is under version control (SVN). I've always commited and updated the project without any problems. But a couple of hours ago Visual Studio throws the following error when I try to launch/rebuild the project: Files has invalid value "<<<<<<< .mine". Illegal characters in path. I don...

"The source file is different...." message in Visual Studio 2008 is result of debugging x32 apps on x64 Windows.

Hi, I'm writing ADO.NET provider. For debugging I use class DbProviderFactories.GetFactory method. This method constructs my inherited DbProviderFactory class that i use for create DbConnection inheritor of my provider and etc.. When I try set breakpoint in my provider code I sow it isn't work - execution doesn't stopped. When I throw ex...

Global VS configuration: how to avoid opening 99 project properties pages

We have a VS solution with 99 projects. I'd like to extract XML documentation for them. So far, the only procedure I've found involves several hundred mouse clicks; e.g. open each project properties page, one by one, find the "Generate documentation" check box, and click it. The default filename is fine. Worse: I have to do that tw...

Free / Open Source Windows Fortran Compiler Compatable with Visual Studio

I'm trying to link in some legacy Fortran code with a Visual Studio C++ project. I tried using the Windows build of gfortran to build my static library but Visual Studio complains about unresolved external symbols. I guessing this is because mixing mingw and visual studio compilers is a horrible, horrible idea. I've googled a bit an...

Debugging x86 .NET application on Windows x64

I use the x64 version of Windows 7. My application use some COM servers (usual native x86 COM Servers) that can't be loaded in x64 context. So I decided run it as a x86 application using WOW so I set platform target as x86. But Visual Studio debugger started to show messages like "The source file is different...." for all source files w...

issues with porting a DLL C++ class library to Visual Studio

Hi there. I wrote a class library in C++ and successfully compiled it in Linux with g++ as a shared object, then created a few apps that use it. Now I have to port it to VS2008. I gave all the classes the required __declspec(dllexport) prefixes, then tried to compile it. I get a pile of warnings, which basically have to do with: my cu...

Visual C# 2010 MSVCR100.dll missing when opening a project...tried EVERYTHING!

I installed Visual C# 2010 Beta 2 and I get this error every time I open a project: 'This application has failed to start because MSVCR100.dll was not found. Reinstalling the application may fix the problem' I uninstalled every VC runtime, .NET framework, C# on this computer. Then reinstalled Visual C# 2010 and the install went smoothl...

one DLL, multiple projects?

Is it possible to force my C# solution file to make a single DLL containing all the projects in the solution, instead of one DLL per project? This dude says that isn't possible but I notice that's a post from 2004. I'm using Visual Studio 2008 Team System and it's a C# application. ...

Debugging Monitor.Enter, Monitor.Exit. How?

Is there anyway to see what objects have had locks placed on them in the visual studio IDE? ...

Get functions in VS using macros

How to get all the functions you have in a code file in Visual Studio using VS macros? I`m using Visual Studio 2008. Also I need to get whether function is private protected or public. For now I know I can just parse the code and check it on my own, but I want to make it in a proper way and think vs macros environment should allow know...

Asp + code behind: reference missing ?

I'm currently working on a project I've just received that is asp.net + vb. I have to add a gridview in one part of the page, but it simply won't let me set the datasource <%@ Page Language="VB" MasterPageFile="~/Common/Common.master" title=whatever" %> <%@ Register TagPrefix="uct" TagName="SubmenuControl" Src="whatever.ascx" %> this ...

Visual Studio 2008 / C# : How to find dead code in a project?

How do I find dead code in a Visual Studio 2008 C# project? Like unused classes, unused variables or unused resources? ...

A first chance exception

Hello all I have a project that runs perfect under windows xp. Now I have tried to run it under Windows 7 and got there a lot of exceptions under Immediate window. A first chance exception of type 'System.ArgumentNullException' occurred in Microsoft.VisualBasic.dll A first chance exception of type 'System.IO.FileNotFoundException' oc...

How do I enter the duplicate bug id when resolving a bug as duplicate in VSTS 2010?

The closest thing I can see is somehow linking to the other bug (work item). It would be nice if you chose Reason=>Duplicate if you had to enter the duplicate bug id as well. ...

Visual Studio VB pretty listing settings

Does anyone know how to stop Visual Studio VB.NET editor from changing my beautiful scientific notation numbers into hideous decimal notation? It seems that this is part of "Pretty Listing" (single checkbox in the options). I'd like to keep the other features of pretty listing, I just don't want to have to stare at 0.0000000000000001 wh...

how can i register the events when the visual studio document actived?

i have a toolwindowpane, i will display some property when user click my custom document editor (which i designed for some document such as ".uml" files) but how do i know user switch document back and force ,cause i want to display that actived document when switched... anyone knows ? ...

One of my projects does not compile unless I am using Debug mode

Hi, I am having difficulties compiling the test project in my .NET solution solution when using any configuration other than "Debug". I am using a third party assembly (Ninject), the assembly is referenced as usual in my project settings. It works fine in Debug mode, but when switching to relase I get this error: Error 13 The type ...