Source

IronPython.Zlib / default.ps1

Diff from to

default.ps1

 
 task Default -Depends Build,Test
 
-task Build {
+task GenVersion {
+    $template = @"
+namespace $ProjectName
+{
+    class AssemblyInfo
+    {
+        internal const string Version = "$ProjectVersion";
+    }
+}
+"@
+    
+    $template | Out-File 'src\Version.cs'
+}
+
+task Build -Depends GenVersion {
     exec { 
         msbuild /nologo /verbosity:minimal "$ProjectPath" `
             /t:Build `