Sharing configuration files

Update: Git has a very useful ‘include’ facility to make sharing common configuration a pretty simple process. In your ~\.gitconfig: [include] path = “c:/users/charles/dropbox/git/commonConfig” Place this line early in .gitconfig; any settings in the common config file that need to be overridden on a particular computer can be included later in the local .gitconfig. Be …

Continue reading ‘Sharing configuration files’ »

Build Events per Configuration

I probably just overlooked it, or couldn’t figure out how to work it, but it appears that Build Events for a project are not connected to a configuration. Since I want a “Deploy” config that copies files somewhere after a build, and a “No_Deploy” config that doesn’t, I started digging into the .csproj file. The …

Continue reading ‘Build Events per Configuration’ »

PowerShell script to install Custom Gallery for Doc. AutoSave

I got a note regarding the Visual Studio AutoSave extension saying they wished installing it were simpler.  I suspect they were referring to having to set up the custom gallery, rather than being able to get it from the Microsoft gallery. I’m not ready to put it in the Microsoft gallery yet, so I toggled …

Continue reading ‘PowerShell script to install Custom Gallery for Doc. AutoSave’ »

Visual Studio AutoSave extension updated

Added an option to autosave Projects. See the Utilities page for details. Possible Issue:  I have been noticing strange behavior with the release build of the package installed in VS2013 running on Win8.1 — the menu text does not update as expected.  The extension works as desired, but it is confusing since the menu text …

Continue reading ‘Visual Studio AutoSave extension updated’ »

Build VisStudio projects from PowerShell Console

I like being able to build projects and solutions from the command line.  That is easy enough to do from a “Developer Command Prompt”, as that sets up all the necessary environment variables (via vsvars32.bat). However, I have long preferred TakeCommand/TCC to cmd.exe, so I created a .bat file for TakeCommand that called vsvars32 (if …

Continue reading ‘Build VisStudio projects from PowerShell Console’ »

PowerShell in VS2013

The Package Manager Console is an instance of PowerShell in a tool window. You can get your full PowerShell environment by  manually running your startup script: > cd $env:Home\Documents\WindowsPowerShell  # you may need to use $env:USERPROFILE > . Microsoft.PowerShell_profile.ps1 (Of course, use the name of your startup script…) I use posh-git with PowrShell, and now …

Continue reading ‘PowerShell in VS2013’ »

Document AutoSave for Visual Studio

For many years I used CodeWright, and then SlickEdit, for all my editing. Both of those had a very useful feature:  Save Files on loss of focus. As Visual Studio improved, I started using it more and more, and missed that autosave feature.  So, a few years ago, I wrote an AddIn for VisualStudio 2010 that …

Continue reading ‘Document AutoSave for Visual Studio’ »