Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts
Wednesday, November 14, 2012

Get Public Key Token From Visual Studio

To add a command within Visual Studio

  • Got to Tools and then select External Tools
  • Click Add Button
  • Name it what ever you want, I name it “Get SN Token”
  • on Command text, select following location

    C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\sn.exe

  • On Arguments, type following

    -Tp $(TargetPath)

image

Friday, February 5, 2010

Dynamically Change Environment Specific Web.Config file

When ever we develop ASP.NET application, we keep our entire environmental specific settings into web.config file. Based on where we deploy the application (Dev, Test, Prod), we will comment out other environments which is a manually process. Personally I prefer different web.config files for different environments and based on the Build option you select it should dynamically create the appropriate web.config file for that environment.