Skip to content

Commit

Permalink
Changed runbuild.ps1 to use the current year of the system for the co…
Browse files Browse the repository at this point in the history
…pyright date so it doesn't have to be updated when the year changes.
  • Loading branch information
NightOwl888 committed Mar 23, 2014
1 parent 387118a commit febc0d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/runbuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ task Init -description "This tasks makes sure the build environment is correctly
Ensure-Directory-Exists "$build_directory\test.temp"
Copy-Item "$source_directory\Shared\CommonAssemblyInfo.cs" "$build_directory\CommonAssemblyInfo.cs"

#Get the current year from the system
$year = [DateTime]::Today.Year

Generate-Assembly-Info `
-file "$source_directory\Shared\CommonAssemblyInfo.cs" `
-company "MvcSiteMapProvider" `
-version $version `
-packageVersion $packageVersion `
-copyright "Copyright © MvcSiteMapProvider 2009 - 2013"
-copyright "Copyright © MvcSiteMapProvider 2009 - $year"
}

task Restore -depends Clean -description "This task runs NuGet package restore" {
Expand Down

0 comments on commit febc0d8

Please sign in to comment.