Skip to content

Instantly share code, notes, and snippets.

@apetrone
Last active November 11, 2016 19:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save apetrone/a8162548152d8fc8f5b5 to your computer and use it in GitHub Desktop.
Save apetrone/a8162548152d8fc8f5b5 to your computer and use it in GitHub Desktop.
Windows tips
- Determine why Visual Studio is rebuilding a project:
-- add a block to enable debug view output (devenv.exe.config); check DebugView for the reason.
VS2010
<system.diagnostics>
<switches>
<add name="CPS" value="4" />
</switches>
</system.diagnostics>
VS2012+
<system.diagnostics>
<switches>
<add name="CPS" value="Verbose" />
</switches>
</system.diagnostics>
-- http://stackoverflow.com/questions/2762930/vs2010-always-thinks-project-is-out-of-date-but-nothing-has-changed
-- https://technet.microsoft.com/en-us/sysinternals/bb896647
- doskey for aliases ($* passes arguments):
-- doskey pegasus=X:\tools\pegasus\build.py $*
- You can Add an AutoRun key in your registry to execute a batch every boot.
- HKEY_LOCAL_MACHINE/Software/Microsoft/Command Processor
- As a Jenkins build machine, it must start with batch file to setup the Visual Studio environment
before it connects to Jenkins.
rem setup the visual studio environment
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"
rem Point java web start to the downloaded jnlp.
rem This must be previously downloaded via a web browser or else
rem the server will report 403.
javaws file:slave-agent.jnlp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment