visual-studio

Possible to turn off App_Code auto-compile?

Working with Visual Studio (I'm using 2008) I have started to notice that when you save a file in the /App_Code folder, the program will hang for a bit before returning control. After a bit of research, I have learned that there's an auto-compile feature at work, which I assume is what is slowing down my system. So the question is this...

Visual Studio setup project along-side self-updating logic?

I'm looking to implement a setup package for my multi-project solution that installs a Windows Service as well as a Winforms application. Both the service and the application have an ability to update themselves via a custom web-based utility that I wrote. So basically, the Windows service updates its own DLL's on a regular basis if it ...

Any unzip-and-run Visual-Studio or third party free tool?

I usually use ClickOnce as my publication method, but I hate sending a bunch of files to people and having to say "Please unzip and run setup". All I need to do is this simple thing. A program that puts all files together in a single file, then unzip them to a temp folder and runs Setup. I haven't check very deep in Visual Studio feature...

How to import an ASP.NET MVC app from VisualStudio to SharpDevelop ?

I'd like to import an ASP.NET MVC 2 app from Visual Studio 2008 to SharpDevelop v4.0. I'm using: * Windows 7 * IIS 7.5 * .net SDK v4.0 * VisualStudio 2008 * MVC 2 * SharpDevelop v4.0 Beta r6767 Thanks a bunch beforehand ...

When I Branch from Trunk I need to create a new Virtual Directory. Anyway around this?

the Trunk of my app points to <IISUrl>http:///localhost/MyApp/&lt;/IISUrl&gt; Whenever I create a new branch, I end up having to edit MyApp.csproj to change the target URL to <IISUrl>http:///localhost/MyAppBranchName/&lt;/IISUrl&gt; Is there any way that I don't need to do this? The reason is the number of branches are starting t...

Visual Studio - error LNK2005 in debug mode

I'm integrating 3rd party code into my MFC app under Visual Studio 2010.When in Debug mode the following build error occurs: 1>LIBCMT.lib(invarg.obj) : error LNK2005: __initp_misc_invarg already defined in libcmtd.lib(invarg.obj) 1>LIBCMT.lib(invarg.obj) : error LNK2005: __call_reportfault already defined in libcmtd.lib(invarg.obj) 1>LI...

"Test with debugger" in ReSharper?

"TestDriven.NET" has a great feature called "test with debugger". Is there anything like this in ReSharper? Tried googling this, but can't find anything. ...

Running multiple T4 Templates with a single click

I have some 6 T4 templates spread through my solution in different projects, is it possible to run them all with a single click or do I necessarily need to go through them one by one? ...

Where are logs for witadmin actions in TFS 2010?

When running the witadmin command from the Visual Studio 2010 Command Line, where is this action logged in TFS 2010? An example command would be: C:>witadmin exportwitd -collection:http://server:8080/tfs/projectcollection -p:TeamProject -n:Bug -f:c:\Bug.xml ...

one sub procedure / change text color in rich text box / without button handler

Hello, everyone! I've been at this for a while, and I'm not sure how this issue can be resolved: I'm working on a project in VB.Net, and I have a form with a rich text box. I have a groupbox with 4 radio buttons inside that are intended to change the font color of the text. Coincidentally, I have to repeat this same functionality for a ...

Referencing an object using a variable string in Visual Basic 2010

I have several sets of similar objects (labels, progress bars) on a form in Visual Basic 2010 on Windows. In my code, I have collections that contain data, which needs to be pushed into the value/text property of each. I would like to get a solution similar to PHP in that I can assign values somewhat like: For ID as Integer from 0 ...

[Closed] Enforce use of scope resolution operator when accessing base class member from derived class

I have a class Derived which is derived from class Base. In Derived's function, I can access protected members of Base. E.g., I can do this. class Base { protected: int i; } class Derived : class Base { void process() { i = 5; } } My question is, is it possible to enforce the use of scope resolution operator w...

How to open a frmWindow a second time wothout refreshing a grid in the first one?

Hy, I have a Window with a Grid that is making a select from myql, and using the .Show() function insted of ShowDialog() I can open the same window a second time to have two instances of the same window. Now, when i open the second instance the grid populates with the new selection also in the first window....how can i make the window ...

Windows Phone 7 template not found in VS 2010

I have VS 2010 Professional installed on 64bit Windows 7. I installed the Windows Phone 7 developer tools, this ran fine without any hassle: I can start the emulator. However, when I try to create a project, I can't see the templates for phone development. I searched the installed templates, but they appear to be not installed. Any comme...

I don't see any MVC templete in VS2008 (MVC RTM was installed before VS2008)

Hello, I had VWD2008 Express (and MVC RTM) in one of my machine. I've replaced it with VS2008 Professionnal. I can see on the control panel that both MVC 1.0 and MVC 2.0 are still there. But, when I try to create a project on VS2008 newly installed, I don't see any MVC template. How can I register MVC so that I can create MVC applicati...

Making Visual Studio TFS plugin store your credentials?

Every time I open Visual Studio 2008, I get a pop-up dialog prompting for my username and password ('Connecting to Team Foundation Server'). Presumably this is because I have my TFS server stored in the Team Explorer tab, in Servers, so it wants to connect to it on startup. In addition, this happens when I open a solution file whose so...

Can a VS2010 VSPackage project be installed to VS2008?

I am wondering whether the result VSIX artifact of a VSPackage project created and written in Visual Studio 2010 can be deployed to Visual Studio 2008 - provided, of course, that the package does not use/rely on any .NET 4 assemblies? Alternatively, what other paths may exist, that allow me to create an installable extension targetting ...

Select configfile during installation

Is it possible to add a custom buildaction which allows the user to select the wanted configfilesettings during installation? My issue is that I have a large configfile (and logfile) which currently includes settings for developmentmachines, testenvironments, stagingenvironments and production. I would like the installer to ask me (for ...

What is the best practice for safely change a method name in a team project?

I often get scary whenever I need to rename a method since it's very likely to break other working codes. What is the best guidance to follow when doing this? ...

How to use Microsoft.Exchange.WebServices ?

i try to use : Microsoft.Exchange.WebServices.dll to use outlook. but connection return error Error return line:service.AutodiscoverUrl("[email protected]"); The Autodiscover service could not be located. my codes: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net.Mail; using ...