Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » .Net Framework » How to   (RSS)

How to Programmatically Modify the IIS Virtual Directory

If you have more than a dozen web servers in a cluster with identical setting, and you need to update the virtual directory, it is much more convenient to write a simple program to update it. This example shows how to do it. In this case, this snippet

How to Create Custom Event Log for Windows Service

When you created a Windows Service, you usually add a Service Installer to allow this service to be installed using InstallUtil or installing it programmatically like this post shows you. The service installer will create the Event Log for the service,

How to Install Windows Service Programmatically

Sometimes you may want to install a Windows Service programmatically, but the target machine does not have InstallUtil.exe. To install a Windows Service programmatically, you can build an application to install that Windows Service. Add a reference to

How to Install Assemblies to the GAC Programmatically?

You can add or remove assemblies from the GAC using code. You can use Publish.GacInstall method to install an assembly to the GAC, or Publish.GacRemove method to remove that assembly from the GAC. If you are using Vista, and enable UAC, you have to run

How to Convert a list of Object/String to an Array Using LINQ?

This is something that I really like, I can convert a list of objects into an array of something. I had a need to convert a list of string into an array of string, of course it can be done easily in several different ways, creating an array of int, converting
Posted by HelloWorld | 1 Comments
Filed under: , ,

How to Build TFS Build Locally?

If you need to test your TFS build after playing around with the TFSBuild.proj, you can do that by do the following: Synchronize the source control to your workspace. Open Visual Studio 2005 Command Prompt (or Visual Studio 2008 Command Prompt), located

How to Make Sure InstallState Files Are Removed After Uninstall?

If you are building setup using Visual Studio and you have several custom actions and you noticed you see one or more .InstallState files in the target path after uninstall, most likely you have added your custom action to the Install custom action, but
 
Page view tracker