Archive for the ‘Visual Studio’ Category

How to add .snk file to Project from Common folder

In the current application, I have nearly 200 projects and needs to be strong named all of them to ensure the best to the project.

I have used the below steps to ensure that the team needs to use only one .snk file across the application projects. In general, if you strong name the appliation in a single project, the copy of the .snk file will be created in each project.

With the below, you don’t need to have multiple copies and multiple public key tokens for the same version of the project.

Assumption: You already have the .snk file created

  1. Create a project in Visual Studio.
  2. Right click on the project name and select existing item.
  3. Image
  4. Add an existing .snk file to the project as a link.
  5. Image
  6. Refer the added .snk file from the signing tab.
  7. Image
  8. Build the project.
  9. You need to repeat the same steps for all the projects in your application.

You are good to go..!!

Hope this helps. Happy coding.. 🙂

~ Gangadhar Kotu


How to avoid ‘Run as Administrator’ in Windows7?

Am sure most of you are frustrated to use ‘Run as Administrator’ for many tools in Windows7. Below are the steps to avoid using ‘Run as Administrator’ option for any application running in Windows 7 and let’s make the application run under administrative privileges by default.

To set this property, just right-click on any shortcut, and click the Advanced button on the Shortcut page to get to the Advanced Properties dialog.

You’ll see a dialog with a checkbox for “Run as administrator”.

Now on, the application runs under administrative privileges by default.


Gangadhar Kotu

How to change default environment settings in Visual Studio?

Here are the simple steps to change the default environment settings in the Visual Studio.

Use the Import and Export Setting Wizard:

1. Choose Tools -> Import and Export Settings
2. Select Reset All Settings and click Next
3. Select whether you would like to save the current settings and click Next
4. Select the settings you want to use and click Finish

Gangadhar Kotu