Powershell script to batch-update AssemblyInfo.cs with new Version

Posted by: All About Interop, on 21 Apr 2008 | View original | Bookmarked: 0 time(s)

Maybe someone can learn from this. # SetVersion.ps1 # # Set the version in All the AssemblyInfo.cs files in any subdirectory. # # last saved Time-stamp: <Saturday, April 19, 2008 14:16:01 (by dinoch)> # function Update-SourceVersion { Param ([string]$Version) $NewVersion = 'AssemblyVersion("' + $Version + '")'; $NewFileVersion = 'AssemblyFileVersion("' + $Version + '")'; foreach ($o in $input) { $NewFile = [System.IO.Path]::Combine($o.DirectoryName, "AssemblyInfo.cs");...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1462 | Hits: 69

Similar Posts

  • Utilizing the Microsoft AJAX Framework and ClientAPI to Develop Rich Modules: Part II more
  • Using Assert.AreSame more
  • DataTable JSON Serialization in JSON.NET and JavaScriptSerializer more
  • Batch JavaScript Libraries for Increased Performance more
  • West Wind Ajax Toolkit updated more
  • WebUI Studio.NET 2008 R1 SP2 is now available more
  • Updating Silverlight.js and Firefox 3 more
  • DotNetZip, open source library for .ZIP files, revs to v1.5 - nice ASP.NET capability more
  • Variable Scoping in Anonymous Delegates in C# more
  • Emacs is better than Visual Studio as a C# Development Tool?!! more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD