VS 2010

From Richard's Wiki
Jump to: navigation, search
In Summary -
Installer will automatically read the information like organization, user from the registry key.
For organization, it seems to read the value of "RegisteredOrganization" key under "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion".
For user, it seems to read the value of "RegisteredOwner"under "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion".
Remove VS2010 to start from scratch.
Then go to these two registry keys mentioned above and change the value as you want. After that, run the installer to setup VS2010 again.
  • To run a powershell script as post-build:
Add the postbuild.ps1 file from the sample project into the project root folder
Open the project properties page and in the Build Events section put this in the “Post-build event command line” text box:
PowerShell -command "set-executionpolicy -ExecutionPolicy bypass"
PowerShell -command "$(ProjectDir)postbuild.ps1" '$(SolutionDir)' '$(ProjectDir)' '$(TargetDir)' '$(TargetFileName)' '$(ConfigurationName)'
Note the huge security hole in setting execution policy system-wide.
  • See localhost traffic in Fiddler when debugging VS2010 web project, easiest way is to use http://ipv4.fiddler to hit localhost on the IPv4 adapter, or use http://ipv6.fiddler to hit localhost on the IPv6 adapter. This works especially well with the Visual Studio test webserver (codename: Cassini) because the test server only listens on the IPv4 loopback adapter. Alternatively look at section "Why don't I see traffic sent to http://localhost or http://127.0.0.1?" in http://www.bayden.com/fiddler/help/hookup.asp