Generating AssemblyInfo files with Gulp

When changing a project’s build script over to Gulpjs, I ran into a problem with one step - creating an AssemblyInfo.cs file. My projects have their version number in the package.json file, and I read that at compile time, pull in some information from the build server, and write that to an AssemblyVersion.cs file. This file is not tracked by git, and I don’t want it showing up as a modification if you run the build script locally....

November 19, 2015 · 2 min