Unified · Split
| @@ -329,9 +329,10 @@ · 328 unmodified lines | ||
| 329 | 329 | <Message Text="Getting source code..."/> |
| 330 | 330 | <Exec Command="%22$(GitClient)%22 clone %22$(GitServer)%22 ." WorkingDirectory="$(LocalFolder)"/> |
| 331 | 331 | <Exec Command="%22$(GitClient)%22 checkout %22$(GitBranch)%22" WorkingDirectory="$(LocalFolder)"/> |
| 332 | + <CallTarget Targets="CheckForChanges"/> | |
| 332 | 333 | </Target> |
| 333 | 334 | |
| 334 | − <Target Name="AfterCloneRepository" Condition="'$(ForceBuild)' != 'true'"> | |
| 335 | + <Target Name="CheckForChanges" Condition="'$(ForceBuild)' != 'true'"> | |
| 335 | 336 | <!-- Check for new changes since the last build. --> |
| 336 | 337 | <ReadLinesFromFile File="$(VersionFile)"> |
| 337 | 338 | <Output TaskParameter="Lines" ItemName="VersionNumber"/> |
| @@ -347,6 +348,7 @@ · 9 unmodified lines | ||
| 347 | 348 | <Message Text="Build is skipped - No new changes." Condition="'$(ForceBuild)' != 'true'"/> |
| 348 | 349 | </Target> |
| 349 | 350 | |
| 351 | + <Target Name="AfterCloneRepository"/> | |
| 350 | 352 | <Target Name="BeforeVersionSource"/> |
| 351 | 353 | |
| 352 | 354 | <Target Name="CoreVersionSource" Condition="'@(FilesToVersion)' != '' And '$(SkipVersioning)' != 'true'"> |
Binary file not shown.
| @@ -1,139 +0,0 @@ | ||
| 1 | −<?xml version="1.0" encoding="utf-8" ?> | |
| 2 | −<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 3 | − <!-- $Id: MSBuild.Community.Tasks.Targets 480 2009-09-22 16:49:00Z pwelter34 $ --> | |
| 4 | − | |
| 5 | − <PropertyGroup> | |
| 6 | − <MSBuildCommunityTasksLib>MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib> | |
| 7 | − </PropertyGroup> | |
| 8 | − | |
| 9 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AspNet.InstallAspNet" /> | |
| 10 | − | |
| 11 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AssemblyInfo" /> | |
| 12 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Attrib" /> | |
| 13 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Beep" /> | |
| 14 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.DeleteTree" /> | |
| 15 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlExecute" /> | |
| 16 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FileUpdate" /> | |
| 17 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FtpUpload" /> | |
| 18 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FxCop" /> | |
| 19 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.GacUtil" /> | |
| 20 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.GetSolutionProjects" /> | |
| 21 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ILMerge" /> | |
| 22 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Mail" /> | |
| 23 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Merge" /> | |
| 24 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Move" /> | |
| 25 | − | |
| 26 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpCreateRemoteDirectory" /> | |
| 27 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpDirectoryExists" /> | |
| 28 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpUploadDirectoryContent" /> | |
| 29 | − | |
| 30 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Add" /> | |
| 31 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Divide" /> | |
| 32 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Modulo" /> | |
| 33 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Multiple" /> | |
| 34 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Subtract" /> | |
| 35 | − | |
| 36 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NDoc" /> | |
| 37 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NUnit" /> | |
| 38 | − | |
| 39 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Oracle.AddTnsName" /> | |
| 40 | − | |
| 41 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Prompt" /> | |
| 42 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegistryRead" /> | |
| 43 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegistryWrite" /> | |
| 44 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexMatch" /> | |
| 45 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexReplace" /> | |
| 46 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexCompiler" /> | |
| 47 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RoboCopy" /> | |
| 48 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Script" /> | |
| 49 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ServiceController" /> | |
| 50 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ServiceQuery" /> | |
| 51 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sleep" /> | |
| 52 | − | |
| 53 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolController" /> | |
| 54 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolCreate" /> | |
| 55 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolDelete" /> | |
| 56 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryCreate" /> | |
| 57 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryDelete" /> | |
| 58 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryScriptMap" /> | |
| 59 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectorySetting" /> | |
| 60 | − | |
| 61 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Install.InstallAssembly" /> | |
| 62 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Install.UninstallAssembly" /> | |
| 63 | − | |
| 64 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Schema.TaskSchema" /> | |
| 65 | − | |
| 66 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sound" /> | |
| 67 | − | |
| 68 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssAdd" /> | |
| 69 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssCheckin" /> | |
| 70 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssCheckout" /> | |
| 71 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssClean" /> | |
| 72 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssDiff" /> | |
| 73 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssGet" /> | |
| 74 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssHistory" /> | |
| 75 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssLabel" /> | |
| 76 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssUndoCheckout" /> | |
| 77 | − | |
| 78 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.SrcTool" /> | |
| 79 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.PdbStr" /> | |
| 80 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.SvnSourceIndex" /> | |
| 81 | − | |
| 82 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlServer.ExecuteDDL" /> | |
| 83 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlServer.SqlPubWiz" /> | |
| 84 | − | |
| 85 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCheckout" /> | |
| 86 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnClient" /> | |
| 87 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCopy" /> | |
| 88 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCommit" /> | |
| 89 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnExport" /> | |
| 90 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnInfo" /> | |
| 91 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnUpdate" /> | |
| 92 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnVersion" /> | |
| 93 | − | |
| 94 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Tfs.TfsVersion" /> | |
| 95 | − | |
| 96 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.TemplateFile" /> | |
| 97 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Time" /> | |
| 98 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Unzip" /> | |
| 99 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Version" /> | |
| 100 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.WebDownload" /> | |
| 101 | − | |
| 102 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xml.XmlMassUpdate" /> | |
| 103 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xml.XmlQuery" /> | |
| 104 | − | |
| 105 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.XmlRead" /> | |
| 106 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.XmlUpdate" /> | |
| 107 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xslt" /> | |
| 108 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Zip" /> | |
| 109 | − | |
| 110 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.JavaScript.JSCompress" /> | |
| 111 | − | |
| 112 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.User" /> | |
| 113 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Computer" /> | |
| 114 | − | |
| 115 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.BuildAssembler" /> | |
| 116 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.ChmBuilder" /> | |
| 117 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.DBCSFix" /> | |
| 118 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.MRefBuilder" /> | |
| 119 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.Sandcastle" /> | |
| 120 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.XslTransform" /> | |
| 121 | − | |
| 122 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.HtmlHelp.ChmCompiler" /> | |
| 123 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.HtmlHelp.HxCompiler" /> | |
| 124 | − | |
| 125 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SymbolServer.SymStore" /> | |
| 126 | − | |
| 127 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Net.HttpRequest" /> | |
| 128 | − | |
| 129 | − <ItemGroup> | |
| 130 | − <FxCopRuleAssemblies Include="UsageRules.dll"/> | |
| 131 | − <FxCopRuleAssemblies Include="SecurityRules.dll"/> | |
| 132 | − <FxCopRuleAssemblies Include="PortabilityRules.dll"/> | |
| 133 | − <FxCopRuleAssemblies Include="PerformanceRules.dll"/> | |
| 134 | − <FxCopRuleAssemblies Include="MobilityRules.dll"/> | |
| 135 | − <FxCopRuleAssemblies Include="InteroperabilityRules.dll"/> | |
| 136 | − <FxCopRuleAssemblies Include="GlobalizationRules.dll"/> | |
| 137 | − <FxCopRuleAssemblies Include="DesignRules.dll"/> | |
| 138 | − </ItemGroup> | |
| 139 | −</Project> | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| @@ -1,108 +0,0 @@ | ||
| 1 | −<?xml version="1.0" encoding="utf-8"?> | |
| 2 | −<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 3 | − <PropertyGroup> | |
| 4 | − <ExtensionTasksPath></ExtensionTasksPath> | |
| 5 | − </PropertyGroup> | |
| 6 | − | |
| 7 | − <!-- ============== Framework ============== --> | |
| 8 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.CodeQuality.FxCop"/> | |
| 9 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Communication.Email"/> | |
| 10 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Communication.Twitter"/> | |
| 11 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Compression.Cab"/> | |
| 12 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.ActiveDirectory"/> | |
| 13 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.ComponentServices"/> | |
| 14 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.EnvironmentVariable"/> | |
| 15 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.EventLog"/> | |
| 16 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.EventSource"/> | |
| 17 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.Network"/> | |
| 18 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.PerformanceCounters"/> | |
| 19 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.Registry"/> | |
| 20 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.SystemDrive"/> | |
| 21 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.WindowsService"/> | |
| 22 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.WshShell"/> | |
| 23 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.Detokenise"/> | |
| 24 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.File"/> | |
| 25 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.FindUnder"/> | |
| 26 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.Folder"/> | |
| 27 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.Share"/> | |
| 28 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Assembly"/> | |
| 29 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.AssemblyInfo"/> | |
| 30 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.DateAndTime"/> | |
| 31 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.DynamicExecute"/> | |
| 32 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Gac"/> | |
| 33 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Guid"/> | |
| 34 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Metadata"/> | |
| 35 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.MSBuildHelper"/> | |
| 36 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.UpdateMetadata"/> | |
| 37 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Signing"/> | |
| 38 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.TextString"/> | |
| 39 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Thread"/> | |
| 40 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Management.Wmi"/> | |
| 41 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Multimedia.Sound"/> | |
| 42 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Science.Maths"/> | |
| 43 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Security.Certificate"/> | |
| 44 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.SqlServer.SqlCmd"/> | |
| 45 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.SqlServer.SqlExecute"/> | |
| 46 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.SqlServer.SqlVersion"/> | |
| 47 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.UI.Console"/> | |
| 48 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.UI.Dialog"/> | |
| 49 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.SourceSafe"/> | |
| 50 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.TfsSource"/> | |
| 51 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.TfsSourceAdmin"/> | |
| 52 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.TfsVersion"/> | |
| 53 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.VB6"/> | |
| 54 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.HttpWebRequest"/> | |
| 55 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.Iis6AppPool"/> | |
| 56 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.Iis6ServiceExtensionFile"/> | |
| 57 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.Iis6VirtualDirectory"/> | |
| 58 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.Iis6Website"/> | |
| 59 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.WebClient"/> | |
| 60 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Xml.XmlFile"/> | |
| 61 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Xml.XmlTask"/> | |
| 62 | − | |
| 63 | − | |
| 64 | − <!-- ============== BizTalk ============== --> | |
| 65 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkApplication"/> | |
| 66 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkAssembly"/> | |
| 67 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkHost"/> | |
| 68 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkHostInstance"/> | |
| 69 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkOrchestration"/> | |
| 70 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler"/> | |
| 71 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkSendPort"/> | |
| 72 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkReceiveHandler"/> | |
| 73 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkReceivePort"/> | |
| 74 | − | |
| 75 | − | |
| 76 | − <!-- ============== Iis7 ============== --> | |
| 77 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.Iis7.dll" TaskName="MSBuild.ExtensionPack.Web.Iis7Application"/> | |
| 78 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.Iis7.dll" TaskName="MSBuild.ExtensionPack.Web.Iis7AppPool"/> | |
| 79 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.Iis7.dll" TaskName="MSBuild.ExtensionPack.Web.Iis7Binding"/> | |
| 80 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.Iis7.dll" TaskName="MSBuild.ExtensionPack.Web.Iis7Website"/> | |
| 81 | − | |
| 82 | − | |
| 83 | − <!-- ============== JSharp ============== --> | |
| 84 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.JSharp.dll" TaskName="MSBuild.ExtensionPack.Compression.Zip"/> | |
| 85 | − | |
| 86 | − | |
| 87 | − <!-- ============== StyleCop ============== --> | |
| 88 | − <UsingTask AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\StyleCop\v4.3\MSBuild.ExtensionPack.StyleCop.dll" TaskName="MSBuild.ExtensionPack.CodeQuality.StyleCop"/> | |
| 89 | − | |
| 90 | − | |
| 91 | − <!-- ============== Sql2005 ============== --> | |
| 92 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sql2005.dll" TaskName="MSBuild.ExtensionPack.Sql2005.Database"/> | |
| 93 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sql2005.dll" TaskName="MSBuild.ExtensionPack.Sql2005.Server"/> | |
| 94 | − | |
| 95 | − | |
| 96 | − <!-- ============== Sql2008 ============== --> | |
| 97 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sql2008.dll" TaskName="MSBuild.ExtensionPack.Sql2008.Database"/> | |
| 98 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sql2008.dll" TaskName="MSBuild.ExtensionPack.Sql2008.Server"/> | |
| 99 | − | |
| 100 | − | |
| 101 | − <!-- ============== Sync ============== --> | |
| 102 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sync.dll" TaskName="MSBuild.ExtensionPack.FileSystem.Sync"/> | |
| 103 | − | |
| 104 | − | |
| 105 | − <!-- ============== Tfs ============== --> | |
| 106 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Tfs.dll" TaskName="MSBuild.ExtensionPack.Tfs.DevEnv"/> | |
| 107 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Tfs.dll" TaskName="MSBuild.ExtensionPack.Tfs.TeamBuild"/> | |
| 108 | −</Project> | |
| @@ -1,628 +0,0 @@ | ||
| 1 | −<?xml version="1.0" encoding="utf-8"?> | |
| 2 | − | |
| 3 | −<!-- | |
| 4 | −******************************************************************************************************* | |
| 5 | −** Master.buildproj - Gbtc | |
| 6 | −** | |
| 7 | −** Tennessee Valley Authority, 2009 | |
| 8 | −** No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved. | |
| 9 | −** | |
| 10 | −** This software is made freely available under the TVA Open Source Agreement (see below). | |
| 11 | −** | |
| 12 | −** Code Modification History: | |
| 13 | −** =================================================================================================== | |
| 14 | −** 10/05/2009 - Pinal C. Patel | |
| 15 | −** Generated original version of source code. | |
| 16 | −** 10/07/2009 - Pinal C. Patel | |
| 17 | −** Fixed a bug in deletion of unwanted files prior to deployment. | |
| 18 | −** 10/10/2009 - Pinal C. Patel | |
| 19 | −** Added the ability to compile install packages. | |
| 20 | −** Added the ability to choose the files to be versioned. | |
| 21 | −** 10/13/2009 - Pinal C. Patel | |
| 22 | −** Enabled the check for Sandcastle Builder as a required tool. | |
| 23 | −** Modified deletion of *.pdb files to be active for release builds only. | |
| 24 | −** 10/15/2009 - Pinal C. Patel | |
| 25 | −** Added unit testing to the build process. | |
| 26 | −** 10/16/2009 - Pinal C. Patel | |
| 27 | −** Modified to skip the build process in the absence of new changes since the last build. | |
| 28 | −** 10/19/2009 - Pinal C. Patel | |
| 29 | −** Modified to allow archiving of binaries and installs for easy access. | |
| 30 | −** 04/27/2010 - Pinal C. Patel | |
| 31 | −** Modified to automatically force a build when a specific version is being built. | |
| 32 | −** 04/28/2010 - Pinal C. Patel | |
| 33 | −** Modified ProjectsToBuild to include an optional Properties property that can be used to | |
| 34 | −** override project properties during the build process. | |
| 35 | −** 09/15/2010 - Mihir Brahmbhatt | |
| 36 | −** Modified the build script for Framework v4.0 and change CorePopulateWorkspace | |
| 37 | −** Added CheckForChanges as sub targets for CorePopulateWorkspace target property | |
| 38 | −** | |
| 39 | −******************************************************************************************************* | |
| 40 | −--> | |
| 41 | − | |
| 42 | −<!--<Project DefaultTargets="All" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 43 | − | |
| 44 | − <Import Project="MSBuild Community Tasks\MSBuild.Community.Tasks.Targets"/> | |
| 45 | − <Import Project="MSBuild Extension Pack\MSBuild.ExtensionPack.tasks"/> | |
| 46 | −--> | |
| 47 | − | |
| 48 | −<Project DefaultTargets="All" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 49 | − | |
| 50 | − <Import Project="Targets\Inline\TfsHistory.targets"/> | |
| 51 | − <Import Project="Targets\Inline\TfsVersion.targets"/> | |
| 52 | − <Import Project="Targets\MSBuild Community Tasks\MSBuild.Community.Tasks.Targets"/> | |
| 53 | − <Import Project="Targets\MSBuild Extension Pack\MSBuild.ExtensionPack.tasks"/> | |
| 54 | − | |
| 55 | − <PropertyGroup> | |
| 56 | − <!-- Name of the project being built. --> | |
| 57 | − <ProjectName></ProjectName> | |
| 58 | − <!-- Solution of the project being built. --> | |
| 59 | − <ProjectSolution></ProjectSolution> | |
| 60 | − <!-- Name of the local build workspace. --> | |
| 61 | − <Workspace></Workspace> | |
| 62 | − <!-- URL of the Team Foundation Server. --> | |
| 63 | − <TfsServer></TfsServer> | |
| 64 | − <!-- Root server folder of the project. --> | |
| 65 | − <ServerFolder></ServerFolder> | |
| 66 | − <!-- Root local folder of the project. --> | |
| 67 | − <LocalFolder></LocalFolder> | |
| 68 | − <!-- Source control label for the build. --> | |
| 69 | − <BuildLabel></BuildLabel> | |
| 70 | − <!-- Type of the build to compile. --> | |
| 71 | − <BuildFlavor></BuildFlavor> | |
| 72 | − <!-- Target 32bit platform of the build. --> | |
| 73 | − <Buildx86Target></Buildx86Target> | |
| 74 | − <!-- Target platform of the build. --> | |
| 75 | − <BuildTarget></BuildTarget> | |
| 76 | − <!-- Output folder of build content. --> | |
| 77 | − <BuildOutputFolder></BuildOutputFolder> | |
| 78 | − <!-- Drop location of the 32-bit build content. --> | |
| 79 | − <Buildx86DeployFolder></Buildx86DeployFolder> | |
| 80 | − <!-- Drop location of the build content. --> | |
| 81 | − <BuildDeployFolder></BuildDeployFolder> | |
| 82 | − <!-- Setting for enabling user propmts. --> | |
| 83 | − <BuildInteractive></BuildInteractive> | |
| 84 | − <!-- File containing the build version. --> | |
| 85 | − <VersionFile></VersionFile> | |
| 86 | − <!-- Version of the source code to build. --> | |
| 87 | − <SourceVersion></SourceVersion> | |
| 88 | − <!-- Paths to Team Foundation Client. --> | |
| 89 | − <TfsClient></TfsClient> | |
| 90 | − <!-- Path to Visual Studio IDE. --> | |
| 91 | − <VisualStudio></VisualStudio> | |
| 92 | − <!-- Path to unit testing tool. --> | |
| 93 | − <MSTest></MSTest> | |
| 94 | − <!-- Path to Sandcastle Builder. --> | |
| 95 | − <SandcastleBuilder></SandcastleBuilder> | |
| 96 | − <!-- Forces a build regardless of new changes since last build. --> | |
| 97 | − <ForceBuild></ForceBuild> | |
| 98 | − </PropertyGroup> | |
| 99 | − | |
| 100 | − <PropertyGroup> | |
| 101 | − <!-- | |
| 102 | − InitializeBuild | |
| 103 | − PrepareSettings (Before > Core > After) | |
| 104 | − CheckEnvironment (Before > Core > After) | |
| 105 | − CreateWorkspace (Before > Core > After) | |
| 106 | − CompileBuild | |
| 107 | − PopulateWorkspace (Before > Core > After) | |
| 108 | − VersionSource (Before > Core > After) | |
| 109 | − BuildProjects (Before > Core > After) | |
| 110 | − ExecuteUnitTests (Before > Core > After) | |
| 111 | − FinalizeBuild | |
| 112 | − LabelBuild (Before > Core > After) | |
| 113 | − CleanBuild (Before > Core > After) | |
| 114 | − DeployBuild (Before > Core > After) | |
| 115 | − DeleteWorkspace (Before > Core > After) | |
| 116 | − --> | |
| 117 | − <InitializeBuildDependsOn> | |
| 118 | − PrepareSettings; | |
| 119 | − CheckEnvironment; | |
| 120 | − CreateWorkspace; | |
| 121 | − </InitializeBuildDependsOn> | |
| 122 | − <CompileBuildDependsOn> | |
| 123 | − PopulateWorkspace; | |
| 124 | − VersionSource; | |
| 125 | − Buildx86Projects; | |
| 126 | − Executex86UnitTests; | |
| 127 | − Labelx86Build; | |
| 128 | − Cleanx86Build; | |
| 129 | − Deployx86Build; | |
| 130 | − BuildProjects; | |
| 131 | − ExecuteUnitTests; | |
| 132 | − </CompileBuildDependsOn> | |
| 133 | − <FinalizeBuildDependsOn> | |
| 134 | − LabelBuild; | |
| 135 | − CleanBuild; | |
| 136 | − DeployBuild; | |
| 137 | − ArchiveBuild; | |
| 138 | − DeleteWorkspace; | |
| 139 | − </FinalizeBuildDependsOn> | |
| 140 | − <CheckEnvironmentDependsOn> | |
| 141 | − BeforeCheckEnvironment; | |
| 142 | − CoreCheckEnvironment; | |
| 143 | − AfterCheckEnvironment; | |
| 144 | − </CheckEnvironmentDependsOn> | |
| 145 | − <PrepareSettingsDependsOn> | |
| 146 | − BeforePrepareSettings; | |
| 147 | − CorePrepareSettings; | |
| 148 | − AfterPrepareSettings; | |
| 149 | − </PrepareSettingsDependsOn> | |
| 150 | − <CreateWorkspaceDependsOn> | |
| 151 | − BeforeCreateWorkspace; | |
| 152 | − CoreCreateWorkspace; | |
| 153 | − AfterCreateWorkspace; | |
| 154 | − </CreateWorkspaceDependsOn> | |
| 155 | − <PopulateWorkspaceDependsOn> | |
| 156 | − BeforePopulateWorkspace; | |
| 157 | − CorePopulateWorkspace; | |
| 158 | − AfterPopulateWorkspace; | |
| 159 | − </PopulateWorkspaceDependsOn> | |
| 160 | − <VersionSourceDependsOn> | |
| 161 | − BeforeVersionSource; | |
| 162 | − CoreVersionSource; | |
| 163 | − AfterVersionSource; | |
| 164 | − </VersionSourceDependsOn> | |
| 165 | − <!--x86 32bit--> | |
| 166 | − <Buildx86ProjectsDependsOn> | |
| 167 | − Beforex86BuildProjects; | |
| 168 | − Corex86BuildProjects; | |
| 169 | − Afterx86BuildProjects; | |
| 170 | − </Buildx86ProjectsDependsOn> | |
| 171 | − <Executex86UnitTestsDependsOn> | |
| 172 | − Beforex86ExecuteUnitTests; | |
| 173 | − Corex86ExecuteUnitTests; | |
| 174 | − Afterx86ExecuteUnitTests; | |
| 175 | − </Executex86UnitTestsDependsOn> | |
| 176 | − <Labelx86BuildDependsOn> | |
| 177 | − Beforex86LabelBuild; | |
| 178 | − Corex86LabelBuild; | |
| 179 | − Afterx86LabelBuild; | |
| 180 | − </Labelx86BuildDependsOn> | |
| 181 | − <Cleanx86BuildDependsOn> | |
| 182 | − Beforex86CleanBuild; | |
| 183 | − Corex86CleanBuild; | |
| 184 | − Afterx86CleanBuild; | |
| 185 | − </Cleanx86BuildDependsOn> | |
| 186 | − <Deployx86BuildDependsOn> | |
| 187 | − Beforex86DeployBuild; | |
| 188 | − Corex86DeployBuild; | |
| 189 | − Afterx86DeployBuild; | |
| 190 | − </Deployx86BuildDependsOn> | |
| 191 | − <!--32bit end--> | |
| 192 | − <BuildProjectsDependsOn> | |
| 193 | − BeforeBuildProjects; | |
| 194 | − CoreBuildProjects; | |
| 195 | − AfterBuildProjects; | |
| 196 | − </BuildProjectsDependsOn> | |
| 197 | − <ExecuteUnitTestsDependsOn> | |
| 198 | − BeforeExecuteUnitTests; | |
| 199 | − CoreExecuteUnitTests; | |
| 200 | − AfterExecuteUnitTests; | |
| 201 | − </ExecuteUnitTestsDependsOn> | |
| 202 | − <LabelBuildDependsOn> | |
| 203 | − BeforeLabelBuild; | |
| 204 | − CoreLabelBuild; | |
| 205 | − AfterLabelBuild; | |
| 206 | − </LabelBuildDependsOn> | |
| 207 | − <CleanBuildDependsOn> | |
| 208 | − BeforeCleanBuild; | |
| 209 | − CoreCleanBuild; | |
| 210 | − AfterCleanBuild; | |
| 211 | − </CleanBuildDependsOn> | |
| 212 | − <DeployBuildDependsOn> | |
| 213 | − BeforeDeployBuild; | |
| 214 | − CoreDeployBuild; | |
| 215 | − AfterDeployBuild; | |
| 216 | − </DeployBuildDependsOn> | |
| 217 | − <ArchiveBuildDependsOn> | |
| 218 | − BeforeArchiveBuild; | |
| 219 | − CoreArchiveBuild; | |
| 220 | − AfterArchiveBuild; | |
| 221 | − </ArchiveBuildDependsOn> | |
| 222 | − <DeleteWorkspaceDependsOn> | |
| 223 | − BeforeDeleteWorkspace; | |
| 224 | − CoreDeleteWorkspace; | |
| 225 | − AfterDeleteWorkspace; | |
| 226 | − </DeleteWorkspaceDependsOn> | |
| 227 | − | |
| 228 | −</PropertyGroup> | |
| 229 | − | |
| 230 | − <ItemGroup> | |
| 231 | − <!-- List of projects to build. --> | |
| 232 | − <ProjectsToBuild Include="Nothing" Exclude="Nothing"/> | |
| 233 | − <!-- List of installs to build. --> | |
| 234 | − <InstallsToBuild Include="Nothing" Exclude="Nothing"/> | |
| 235 | − <!-- List of files to be versioned. --> | |
| 236 | − <FilesToVersion Include="Nothing" Exclude="Nothing"> | |
| 237 | − <VersionRegex>(?'BeforeVersion')(?'CoreVersion')(?'AfterVersion')</VersionRegex> | |
| 238 | − <VersionPrecision>4</VersionPrecision> | |
| 239 | − </FilesToVersion> | |
| 240 | − <!-- List of unit test assemblies. --> | |
| 241 | − <UnitTestAssemblies Include="Nothing" Exclude="Nothing"/> | |
| 242 | − <!-- List of 32bit binaries to archive. --> | |
| 243 | − <Binariesx86ToArchive Include="Nothing" Exclude="Nothing"/> | |
| 244 | − <!-- List of 32bit installs to archive. --> | |
| 245 | − <Installsx86ToArchive Include="Nothing" Exclude="Nothing"/> | |
| 246 | − <!-- Destinations 32bit of archive files (*.zip). --> | |
| 247 | − <Archivex86Destinations Include="Nothing" Exclude="Nothing"/> | |
| 248 | − <!-- List of binaries to archive. --> | |
| 249 | − <BinariesToArchive Include="Nothing" Exclude="Nothing"/> | |
| 250 | − <!-- List of installs to archive. --> | |
| 251 | − <InstallsToArchive Include="Nothing" Exclude="Nothing"/> | |
| 252 | − <!-- Destinations of archive files (*.zip). --> | |
| 253 | − <ArchiveDestinations Include="Nothing" Exclude="Nothing"/> | |
| 254 | − </ItemGroup> | |
| 255 | − | |
| 256 | − <Target Name="All"> | |
| 257 | − <!-- Entry point for the build. --> | |
| 258 | − <CallTarget Targets="InitializeBuild"/> | |
| 259 | − <CallTarget Targets="CompileBuild"/> | |
| 260 | − <CallTarget Targets="FinalizeBuild"/> | |
| 261 | − <Beep/> | |
| 262 | − <OnError ExecuteTargets="HandleBuildFailure"/> | |
| 263 | − </Target> | |
| 264 | − | |
| 265 | − <Target Name="InitializeBuild" DependsOnTargets="$(InitializeBuildDependsOn)"/> | |
| 266 | − | |
| 267 | − <Target Name="CompileBuild" DependsOnTargets="$(CompileBuildDependsOn)"/> | |
| 268 | − | |
| 269 | − <Target Name="FinalizeBuild" DependsOnTargets="$(FinalizeBuildDependsOn)"/> | |
| 270 | − | |
| 271 | − <Target Name="PrepareSettings" DependsOnTargets="$(PrepareSettingsDependsOn)"/> | |
| 272 | − | |
| 273 | − <Target Name="CheckEnvironment" DependsOnTargets="$(CheckEnvironmentDependsOn)"/> | |
| 274 | − | |
| 275 | − <Target Name="CreateWorkspace" DependsOnTargets="$(CreateWorkspaceDependsOn)"/> | |
| 276 | − | |
| 277 | − <Target Name="PopulateWorkspace" DependsOnTargets="$(PopulateWorkspaceDependsOn)"/> | |
| 278 | − | |
| 279 | − <Target Name="VersionSource" DependsOnTargets="$(VersionSourceDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 280 | − <!--x86 32-bit version--> | |
| 281 | − <Target Name="Buildx86Projects" DependsOnTargets="$(Buildx86ProjectsDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 282 | − | |
| 283 | − <Target Name="Executex86UnitTests" DependsOnTargets="$(Executex86UnitTestsDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 284 | − | |
| 285 | − <Target Name="Labelx86Build" DependsOnTargets="$(Labelx86BuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 286 | − | |
| 287 | − <Target Name="Cleanx86Build" DependsOnTargets="$(Cleanx86BuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 288 | − | |
| 289 | − <Target Name="Deployx86Build" DependsOnTargets="$(Deployx86BuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 290 | − <!--32-bit version end--> | |
| 291 | − <Target Name="BuildProjects" DependsOnTargets="$(BuildProjectsDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 292 | − | |
| 293 | − <Target Name="ExecuteUnitTests" DependsOnTargets="$(ExecuteUnitTestsDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 294 | − | |
| 295 | − <Target Name="LabelBuild" DependsOnTargets="$(LabelBuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 296 | − | |
| 297 | − <Target Name="CleanBuild" DependsOnTargets="$(CleanBuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 298 | − | |
| 299 | − <Target Name="DeployBuild" DependsOnTargets="$(DeployBuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 300 | − | |
| 301 | − <Target Name="ArchiveBuild" DependsOnTargets="$(ArchiveBuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 302 | − | |
| 303 | − <Target Name="DeleteWorkspace" DependsOnTargets="$(DeleteWorkspaceDependsOn)"/> | |
| 304 | − | |
| 305 | − <Target Name="BeforePrepareSettings"/> | |
| 306 | − | |
| 307 | − <Target Name="CorePrepareSettings"> | |
| 308 | − <!-- Assign default values to unassigned properties. --> | |
| 309 | − <Message Text="Preparing settings for build..."/> | |
| 310 | − <Error Condition="'$(ProjectName)' == ''" Text="ProjectName property must be set."/> | |
| 311 | − <PropertyGroup> | |
| 312 | − <!--<TfsServer Condition="'$(TfsServer)' == ''">https://tfs07.codeplex.com</TfsServer>--> | |
| 313 | − <TfsServer Condition="'$(TfsServer)' == ''">https://tfs.codeplex.com/tfs/TFS07</TfsServer> | |
| 314 | − <ServerFolder Condition="'$(ServerFolder)' == ''">$/openpdc/$(ProjectName)/Current Version</ServerFolder> | |
| 315 | − <LocalFolder Condition="'$(LocalFolder)' == ''">$(TEMP)\MSBuild\openPDC\$(ProjectName)</LocalFolder> | |
| 316 | − <BuildFlavor Condition="'$(BuildFlavor)' == ''">Release</BuildFlavor> | |
| 317 | − <Buildx86Target Condition="'$(Buildx86Target)' == ''">x86</Buildx86Target> | |
| 318 | − <BuildTarget Condition="'$(BuildTarget)' == ''">Any CPU</BuildTarget> | |
| 319 | − <BuildOutputFolder Condition="'$(BuildOutputFolder)' == ''">$(LocalFolder)\Build\Output\$(BuildFlavor)</BuildOutputFolder> | |
| 320 | − <BuildInteractive Condition="'$(BuildInteractive)' == ''">true</BuildInteractive> | |
| 321 | − <VersionFile Condition="'$(VersionFile)' == ''">$(LocalFolder)\Build\Scripts\$(ProjectName).version</VersionFile> | |
| 322 | − <SourceVersion Condition="'$(SourceVersion)' == ''">T</SourceVersion> | |
| 323 | − <TfsClient Condition="'$(TfsClient)' == ''">$(VS100COMNTOOLS)\..\IDE\tf.exe</TfsClient> | |
| 324 | − <VisualStudio Condition="'$(VisualStudio)' == ''">$(VS100COMNTOOLS)\..\IDE\devenv.com</VisualStudio> | |
| 325 | − <MSTest Condition="'$(MSTest)' == ''">$(VS100COMNTOOLS)\..\IDE\mstest.exe</MSTest> | |
| 326 | − <SandcastleBuilder Condition="'$(SandcastleBuilder)' == ''">$(SHFBROOT)\SandcastleBuilderGUI.exe</SandcastleBuilder> | |
| 327 | − <ForceBuild Condition="'$(ForceBuild)' == ''">false</ForceBuild> | |
| 328 | − <ForceBuild Condition="'$(SourceVersion)' != 'T'">true</ForceBuild> | |
| 329 | − </PropertyGroup> | |
| 330 | − </Target> | |
| 331 | − | |
| 332 | − <Target Name="AfterPrepareSettings"/> | |
| 333 | − | |
| 334 | − <Target Name="BeforeCheckEnvironment"/> | |
| 335 | − | |
| 336 | − <Target Name="CoreCheckEnvironment"> | |
| 337 | − <!-- Ensure that all required tools are installed. --> | |
| 338 | − <Message Text="Checking for required application..."/> | |
| 339 | − <Error Condition="'$(TfsClient)' != '' And !Exists('$(TfsClient)')" Text="TFS Client is not installed."/> | |
| 340 | − <Error Condition="'$(VisualStudio)' != '' And !Exists('$(VisualStudio)')" Text="Visual Studio is not installed."/> | |
| 341 | − <Error Condition="'$(MSTest)' != '' And !Exists('$(MSTest)')" Text="Unit testing tool is not installed."/> | |
| 342 | − <Error Condition="'$(SandcastleBuilder)' != '' And !Exists('$(SandcastleBuilder)')" Text="Sandcastle Builder is not installed."/> | |
| 343 | − </Target> | |
| 344 | − | |
| 345 | − <Target Name="AfterCheckEnvironment"/> | |
| 346 | − | |
| 347 | − <Target Name="BeforeCreateWorkspace"/> | |
| 348 | − | |
| 349 | − <Target Name="CoreCreateWorkspace"> | |
| 350 | − <!-- Create a temporary workspace for the build. --> | |
| 351 | − <Message Text="Creating temporary workspace..."/> | |
| 352 | − <PropertyGroup> | |
| 353 | − <Workspace Condition="'$(Workspace)' == ''">$(COMPUTERNAME)_$(ProjectName)</Workspace> | |
| 354 | − </PropertyGroup> | |
| 355 | − <RemoveDir Directories="$(LocalFolder)" Condition="Exists('$(LocalFolder)')"/> | |
| 356 | − <MakeDir Directories="$(LocalFolder)"/> | |
| 357 | − <Exec Command="%22$(TfsClient)%22 workspace /new /server:$(TfsServer) /noprompt %22$(Workspace)%22" WorkingDirectory="$(LocalFolder)"/> | |
| 358 | − <Exec Command="%22$(TfsClient)%22 workfold /unmap /server:$(TfsServer) /workspace:%22$(Workspace)%22 $/"/> | |
| 359 | − <Exec Command="%22$(TfsClient)%22 workfold /map /server:$(TfsServer) /workspace:%22$(Workspace)%22 %22$(ServerFolder)%22 %22$(LocalFolder)%22"/> | |
| 360 | − </Target> | |
| 361 | − | |
| 362 | − <Target Name="AfterCreateWorkspace"/> | |
| 363 | − | |
| 364 | − <Target Name="BeforePopulateWorkspace"/> | |
| 365 | − | |
| 366 | − <!--<Target Name="CorePopulateWorkspace"> | |
| 367 | − --><!-- Get source code for the specified version. --><!-- | |
| 368 | − <Message Text="Getting source code..."/> | |
| 369 | − <Exec Command="%22$(TfsClient)%22 get %22$(LocalFolder)%22 /version:$(SourceVersion) /force /recursive /noprompt"/> | |
| 370 | − --><!-- Check for new changes since the last build. --><!-- | |
| 371 | − <Message Text="Checking for changes..."/> | |
| 372 | − <Attrib Files="$(VersionFile)" ReadOnly="false"/> | |
| 373 | − <Version VersionFile="$(VersionFile)"> | |
| 374 | − <Output TaskParameter="Revision" PropertyName="Changeset"/> | |
| 375 | − </Version> | |
| 376 | − <Attrib Files="$(VersionFile)" ReadOnly="true"/> | |
| 377 | − <Exec Command="%22$(TfsClient)%22 history %22$(LocalFolder)%22 /version:C$(Changeset)~ /recursive /noprompt > $(LocalFolder)\$(ProjectName).history"/> | |
| 378 | − <File TaskAction="CountLines" Files="$(LocalFolder)\$(ProjectName).history"> | |
| 379 | − <Output TaskParameter="TotalLinecount" PropertyName="TotalChanges"/> | |
| 380 | − </File> | |
| 381 | − <PropertyGroup> | |
| 382 | − <ForceBuild Condition="'$(TotalChanges)' > '4' Or '$(SourceVersion)' != 'T'">true</ForceBuild> | |
| 383 | − </PropertyGroup> | |
| 384 | − <Message Text="Build is skipped - No new changes." Condition="'$(ForceBuild)' != 'true'"/> | |
| 385 | − </Target>--> | |
| 386 | − | |
| 387 | − <Target Name="CorePopulateWorkspace"> | |
| 388 | − <!-- Get source code for the specified version. --> | |
| 389 | − <Message Text="Getting source code..."/> | |
| 390 | − <Exec Command="%22$(TfsClient)%22 get %22$(LocalFolder)%22 /version:$(SourceVersion) /force /recursive /noprompt"/> | |
| 391 | − <CallTarget Targets="CheckForChanges"/> | |
| 392 | − </Target> | |
| 393 | − | |
| 394 | − <Target Name="CheckForChanges" Condition="'$(ForceBuild)' != 'true'"> | |
| 395 | − <!-- Check for new changes since the last build. --> | |
| 396 | − <Message Text="Checking for changes..."/> | |
| 397 | − <Attrib Files="$(VersionFile)" ReadOnly="false"/> | |
| 398 | − <Version VersionFile="$(VersionFile)"> | |
| 399 | − <Output TaskParameter="Revision" PropertyName="Changeset"/> | |
| 400 | − </Version> | |
| 401 | − <Attrib Files="$(VersionFile)" ReadOnly="true"/> | |
| 402 | − <PropertyGroup> | |
| 403 | − <Changeset Condition="'$(Changeset)' < '1'">1</Changeset> | |
| 404 | − </PropertyGroup> | |
| 405 | − <TfsHistory TfsClient="$(TfsClient)" LocalPath="$(LocalFolder)" VersionSpec="C$(Changeset)~"> | |
| 406 | − <Output TaskParameter="TotalChanges" PropertyName="TotalChanges"/> | |
| 407 | − </TfsHistory> | |
| 408 | − <PropertyGroup> | |
| 409 | − <ForceBuild Condition="'$(TotalChanges)' > '2'">true</ForceBuild> | |
| 410 | − </PropertyGroup> | |
| 411 | − <Message Text="Total Changes...'$(TotalChanges)'" /> | |
| 412 | − <Message Text="Build is skipped - No new changes." Condition="'$(ForceBuild)' != 'true'"/> | |
| 413 | − </Target> | |
| 414 | − | |
| 415 | − <Target Name="AfterPopulateWorkspace"/> | |
| 416 | − | |
| 417 | − <Target Name="BeforeVersionSource"/> | |
| 418 | − | |
| 419 | − <Target Name="CoreVersionSource" Condition="'$(SourceVersion)' == 'T' And '@(FilesToVersion)' != ''"> | |
| 420 | − <!-- Update version number of the source code. --> | |
| 421 | − <Message Text="Versioning source code..."/> | |
| 422 | − <Exec Command="%22$(TfsClient)%22 checkout /noprompt %22$(VersionFile)%22"/> | |
| 423 | − <Exec Command="%22$(TfsClient)%22 checkout /noprompt %22%(FilesToVersion.FullPath)%22"/> | |
| 424 | − <Version VersionFile="$(VersionFile)" BuildType="Increment"> | |
| 425 | − <Output TaskParameter="Major" PropertyName="Major"/> | |
| 426 | − <Output TaskParameter="Minor" PropertyName="Minor"/> | |
| 427 | − <Output TaskParameter="Build" PropertyName="Build"/> | |
| 428 | − </Version> | |
| 429 | − <!--<MSBuild.Community.Tasks.Tfs.TfsVersion LocalPath="$(LocalFolder)" TfsLibraryLocation="$(VS90COMNTOOLS)\..\IDE\PrivateAssemblies"> | |
| 430 | − <Output TaskParameter="Changeset" PropertyName="Revision"/> | |
| 431 | − </MSBuild.Community.Tasks.Tfs.TfsVersion>--> | |
| 432 | − <TfsVersion TfsClient="$(TfsClient)" LocalPath="$(LocalFolder)"> | |
| 433 | − <Output TaskParameter="Changeset" PropertyName="Revision"/> | |
| 434 | − </TfsVersion> | |
| 435 | − <FileUpdate Files="$(VersionFile)" Regex="(\d+)\.(\d+)\.(\d+)\.(\d+)" ReplacementText="$1.$2.$3.$(Revision)"/> | |
| 436 | − <FileUpdate Files="%(FilesToVersion.FullPath)" Regex="%(FilesToVersion.VersionRegex)" ReplacementText="${BeforeVersion}$(Major).$(Minor).$(Build).$(Revision)${AfterVersion}"/> | |
| 437 | − <PropertyGroup> | |
| 438 | − <BuildLabel Condition="'$(BuildLabel)' == ''">$(ProjectName)_v$(Major).$(Minor).$(Build).$(Revision)</BuildLabel> | |
| 439 | − </PropertyGroup> | |
| 440 | − <Exec Command="%22$(TfsClient)%22 checkin /comment:%22$(ProjectName): Version change for build $(BuildLabel).%22 /recursive /noprompt /notes:%22Code Reviewer%22=%22me%22 %22$(LocalFolder)%22"/> | |
| 441 | − </Target> | |
| 442 | − | |
| 443 | − <Target Name="AfterVersionSource"/> | |
| 444 | − | |
| 445 | − <!--x86 (32-bit) version Build before x64 (64-bit version --> | |
| 446 | − <Target Name="Beforex86BuildProjects"/> | |
| 447 | − | |
| 448 | − <Target Name="Corex86BuildProjects"> | |
| 449 | − <!-- Build all of the specified projects. --> | |
| 450 | − <Message Text="Compiling 32-bit projects... Configuration=$(BuildFlavor);Platform=$(Buildx86Target)"/> | |
| 451 | − <MSBuild Projects="@(ProjectsToBuild)" Properties="Configuration=$(BuildFlavor);Platform=$(Buildx86Target);%(ProjectsToBuild.Properties)"/> | |
| 452 | − <!-- Build all of the specified installs. --> | |
| 453 | − <Message Text="Compiling 32-bit installs..."/> | |
| 454 | − <Exec Command="%22$(VisualStudio)%22 %22$(ProjectSolution)%22 /Project %22%(InstallsToBuild.FullPath)%22 /Build %22$(BuildFlavor)|$(Buildx86Target)%22" Condition="'$(ProjectSolution)' != '' And '@(InstallsToBuild)' != ''"/> | |
| 455 | − </Target> | |
| 456 | − | |
| 457 | − <Target Name="Afterx86BuildProjects"/> | |
| 458 | − | |
| 459 | − <Target Name="Beforex86ExecuteUnitTests"/> | |
| 460 | − | |
| 461 | − <Target Name="Corex86ExecuteUnitTests" Condition="'@(UnitTestAssemblies)' != ''"> | |
| 462 | − <!-- Execute tests in unit test assemblies. --> | |
| 463 | − <Message Text="Executing unit tests..."/> | |
| 464 | − <Exec Command="%22$(MSTest)%22 /testcontainer:%22%(UnitTestAssemblies.FullPath)%22" WorkingDirectory="%(UnitTestAssemblies.RootDir)%(UnitTestAssemblies.Directory)"/> | |
| 465 | − </Target> | |
| 466 | − | |
| 467 | − <Target Name="Afterx86ExecuteUnitTests"/> | |
| 468 | − | |
| 469 | − <Target Name="Beforex86LabelBuild"/> | |
| 470 | − | |
| 471 | − <Target Name="Corex86LabelBuild" Condition="'$(BuildLabel)' != ''"> | |
| 472 | − <!-- Apply label for the current build. --> | |
| 473 | − <Message Text="Not Labeling 32bit build $(BuildLabel)..."/> | |
| 474 | − <!--<Exec Command="%22$(TfsClient)%22 label /comment:%22Label applied for build $(BuildLabel).%22 %22$(BuildLabel)%22 %22$(LocalFolder)%22"/> --> | |
| 475 | − </Target> | |
| 476 | − | |
| 477 | − <Target Name="Afterx86LabelBuild"/> | |
| 478 | − | |
| 479 | − <Target Name="Beforex86CleanBuild"/> | |
| 480 | − | |
| 481 | − <Target Name="Corex86CleanBuild"> | |
| 482 | − <!-- Clean output of the current build. --> | |
| 483 | − <Message Text="Cleaning 32bit build output..."/> | |
| 484 | − <ItemGroup> | |
| 485 | − <FilesToDelete Include="$(BuildOutputFolder)\**\setup.exe"/> | |
| 486 | − <!-- <FilesToDelete Include="$(BuildOutputFolder)\**\*.pdb" Condition="'$(BuildFlavor)' == 'Release'"/> --> | |
| 487 | − <FilesToDelete Include="$(BuildOutputFolder)\**\*.vshost.exe"/> | |
| 488 | − <FilesToDelete Include="$(BuildOutputFolder)\**\*.vshost.exe.manifest"/> | |
| 489 | − </ItemGroup> | |
| 490 | − <Delete Files="@(FilesToDelete)" ContinueOnError="true"/> | |
| 491 | − </Target> | |
| 492 | − | |
| 493 | − <Target Name="Afterx86CleanBuild"/> | |
| 494 | − | |
| 495 | − <Target Name="Beforex86DeployBuild"/> | |
| 496 | − | |
| 497 | − <Target Name="Corex86DeployBuild" Condition="'$(BuildOutputFolder)' != '' And '$(Buildx86DeployFolder)' != ''"> | |
| 498 | − <!-- Copy build content to the deploy folder. --> | |
| 499 | − <Message Text="Deploying 32-bit build content..."/> | |
| 500 | − <ItemGroup> | |
| 501 | − <FilesToDeploy Include="$(BuildOutputFolder)\**\*.*"/> | |
| 502 | − </ItemGroup> | |
| 503 | − <MakeDir Directories="$(Buildx86DeployFolder)" Condition="!Exists('$(Buildx86DeployFolder)')"/> | |
| 504 | − <Folder TaskAction="RemoveContent" Path="$(Buildx86DeployFolder)"/> | |
| 505 | − <Copy SourceFiles="@(FilesToDeploy)" DestinationFolder="$(Buildx86DeployFolder)\%(FilesToDeploy.RecursiveDir)"/> | |
| 506 | − <!-- Create specified archives of build content. --> | |
| 507 | − <Message Text="Archiving 32-bit build content..."/> | |
| 508 | − <!--<MSBuild.Community.Tasks.Zip Files="@(BinariesToArchive)" ZipFileName="$(LocalFolder)\$(ProjectName).Binaries.zip" WorkingDirectory="$(LocalFolder)" Condition="'@(BinariesToArchive)' != ''"/> | |
| 509 | − <MSBuild.Community.Tasks.Zip Files="@(InstallsToArchive)" ZipFileName="$(LocalFolder)\$(ProjectName).Installs.zip" WorkingDirectory="$(LocalFolder)" Condition="'@(InstallsToArchive)' != ''"/> | |
| 510 | − <ItemGroup> | |
| 511 | − <Archives Include="$(LocalFolder)\*.zip"/> | |
| 512 | − </ItemGroup> | |
| 513 | − <Copy SourceFiles="@(Archives)" DestinationFolder="%(ArchiveDestinations.FullPath)" ContinueOnError="true"/>--> | |
| 514 | − <Message Text="Remove contents of 32-bit versions file from $(BuildOutputFolder)..."/> | |
| 515 | − <Folder TaskAction="RemoveContent" Path="$(BuildOutputFolder)"/> | |
| 516 | − </Target> | |
| 517 | − | |
| 518 | − <Target Name="Afterx86DeployBuild"/> | |
| 519 | − | |
| 520 | − <!--32-bit version build completed--> | |
| 521 | − | |
| 522 | − <Target Name="BeforeBuildProjects"/> | |
| 523 | − | |
| 524 | − <Target Name="CoreBuildProjects"> | |
| 525 | − <!-- Build all of the specified projects. --> | |
| 526 | − <Message Text="Compiling projects..."/> | |
| 527 | − <MSBuild Projects="@(ProjectsToBuild)" Properties="Configuration=$(BuildFlavor);Platform=$(BuildTarget);%(ProjectsToBuild.Properties)"/> | |
| 528 | − <!-- Build all of the specified installs. --> | |
| 529 | − <Message Text="Compiling installs..."/> | |
| 530 | − <Exec Command="%22$(VisualStudio)%22 %22$(ProjectSolution)%22 /Project %22%(InstallsToBuild.FullPath)%22 /Build %22$(BuildFlavor)|$(BuildTarget)%22" Condition="'$(ProjectSolution)' != '' And '@(InstallsToBuild)' != ''"/> | |
| 531 | − </Target> | |
| 532 | − | |
| 533 | − <Target Name="AfterBuildProjects"/> | |
| 534 | − | |
| 535 | − <Target Name="BeforeExecuteUnitTests"/> | |
| 536 | − | |
| 537 | − <Target Name="CoreExecuteUnitTests" Condition="'@(UnitTestAssemblies)' != ''"> | |
| 538 | − <!-- Execute tests in unit test assemblies. --> | |
| 539 | − <Message Text="Executing unit tests..."/> | |
| 540 | − <Exec Command="%22$(MSTest)%22 /testcontainer:%22%(UnitTestAssemblies.FullPath)%22" WorkingDirectory="%(UnitTestAssemblies.RootDir)%(UnitTestAssemblies.Directory)"/> | |
| 541 | − </Target> | |
| 542 | − | |
| 543 | − <Target Name="AfterExecuteUnitTests"/> | |
| 544 | − | |
| 545 | − <Target Name="BeforeLabelBuild"/> | |
| 546 | − | |
| 547 | − <Target Name="CoreLabelBuild" Condition="'$(BuildLabel)' != ''"> | |
| 548 | − <!-- Apply label for the current build. --> | |
| 549 | − <Message Text="Labeling build $(BuildLabel)..."/> | |
| 550 | − <Exec Command="%22$(TfsClient)%22 label /comment:%22Label applied for build $(BuildLabel).%22 %22$(BuildLabel)%22 %22$(LocalFolder)%22"/> | |
| 551 | − </Target> | |
| 552 | − | |
| 553 | − <Target Name="AfterLabelBuild"/> | |
| 554 | − | |
| 555 | − <Target Name="BeforeCleanBuild"/> | |
| 556 | − | |
| 557 | − <Target Name="CoreCleanBuild"> | |
| 558 | − <!-- Clean output of the current build. --> | |
| 559 | − <Message Text="Cleaning build output..."/> | |
| 560 | − <ItemGroup> | |
| 561 | − <FilesToDelete Include="$(BuildOutputFolder)\**\setup.exe"/> | |
| 562 | − <!-- <FilesToDelete Include="$(BuildOutputFolder)\**\*.pdb" Condition="'$(BuildFlavor)' == 'Release'"/> --> | |
| 563 | − <FilesToDelete Include="$(BuildOutputFolder)\**\*.vshost.exe"/> | |
| 564 | − <FilesToDelete Include="$(BuildOutputFolder)\**\*.vshost.exe.manifest"/> | |
| 565 | − </ItemGroup> | |
| 566 | − <Delete Files="@(FilesToDelete)" ContinueOnError="true"/> | |
| 567 | − </Target> | |
| 568 | − | |
| 569 | − <Target Name="AfterCleanBuild"/> | |
| 570 | − | |
| 571 | − <Target Name="BeforeDeployBuild"/> | |
| 572 | − | |
| 573 | − <Target Name="CoreDeployBuild" Condition="'$(BuildOutputFolder)' != '' And '$(BuildDeployFolder)' != ''"> | |
| 574 | − <!-- Copy build content to the deploy folder. --> | |
| 575 | − <Message Text="Deploying build content..."/> | |
| 576 | − <ItemGroup> | |
| 577 | − <FilesToDeploy Include="$(BuildOutputFolder)\**\*.*"/> | |
| 578 | − </ItemGroup> | |
| 579 | − <MakeDir Directories="$(BuildDeployFolder)" Condition="!Exists('$(BuildDeployFolder)')"/> | |
| 580 | − <Folder TaskAction="RemoveContent" Path="$(BuildDeployFolder)"/> | |
| 581 | − | |
| 582 | − <Copy SourceFiles="@(FilesToDeploy)" DestinationFolder="$(BuildDeployFolder)\%(FilesToDeploy.RecursiveDir)"/> | |
| 583 | − <!-- Create specified archives of build content. --> | |
| 584 | − <!--<Message Text="Archiving build content..."/> | |
| 585 | − <MSBuild.Community.Tasks.Zip Files="@(BinariesToArchive)" ZipFileName="$(LocalFolder)\$(ProjectName).Binaries.zip" WorkingDirectory="$(BuildDeployFolder)" Condition="'@(BinariesToArchive)' != ''"/> | |
| 586 | − <MSBuild.Community.Tasks.Zip Files="@(InstallsToArchive)" ZipFileName="$(LocalFolder)\$(ProjectName).Installs.zip" WorkingDirectory="$(BuildDeployFolder)" Condition="'@(InstallsToArchive)' != ''"/> | |
| 587 | − <ItemGroup> | |
| 588 | − <Archives Include="$(LocalFolder)\*.zip"/> | |
| 589 | − </ItemGroup> | |
| 590 | − <Copy SourceFiles="@(Archives)" DestinationFolder="%(ArchiveDestinations.FullPath)" ContinueOnError="true"/>--> | |
| 591 | − </Target> | |
| 592 | − | |
| 593 | − <Target Name="AfterDeployBuild"/> | |
| 594 | − | |
| 595 | − <Target Name="BeforeArchiveBuild" /> | |
| 596 | − | |
| 597 | − <Target Name="CoreArchiveBuild" > | |
| 598 | − <!-- Create specified archives of build content. --> | |
| 599 | − <Message Text="Archiving build content..."/> | |
| 600 | − <MSBuild.Community.Tasks.Zip Files="@(BinariesToArchive)" ZipFileName="$(LocalFolder)\$(ProjectName).Binaries.zip" WorkingDirectory="$(BuildDeployFolder)" Condition="'@(BinariesToArchive)' != ''"/> | |
| 601 | − <MSBuild.Community.Tasks.Zip Files="@(InstallsToArchive)" ZipFileName="$(LocalFolder)\$(ProjectName).Installs.zip" WorkingDirectory="$(BuildDeployFolder)" Condition="'@(InstallsToArchive)' != ''"/> | |
| 602 | − <ItemGroup> | |
| 603 | − <Archives Include="$(LocalFolder)\*.zip"/> | |
| 604 | − </ItemGroup> | |
| 605 | − <Copy SourceFiles="@(Archives)" DestinationFolder="%(ArchiveDestinations.FullPath)" ContinueOnError="true"/> | |
| 606 | − </Target> | |
| 607 | − | |
| 608 | − <Target Name="AfterArchiveBuild" /> | |
| 609 | − | |
| 610 | − <Target Name="BeforeDeleteWorkspace"/> | |
| 611 | − | |
| 612 | − <Target Name="CoreDeleteWorkspace"> | |
| 613 | − <!-- Delete the temporary build workpsace. --> | |
| 614 | − <Message Text="Deleting temporary workspace..."/> | |
| 615 | − <Exec Command="%22$(TfsClient)%22 workspace /delete /server:$(TfsServer) %22$(Workspace)%22" ContinueOnError="true"/> | |
| 616 | − </Target> | |
| 617 | − | |
| 618 | − <Target Name="AfterDeleteWorkspace"/> | |
| 619 | − | |
| 620 | − <Target Name="HandleBuildFailure"> | |
| 621 | − <!-- Handle any unexpected build errors. --> | |
| 622 | − <Message Text="Undoing pending changes..."/> | |
| 623 | − <Exec Command="%22$(TfsClient)%22 undo %22$(LocalFolder)%22 /recursive /noprompt" ContinueOnError="true"/> | |
| 624 | − <CallTarget Targets="DeleteWorkspace"/> | |
| 625 | − <Beep Duration="2000"/> | |
| 626 | − </Target> | |
| 627 | − | |
| 628 | −</Project> | |
| @@ -1,477 +0,0 @@ | ||
| 1 | −<?xml version="1.0" encoding="utf-8"?> | |
| 2 | − | |
| 3 | −<!-- | |
| 4 | −******************************************************************************************************* | |
| 5 | −** MasterBuild.buildproj - Gbtc | |
| 6 | −** | |
| 7 | −** Tennessee Valley Authority, 2009 | |
| 8 | −** No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved. | |
| 9 | −** | |
| 10 | −** This software is made freely available under the TVA Open Source Agreement (see below). | |
| 11 | −** | |
| 12 | −** Code Modification History: | |
| 13 | −** =================================================================================================== | |
| 14 | −** 10/05/2009 - Pinal C. Patel | |
| 15 | −** Generated original version of source code. | |
| 16 | −** 10/07/2009 - Pinal C. Patel | |
| 17 | −** Fixed a bug in deletion of unwanted files prior to deployment. | |
| 18 | −** 10/10/2009 - Pinal C. Patel | |
| 19 | −** Added the ability to compile install packages. | |
| 20 | −** Added the ability to choose the files to be versioned. | |
| 21 | −** 10/13/2009 - Pinal C. Patel | |
| 22 | −** Enabled the check for Sandcastle Builder as a required tool. | |
| 23 | −** Modified deletion of *.pdb files to be active for release builds only. | |
| 24 | −** 10/15/2009 - Pinal C. Patel | |
| 25 | −** Added unit testing to the build process. | |
| 26 | −** 10/16/2009 - Pinal C. Patel | |
| 27 | −** Modified to skip the build process in the absence of new changes since the last build. | |
| 28 | −** 10/19/2009 - Pinal C. Patel | |
| 29 | −** Modified to allow archiving of binaries and installs for easy access. | |
| 30 | −** 04/27/2010 - Pinal C. Patel | |
| 31 | −** Modified to automatically force a build when a specific version is being built. | |
| 32 | −** 04/28/2010 - Pinal C. Patel | |
| 33 | −** Modified ProjectsToBuild to include an optional Properties property that can be used to | |
| 34 | −** override project properties during the build process. | |
| 35 | −** 08/01/2010 - Pinal C. Patel | |
| 36 | −** Modified to force a build if a specific version of the source code is being built by | |
| 37 | −** specifying the version using the SourceVersion property. | |
| 38 | −** 10/09/2010 - Pinal C. Patel | |
| 39 | −** Modified the build archival process to allow for customization. | |
| 40 | −** Moved initialization if FilesToDelete list to CoreBuildProjects target. | |
| 41 | −** Implemented VersionPrecision logic in CoreVersionSource target. | |
| 42 | −** 10/23/2010 - Pinal C. Patel | |
| 43 | −** Moved checkin of pending changes to CoreDeleteWorkspace task so version changes are | |
| 44 | −** checked-in only if the entire build completes successfully. | |
| 45 | −** 11/02/2010 - Pinal C. Patel | |
| 46 | −** Added missing logic in ArchiveBuildOutput target so binary and install archive files are | |
| 47 | −** created only if there are files to be added to these archives. | |
| 48 | −** 12/25/2010 - Pinal C. Patel | |
| 49 | −** Updated the versioning logic to not use the changeset for revision number since the maximum | |
| 50 | −** value allowed for revision number is 65534. | |
| 51 | −** | |
| 52 | −******************************************************************************************************* | |
| 53 | −--> | |
| 54 | − | |
| 55 | −<Project DefaultTargets="All" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 56 | − | |
| 57 | − <Import Project="Targets\Inline\TfsHistory.targets"/> | |
| 58 | − <Import Project="Targets\Inline\TfsVersion.targets"/> | |
| 59 | − <Import Project="Targets\MSBuild Community Tasks\MSBuild.Community.Tasks.Targets"/> | |
| 60 | − <Import Project="Targets\MSBuild Extension Pack\MSBuild.ExtensionPack.tasks"/> | |
| 61 | − | |
| 62 | − <PropertyGroup> | |
| 63 | − <!-- Name of the project being built. --> | |
| 64 | − <ProjectName></ProjectName> | |
| 65 | − <!-- Solution of the project being built. --> | |
| 66 | − <ProjectSolution></ProjectSolution> | |
| 67 | − <!-- Name of the local build workspace. --> | |
| 68 | − <Workspace></Workspace> | |
| 69 | − <!-- URL of the Team Foundation Server. --> | |
| 70 | − <TfsServer></TfsServer> | |
| 71 | − <!-- Root server folder of the project. --> | |
| 72 | − <ServerFolder></ServerFolder> | |
| 73 | − <!-- Root local folder of the project. --> | |
| 74 | − <LocalFolder></LocalFolder> | |
| 75 | − <!-- Source control label for the build. --> | |
| 76 | − <BuildLabel></BuildLabel> | |
| 77 | − <!-- Type of the build to compile. --> | |
| 78 | − <BuildFlavor></BuildFlavor> | |
| 79 | − <!-- Target platform of the build. --> | |
| 80 | − <BuildTarget></BuildTarget> | |
| 81 | − <!-- Output folder of build content. --> | |
| 82 | − <BuildOutputFolder></BuildOutputFolder> | |
| 83 | − <!-- Drop location of the build content. --> | |
| 84 | − <BuildDeployFolder></BuildDeployFolder> | |
| 85 | − <!-- Setting for enabling user propmts. --> | |
| 86 | − <BuildInteractive></BuildInteractive> | |
| 87 | − <!-- File containing the build version. --> | |
| 88 | − <VersionFile></VersionFile> | |
| 89 | − <!-- Version of the source code to build. --> | |
| 90 | − <SourceVersion></SourceVersion> | |
| 91 | − <!-- Paths to Team Foundation Client. --> | |
| 92 | − <TfsClient></TfsClient> | |
| 93 | − <!-- Path to Visual Studio IDE. --> | |
| 94 | − <VisualStudio></VisualStudio> | |
| 95 | − <!-- Path to unit testing tool. --> | |
| 96 | − <MSTest></MSTest> | |
| 97 | − <!-- Path to Sandcastle Builder. --> | |
| 98 | − <SandcastleBuilder></SandcastleBuilder> | |
| 99 | − <!-- Forces a build regardless of new changes since last build. --> | |
| 100 | − <ForceBuild></ForceBuild> | |
| 101 | − <!-- Name of binaries archive file. --> | |
| 102 | − <BinariesArchiveFileName></BinariesArchiveFileName> | |
| 103 | − <!-- Name of installs archive file. --> | |
| 104 | − <InstallsArchiveFileName></InstallsArchiveFileName> | |
| 105 | − <!-- Working directory for creating binaries archive file. --> | |
| 106 | − <BinariesArchiveWorkingDirectory></BinariesArchiveWorkingDirectory> | |
| 107 | − <!-- Working directory for creating installs archive file. --> | |
| 108 | − <InstallsArchiveWorkingDirectory></InstallsArchiveWorkingDirectory> | |
| 109 | − </PropertyGroup> | |
| 110 | − | |
| 111 | − <PropertyGroup> | |
| 112 | − <!-- | |
| 113 | − InitializeBuild | |
| 114 | − PrepareSettings (Before > Core > After) | |
| 115 | − CheckEnvironment (Before > Core > After) | |
| 116 | − CreateWorkspace (Before > Core > After) | |
| 117 | − CompileBuild | |
| 118 | − PopulateWorkspace (Before > Core > After) | |
| 119 | − VersionSource (Before > Core > After) | |
| 120 | − BuildProjects (Before > Core > After) | |
| 121 | − ExecuteUnitTests (Before > Core > After) | |
| 122 | − FinalizeBuild | |
| 123 | − LabelBuild (Before > Core > After) | |
| 124 | − CleanBuild (Before > Core > After) | |
| 125 | − DeployBuild (Before > Core > After) | |
| 126 | − DeleteWorkspace (Before > Core > After) | |
| 127 | − --> | |
| 128 | − <InitializeBuildDependsOn> | |
| 129 | − PrepareSettings; | |
| 130 | − CheckEnvironment; | |
| 131 | − CreateWorkspace; | |
| 132 | − </InitializeBuildDependsOn> | |
| 133 | − <CompileBuildDependsOn> | |
| 134 | − PopulateWorkspace; | |
| 135 | − VersionSource; | |
| 136 | − BuildProjects; | |
| 137 | − ExecuteUnitTests; | |
| 138 | − </CompileBuildDependsOn> | |
| 139 | − <FinalizeBuildDependsOn> | |
| 140 | − LabelBuild; | |
| 141 | − CleanBuild; | |
| 142 | − DeployBuild; | |
| 143 | − DeleteWorkspace; | |
| 144 | − </FinalizeBuildDependsOn> | |
| 145 | − <CheckEnvironmentDependsOn> | |
| 146 | − BeforeCheckEnvironment; | |
| 147 | − CoreCheckEnvironment; | |
| 148 | − AfterCheckEnvironment; | |
| 149 | − </CheckEnvironmentDependsOn> | |
| 150 | − <PrepareSettingsDependsOn> | |
| 151 | − BeforePrepareSettings; | |
| 152 | − CorePrepareSettings; | |
| 153 | − AfterPrepareSettings; | |
| 154 | − </PrepareSettingsDependsOn> | |
| 155 | − <CreateWorkspaceDependsOn> | |
| 156 | − BeforeCreateWorkspace; | |
| 157 | − CoreCreateWorkspace; | |
| 158 | − AfterCreateWorkspace; | |
| 159 | − </CreateWorkspaceDependsOn> | |
| 160 | − <PopulateWorkspaceDependsOn> | |
| 161 | − BeforePopulateWorkspace; | |
| 162 | − CorePopulateWorkspace; | |
| 163 | − AfterPopulateWorkspace; | |
| 164 | − </PopulateWorkspaceDependsOn> | |
| 165 | − <VersionSourceDependsOn> | |
| 166 | − BeforeVersionSource; | |
| 167 | − CoreVersionSource; | |
| 168 | − AfterVersionSource; | |
| 169 | − </VersionSourceDependsOn> | |
| 170 | − <BuildProjectsDependsOn> | |
| 171 | − BeforeBuildProjects; | |
| 172 | − CoreBuildProjects; | |
| 173 | − AfterBuildProjects; | |
| 174 | − </BuildProjectsDependsOn> | |
| 175 | − <ExecuteUnitTestsDependsOn> | |
| 176 | − BeforeExecuteUnitTests; | |
| 177 | − CoreExecuteUnitTests; | |
| 178 | − AfterExecuteUnitTests; | |
| 179 | − </ExecuteUnitTestsDependsOn> | |
| 180 | − <LabelBuildDependsOn> | |
| 181 | − BeforeLabelBuild; | |
| 182 | − CoreLabelBuild; | |
| 183 | − AfterLabelBuild; | |
| 184 | − </LabelBuildDependsOn> | |
| 185 | − <CleanBuildDependsOn> | |
| 186 | − BeforeCleanBuild; | |
| 187 | − CoreCleanBuild; | |
| 188 | − AfterCleanBuild; | |
| 189 | − </CleanBuildDependsOn> | |
| 190 | − <DeployBuildDependsOn> | |
| 191 | − BeforeDeployBuild; | |
| 192 | − CoreDeployBuild; | |
| 193 | − AfterDeployBuild; | |
| 194 | − </DeployBuildDependsOn> | |
| 195 | − <DeleteWorkspaceDependsOn> | |
| 196 | − BeforeDeleteWorkspace; | |
| 197 | − CoreDeleteWorkspace; | |
| 198 | − AfterDeleteWorkspace; | |
| 199 | − </DeleteWorkspaceDependsOn> | |
| 200 | − </PropertyGroup> | |
| 201 | − | |
| 202 | − <ItemGroup> | |
| 203 | − <!-- List of projects to build. --> | |
| 204 | − <ProjectsToBuild Include="Nothing" Exclude="Nothing"/> | |
| 205 | − <!-- List of installs to build. --> | |
| 206 | − <InstallsToBuild Include="Nothing" Exclude="Nothing"/> | |
| 207 | − <!-- List of files to be versioned. --> | |
| 208 | − <FilesToVersion Include="Nothing" Exclude="Nothing"> | |
| 209 | − <VersionRegex>(?'BeforeVersion')(?'CoreVersion')(?'AfterVersion')</VersionRegex> | |
| 210 | − <VersionPrecision>4</VersionPrecision> | |
| 211 | − </FilesToVersion> | |
| 212 | − <!-- List of unit test assemblies. --> | |
| 213 | − <UnitTestAssemblies Include="Nothing" Exclude="Nothing"/> | |
| 214 | − <!-- List of binaries to archive. --> | |
| 215 | − <BinariesToArchive Include="Nothing" Exclude="Nothing"/> | |
| 216 | − <!-- List of installs to archive. --> | |
| 217 | − <InstallsToArchive Include="Nothing" Exclude="Nothing"/> | |
| 218 | − <!-- Destinations of archive files (*.zip). --> | |
| 219 | − <ArchiveDestinations Include="Nothing" Exclude="Nothing"/> | |
| 220 | − </ItemGroup> | |
| 221 | − | |
| 222 | − <Target Name="All"> | |
| 223 | − <!-- Entry point for the build. --> | |
| 224 | − <CallTarget Targets="InitializeBuild"/> | |
| 225 | − <CallTarget Targets="CompileBuild"/> | |
| 226 | − <CallTarget Targets="FinalizeBuild"/> | |
| 227 | − <Beep/> | |
| 228 | − <OnError ExecuteTargets="HandleBuildFailure"/> | |
| 229 | − </Target> | |
| 230 | − | |
| 231 | − <Target Name="InitializeBuild" DependsOnTargets="$(InitializeBuildDependsOn)"/> | |
| 232 | − | |
| 233 | − <Target Name="CompileBuild" DependsOnTargets="$(CompileBuildDependsOn)"/> | |
| 234 | − | |
| 235 | − <Target Name="FinalizeBuild" DependsOnTargets="$(FinalizeBuildDependsOn)"/> | |
| 236 | − | |
| 237 | − <Target Name="PrepareSettings" DependsOnTargets="$(PrepareSettingsDependsOn)"/> | |
| 238 | − | |
| 239 | − <Target Name="CheckEnvironment" DependsOnTargets="$(CheckEnvironmentDependsOn)"/> | |
| 240 | − | |
| 241 | − <Target Name="CreateWorkspace" DependsOnTargets="$(CreateWorkspaceDependsOn)"/> | |
| 242 | − | |
| 243 | − <Target Name="PopulateWorkspace" DependsOnTargets="$(PopulateWorkspaceDependsOn)"/> | |
| 244 | − | |
| 245 | − <Target Name="VersionSource" DependsOnTargets="$(VersionSourceDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 246 | − | |
| 247 | − <Target Name="BuildProjects" DependsOnTargets="$(BuildProjectsDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 248 | − | |
| 249 | − <Target Name="ExecuteUnitTests" DependsOnTargets="$(ExecuteUnitTestsDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 250 | − | |
| 251 | − <Target Name="LabelBuild" DependsOnTargets="$(LabelBuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 252 | − | |
| 253 | − <Target Name="CleanBuild" DependsOnTargets="$(CleanBuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 254 | − | |
| 255 | − <Target Name="DeployBuild" DependsOnTargets="$(DeployBuildDependsOn)" Condition="'$(ForceBuild)' == 'true'"/> | |
| 256 | − | |
| 257 | − <Target Name="DeleteWorkspace" DependsOnTargets="$(DeleteWorkspaceDependsOn)"/> | |
| 258 | − | |
| 259 | − <Target Name="BeforePrepareSettings"/> | |
| 260 | − | |
| 261 | − <Target Name="CorePrepareSettings"> | |
| 262 | − <!-- Assign default values to unassigned properties. --> | |
| 263 | − <Message Text="Preparing settings for build..."/> | |
| 264 | − <Error Condition="'$(ProjectName)' == ''" Text="ProjectName property must be set."/> | |
| 265 | − <PropertyGroup> | |
| 266 | − <TfsServer Condition="'$(TfsServer)' == ''">https://tfs.codeplex.com/tfs/tfs07</TfsServer> | |
| 267 | − <ServerFolder Condition="'$(ServerFolder)' == ''">$/openpdc/$(ProjectName)/Current Version</ServerFolder> | |
| 268 | − <LocalFolder Condition="'$(LocalFolder)' == ''">$([System.IO.Path]::GetFullPath('$(TEMP)\MSBuild\openpdc\$(ProjectName)'))</LocalFolder> | |
| 269 | − <BuildFlavor Condition="'$(BuildFlavor)' == ''">Release</BuildFlavor> | |
| 270 | − <BuildTarget Condition="'$(BuildTarget)' == ''">Any CPU</BuildTarget> | |
| 271 | − <BuildOutputFolder Condition="'$(BuildOutputFolder)' == ''">$(LocalFolder)\Build\Output\$(BuildFlavor)</BuildOutputFolder> | |
| 272 | − <BuildInteractive Condition="'$(BuildInteractive)' == ''">true</BuildInteractive> | |
| 273 | − <VersionFile Condition="'$(VersionFile)' == ''">$(LocalFolder)\Build\Scripts\$(ProjectName).version</VersionFile> | |
| 274 | − <SourceVersion Condition="'$(SourceVersion)' == ''">T</SourceVersion> | |
| 275 | − <TfsClient Condition="'$(TfsClient)' == ''">$(VS100COMNTOOLS)\..\IDE\tf.exe</TfsClient> | |
| 276 | − <VisualStudio Condition="'$(VisualStudio)' == ''">$(VS100COMNTOOLS)\..\IDE\devenv.com</VisualStudio> | |
| 277 | − <MSTest Condition="'$(MSTest)' == ''">$(VS100COMNTOOLS)\..\IDE\mstest.exe</MSTest> | |
| 278 | − <SandcastleBuilder Condition="'$(SandcastleBuilder)' == ''">$(SHFBROOT)\SandcastleBuilderGUI.exe</SandcastleBuilder> | |
| 279 | − <ForceBuild Condition="'$(ForceBuild)' == ''">false</ForceBuild> | |
| 280 | − <ForceBuild Condition="'$(SourceVersion)' != 'T'">true</ForceBuild> | |
| 281 | − <BinariesArchiveFileName Condition="'$(BinariesArchiveFileName)' == ''">$(LocalFolder)\$(ProjectName).Binaries.zip</BinariesArchiveFileName> | |
| 282 | − <InstallsArchiveFileName Condition="'$(InstallsArchiveFileName)' == ''">$(LocalFolder)\$(ProjectName).Installs.zip</InstallsArchiveFileName> | |
| 283 | − <BinariesArchiveWorkingDirectory Condition="'$(BinariesArchiveWorkingDirectory)' == ''">$(LocalFolder)\Archives\Binaries</BinariesArchiveWorkingDirectory> | |
| 284 | − <InstallsArchiveWorkingDirectory Condition="'$(InstallsArchiveWorkingDirectory)' == ''">$(LocalFolder)\Archives\Installs</InstallsArchiveWorkingDirectory> | |
| 285 | − </PropertyGroup> | |
| 286 | − </Target> | |
| 287 | − | |
| 288 | − <Target Name="AfterPrepareSettings"/> | |
| 289 | − | |
| 290 | − <Target Name="BeforeCheckEnvironment"/> | |
| 291 | − | |
| 292 | − <Target Name="CoreCheckEnvironment"> | |
| 293 | − <!-- Ensure that all required tools are installed. --> | |
| 294 | − <Message Text="Checking for required application..."/> | |
| 295 | − <Error Condition="'$(TfsClient)' != '' And !Exists('$(TfsClient)')" Text="TFS Client is not installed."/> | |
| 296 | − <Error Condition="'$(VisualStudio)' != '' And !Exists('$(VisualStudio)')" Text="Visual Studio is not installed."/> | |
| 297 | − <Error Condition="'$(MSTest)' != '' And !Exists('$(MSTest)')" Text="Unit testing tool is not installed."/> | |
| 298 | − <Error Condition="'$(SandcastleBuilder)' != '' And !Exists('$(SandcastleBuilder)')" Text="Sandcastle Builder is not installed."/> | |
| 299 | − </Target> | |
| 300 | − | |
| 301 | − <Target Name="AfterCheckEnvironment"/> | |
| 302 | − | |
| 303 | − <Target Name="BeforeCreateWorkspace"/> | |
| 304 | − | |
| 305 | − <Target Name="CoreCreateWorkspace"> | |
| 306 | − <!-- Create a temporary workspace for the build. --> | |
| 307 | − <Message Text="Creating temporary workspace..."/> | |
| 308 | − <PropertyGroup> | |
| 309 | − <Workspace Condition="'$(Workspace)' == ''">$(COMPUTERNAME)_$(ProjectName)</Workspace> | |
| 310 | − </PropertyGroup> | |
| 311 | − <RemoveDir Directories="$(LocalFolder)" Condition="Exists('$(LocalFolder)')"/> | |
| 312 | − <MakeDir Directories="$(LocalFolder)"/> | |
| 313 | − <Exec Command="%22$(TfsClient)%22 workspace /new /server:$(TfsServer) /noprompt %22$(Workspace)%22" WorkingDirectory="$(LocalFolder)"/> | |
| 314 | − <Exec Command="%22$(TfsClient)%22 workfold /unmap /server:$(TfsServer) /workspace:%22$(Workspace)%22 $/"/> | |
| 315 | − <Exec Command="%22$(TfsClient)%22 workfold /map /server:$(TfsServer) /workspace:%22$(Workspace)%22 %22$(ServerFolder)%22 %22$(LocalFolder)%22"/> | |
| 316 | − </Target> | |
| 317 | − | |
| 318 | − <Target Name="AfterCreateWorkspace"/> | |
| 319 | − | |
| 320 | − <Target Name="BeforePopulateWorkspace" Condition="'$(ForceBuild)' != 'true'"> | |
| 321 | − <!-- Get version file for the most recent version. --> | |
| 322 | − <Message Text="Checking for changes to project since last build..."/> | |
| 323 | − <Exec Command="%22$(TfsClient)%22 get %22$(VersionFile)%22 /force /recursive /noprompt"/> | |
| 324 | − | |
| 325 | − <!-- Check for new changes since the last build. --> | |
| 326 | − <ReadLinesFromFile File="$(VersionFile)"> | |
| 327 | − <Output TaskParameter="Lines" ItemName="VersionNumber"/> | |
| 328 | − </ReadLinesFromFile> | |
| 329 | − <TfsHistory TfsClient="$(TfsClient)" LocalPath="$(LocalFolder)" VersionSpec="L$(ProjectName)_v@(VersionNumber)~T" ContinueOnError="true"> | |
| 330 | − <Output TaskParameter="TotalChanges" PropertyName="TotalChanges"/> | |
| 331 | − </TfsHistory> | |
| 332 | − <PropertyGroup> | |
| 333 | − <ForceBuild Condition="'$(TotalChanges)' == '-1' Or '$(TotalChanges)' > '1'">true</ForceBuild> | |
| 334 | − <SkipVersioning Condition="'$(ForceBuild)' != 'true'">true</SkipVersioning> | |
| 335 | − </PropertyGroup> | |
| 336 | − <Message Text="Build is skipped - No new changes." Condition="'$(ForceBuild)' != 'true'"/> | |
| 337 | − </Target> | |
| 338 | − | |
| 339 | − <Target Name="CorePopulateWorkspace" Condition="'$(ForceBuild)' == 'true'"> | |
| 340 | − <!-- Get source code for the specified version. --> | |
| 341 | − <Message Text="Getting source code..."/> | |
| 342 | − <Exec Command="%22$(TfsClient)%22 get %22$(LocalFolder)%22 /version:$(SourceVersion) /force /recursive /noprompt"/> | |
| 343 | − </Target> | |
| 344 | − | |
| 345 | − <Target Name="AfterPopulateWorkspace"/> | |
| 346 | − | |
| 347 | − <Target Name="BeforeVersionSource"/> | |
| 348 | − | |
| 349 | − <Target Name="CoreVersionSource" Condition="'$(SourceVersion)' == 'T' And '@(FilesToVersion)' != ''"> | |
| 350 | − <!-- Update version number of the source code. --> | |
| 351 | − <Message Text="Versioning source code..."/> | |
| 352 | − <Exec Command="%22$(TfsClient)%22 checkout /noprompt %22$(VersionFile)%22"/> | |
| 353 | − <Exec Command="%22$(TfsClient)%22 checkout /noprompt %22%(FilesToVersion.FullPath)%22"/> | |
| 354 | − <Version VersionFile="$(VersionFile)" BuildType="Increment" RevisionType="Reset"> | |
| 355 | − <Output TaskParameter="Major" PropertyName="Major"/> | |
| 356 | − <Output TaskParameter="Minor" PropertyName="Minor"/> | |
| 357 | − <Output TaskParameter="Build" PropertyName="Build"/> | |
| 358 | − <Output TaskParameter="Revision" PropertyName="Revision"/> | |
| 359 | − </Version> | |
| 360 | − <FileUpdate Files="$(VersionFile)" Regex="(\d+)\.(\d+)\.(\d+)\.(\d+)" ReplacementText="$1.$2.$3.$(Revision)"/> | |
| 361 | − <FileUpdate Files="%(FilesToVersion.FullPath)" Regex="%(FilesToVersion.VersionRegex)" ReplacementText="${BeforeVersion}$(Major).$(Minor)${AfterVersion}" Condition="'%(FilesToVersion.VersionPrecision)' <= '2'"/> | |
| 362 | − <FileUpdate Files="%(FilesToVersion.FullPath)" Regex="%(FilesToVersion.VersionRegex)" ReplacementText="${BeforeVersion}$(Major).$(Minor).$(Build)${AfterVersion}" Condition="'%(FilesToVersion.VersionPrecision)' == '3'"/> | |
| 363 | − <FileUpdate Files="%(FilesToVersion.FullPath)" Regex="%(FilesToVersion.VersionRegex)" ReplacementText="${BeforeVersion}$(Major).$(Minor).$(Build).$(Revision)${AfterVersion}" Condition="'%(FilesToVersion.VersionPrecision)' == '4'"/> | |
| 364 | − <PropertyGroup> | |
| 365 | − <BuildLabel Condition="'$(BuildLabel)' == ''">$(ProjectName)_v$(Major).$(Minor).$(Build).$(Revision)</BuildLabel> | |
| 366 | − </PropertyGroup> | |
| 367 | − </Target> | |
| 368 | − | |
| 369 | − <Target Name="AfterVersionSource"/> | |
| 370 | − | |
| 371 | − <Target Name="BeforeBuildProjects"/> | |
| 372 | − | |
| 373 | − <Target Name="CoreBuildProjects"> | |
| 374 | − <!-- Build all of the specified projects. --> | |
| 375 | − <Message Text="Compiling projects..."/> | |
| 376 | − <MSBuild Projects="@(ProjectsToBuild)" Properties="Configuration=$(BuildFlavor);Platform=$(BuildTarget);%(ProjectsToBuild.Properties)"/> | |
| 377 | − <!-- Build all of the specified installs. --> | |
| 378 | − <Message Text="Compiling installs..."/> | |
| 379 | − <Exec Command="%22$(VisualStudio)%22 %22$(ProjectSolution)%22 /Project %22%(InstallsToBuild.FullPath)%22 /Build %22$(BuildFlavor)|$(BuildTarget)%22" Condition="'$(ProjectSolution)' != '' And '@(InstallsToBuild)' != ''"/> | |
| 380 | − <!-- Create list of files to be deleted from build output. --> | |
| 381 | − <ItemGroup> | |
| 382 | − <FilesToDelete Include="$(BuildOutputFolder)\**\setup.exe"/> | |
| 383 | − <FilesToDelete Include="$(BuildOutputFolder)\**\*.pdb" Condition="'$(BuildFlavor)' == 'Release'"/> | |
| 384 | − <FilesToDelete Include="$(BuildOutputFolder)\**\*.vshost.exe"/> | |
| 385 | − <FilesToDelete Include="$(BuildOutputFolder)\**\*.vshost.exe.manifest"/> | |
| 386 | − </ItemGroup> | |
| 387 | − </Target> | |
| 388 | − | |
| 389 | − <Target Name="AfterBuildProjects"/> | |
| 390 | − | |
| 391 | − <Target Name="BeforeExecuteUnitTests"/> | |
| 392 | − | |
| 393 | − <Target Name="CoreExecuteUnitTests" Condition="'@(UnitTestAssemblies)' != ''"> | |
| 394 | − <!-- Execute tests in unit test assemblies. --> | |
| 395 | − <Message Text="Executing unit tests..."/> | |
| 396 | − <Exec Command="%22$(MSTest)%22 /testcontainer:%22%(UnitTestAssemblies.FullPath)%22" WorkingDirectory="%(UnitTestAssemblies.RootDir)%(UnitTestAssemblies.Directory)"/> | |
| 397 | − </Target> | |
| 398 | − | |
| 399 | − <Target Name="AfterExecuteUnitTests"/> | |
| 400 | − | |
| 401 | − <Target Name="BeforeLabelBuild"/> | |
| 402 | − | |
| 403 | − <Target Name="CoreLabelBuild" Condition="'$(BuildLabel)' != ''"> | |
| 404 | − <!-- Apply label for the current build. --> | |
| 405 | − <Message Text="Labeling build $(BuildLabel)..."/> | |
| 406 | − <Exec Command="%22$(TfsClient)%22 label %22$(BuildLabel)%22 %22$(LocalFolder)%22 /comment:%22Label applied for build $(BuildLabel).%22 /recursive"/> | |
| 407 | − </Target> | |
| 408 | − | |
| 409 | − <Target Name="AfterLabelBuild"/> | |
| 410 | − | |
| 411 | − <Target Name="BeforeCleanBuild"/> | |
| 412 | − | |
| 413 | − <Target Name="CoreCleanBuild"> | |
| 414 | − <!-- Clean output of the current build. --> | |
| 415 | − <Message Text="Cleaning build output..."/> | |
| 416 | − <Delete Files="@(FilesToDelete)" ContinueOnError="true"/> | |
| 417 | − </Target> | |
| 418 | − | |
| 419 | − <Target Name="AfterCleanBuild"/> | |
| 420 | − | |
| 421 | − <Target Name="BeforeDeployBuild"/> | |
| 422 | − | |
| 423 | − <Target Name="CoreDeployBuild" Condition="'$(BuildOutputFolder)' != '' And '$(BuildDeployFolder)' != ''"> | |
| 424 | − <!-- Copy build content to the deploy folder. --> | |
| 425 | − <Message Text="Deploying build content..."/> | |
| 426 | − <ItemGroup> | |
| 427 | − <FilesToDeploy Include="$(BuildOutputFolder)\**\*.*"/> | |
| 428 | − </ItemGroup> | |
| 429 | − <MakeDir Directories="$(BuildDeployFolder)" Condition="!Exists('$(BuildDeployFolder)')"/> | |
| 430 | − <Folder TaskAction="RemoveContent" Path="$(BuildDeployFolder)"/> | |
| 431 | − <Copy SourceFiles="@(FilesToDeploy)" DestinationFolder="$(BuildDeployFolder)\%(FilesToDeploy.RecursiveDir)"/> | |
| 432 | − <CallTarget Targets="ArchiveBuildOutput"/> | |
| 433 | − </Target> | |
| 434 | − | |
| 435 | − <Target Name="ArchiveBuildOutput" Condition="'@(BinariesToArchive)' != '' Or '@(InstallsToArchive)' != ''"> | |
| 436 | − <!-- Create specified archives of build content. --> | |
| 437 | − <Message Text="Archiving build content..."/> | |
| 438 | − <Copy SourceFiles="@(BinariesToArchive)" DestinationFolder="$(BinariesArchiveWorkingDirectory)\%(BinariesToArchive.RecursiveDir)"/> | |
| 439 | − <Copy SourceFiles="@(InstallsToArchive)" DestinationFolder="$(InstallsArchiveWorkingDirectory)\%(InstallsToArchive.RecursiveDir)"/> | |
| 440 | − <ItemGroup> | |
| 441 | − <BinariesToArchive Remove="@(BinariesToArchive)"/> | |
| 442 | − <InstallsToArchive Remove="@(InstallsToArchive)"/> | |
| 443 | − <BinariesToArchive Include="$(BinariesArchiveWorkingDirectory)\**\*.*"/> | |
| 444 | − <InstallsToArchive Include="$(InstallsArchiveWorkingDirectory)\**\*.*"/> | |
| 445 | − </ItemGroup> | |
| 446 | − <MSBuild.Community.Tasks.Zip Files="@(BinariesToArchive)" ZipFileName="$(BinariesArchiveFileName)" WorkingDirectory="$(BinariesArchiveWorkingDirectory)" Condition="'@(BinariesToArchive)' != ''"/> | |
| 447 | − <MSBuild.Community.Tasks.Zip Files="@(InstallsToArchive)" ZipFileName="$(InstallsArchiveFileName)" WorkingDirectory="$(InstallsArchiveWorkingDirectory)" Condition="'@(InstallsToArchive)' != ''"/> | |
| 448 | − <ItemGroup> | |
| 449 | − <Archives Include="$(LocalFolder)\*.zip"/> | |
| 450 | − </ItemGroup> | |
| 451 | − <Copy SourceFiles="@(Archives)" DestinationFolder="%(ArchiveDestinations.FullPath)" ContinueOnError="true"/> | |
| 452 | − </Target> | |
| 453 | − | |
| 454 | − <Target Name="AfterDeployBuild"/> | |
| 455 | − | |
| 456 | − <Target Name="BeforeDeleteWorkspace"/> | |
| 457 | − | |
| 458 | − <Target Name="CoreDeleteWorkspace"> | |
| 459 | − <!-- Checkin all of the pending changes. --> | |
| 460 | − <Message Text="Checking in pending changes..."/> | |
| 461 | − <Exec Command="%22$(TfsClient)%22 checkin /comment:%22$(ProjectName): Version change for build $(BuildLabel).%22 /recursive /noprompt %22$(LocalFolder)%22" ContinueOnError="true"/> | |
| 462 | − <!-- Delete the temporary build workpsace. --> | |
| 463 | − <Message Text="Deleting temporary workspace..."/> | |
| 464 | − <Exec Command="%22$(TfsClient)%22 workspace /delete /server:$(TfsServer) %22$(Workspace)%22" ContinueOnError="true"/> | |
| 465 | − </Target> | |
| 466 | − | |
| 467 | − <Target Name="AfterDeleteWorkspace"/> | |
| 468 | − | |
| 469 | − <Target Name="HandleBuildFailure"> | |
| 470 | − <!-- Handle any unexpected build errors. --> | |
| 471 | − <Message Text="Undoing pending changes..."/> | |
| 472 | − <Exec Command="%22$(TfsClient)%22 undo %22$(LocalFolder)%22 /recursive /noprompt" ContinueOnError="true"/> | |
| 473 | − <CallTarget Targets="DeleteWorkspace"/> | |
| 474 | − <Beep Duration="2000"/> | |
| 475 | − </Target> | |
| 476 | − | |
| 477 | −</Project> | |
| @@ -1,138 +0,0 @@ | ||
| 1 | −<?xml version="1.0" encoding="utf-8"?> | |
| 2 | − | |
| 3 | −<!-- | |
| 4 | −******************************************************************************************************* | |
| 5 | −** TfsHistory.targets - Gbtc | |
| 6 | −** | |
| 7 | −** Tennessee Valley Authority, 2009 | |
| 8 | −** No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved. | |
| 9 | −** | |
| 10 | −** This software is made freely available under the TVA Open Source Agreement (see below). | |
| 11 | −** | |
| 12 | −** Code Modification History: | |
| 13 | −** =================================================================================================== | |
| 14 | −** 07/30/2010 - Pinal C. Patel | |
| 15 | −** Generated original version of source code. | |
| 16 | −** 12/25/2010 - Pinal C. Patel | |
| 17 | −** Updated to correctly handle error condition. | |
| 18 | −** | |
| 19 | −******************************************************************************************************* | |
| 20 | −--> | |
| 21 | − | |
| 22 | −<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 23 | − | |
| 24 | − <UsingTask TaskName="TfsHistory" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
| 25 | − <ParameterGroup> | |
| 26 | − <TfsClient Required="true"/> | |
| 27 | − <LocalPath Required="true"/> | |
| 28 | − <VersionSpec Required="true"/> | |
| 29 | − <TotalChanges ParameterType="System.Int32" Output="true"/> | |
| 30 | − </ParameterGroup> | |
| 31 | − <Task> | |
| 32 | − <Code Type="Class" Language="cs"> | |
| 33 | − <![CDATA[ | |
| 34 | − using Microsoft.Build.Framework; | |
| 35 | − using Microsoft.Build.Utilities; | |
| 36 | − using System; | |
| 37 | − using System.Collections.Generic; | |
| 38 | − using System.Diagnostics; | |
| 39 | − | |
| 40 | − public class TfsHistory : Task | |
| 41 | − { | |
| 42 | − private string m_tfsClient; | |
| 43 | − private string m_localPath; | |
| 44 | − private string m_versionSpec; | |
| 45 | − private int m_totalChanges; | |
| 46 | − private List<string> m_output; | |
| 47 | − private string m_errorMessage; | |
| 48 | − | |
| 49 | − public TfsHistory() | |
| 50 | − { | |
| 51 | − // Initialize member variables. | |
| 52 | − m_output = new List<string>(); | |
| 53 | − } | |
| 54 | − | |
| 55 | − public string TfsClient | |
| 56 | − { | |
| 57 | − get { return m_tfsClient; } | |
| 58 | − set { m_tfsClient = value; } | |
| 59 | − } | |
| 60 | − | |
| 61 | − public string LocalPath | |
| 62 | − { | |
| 63 | − get { return m_localPath; } | |
| 64 | − set { m_localPath = value; } | |
| 65 | − } | |
| 66 | − | |
| 67 | − public string VersionSpec | |
| 68 | − { | |
| 69 | − get { return m_versionSpec; } | |
| 70 | − set { m_versionSpec = value; } | |
| 71 | − } | |
| 72 | − | |
| 73 | − [Output()] | |
| 74 | − public int TotalChanges | |
| 75 | − { | |
| 76 | − get { return m_totalChanges; } | |
| 77 | − } | |
| 78 | − | |
| 79 | − public override bool Execute() | |
| 80 | − { | |
| 81 | − try | |
| 82 | − { | |
| 83 | − // Launch TFS Client and wait for it to complete. | |
| 84 | − using (Process p = new Process()) | |
| 85 | − { | |
| 86 | − p.StartInfo.FileName = m_tfsClient; | |
| 87 | − p.StartInfo.Arguments = string.Format(@"history ""{0}"" /version:{1} /recursive /noprompt", m_localPath, m_versionSpec); | |
| 88 | − p.StartInfo.UseShellExecute = false; | |
| 89 | − p.StartInfo.RedirectStandardOutput = true; | |
| 90 | − p.StartInfo.RedirectStandardError = true; | |
| 91 | − p.OutputDataReceived += OnOutputDataReceived; | |
| 92 | − p.ErrorDataReceived += OnErrorDataReceived; | |
| 93 | − p.Start(); | |
| 94 | − p.BeginOutputReadLine(); | |
| 95 | − p.BeginErrorReadLine(); | |
| 96 | − p.WaitForExit(); | |
| 97 | − } | |
| 98 | − | |
| 99 | − // Check if the command encountered an error. | |
| 100 | − if (!string.IsNullOrEmpty(m_errorMessage)) | |
| 101 | − throw new Exception(m_errorMessage); | |
| 102 | − | |
| 103 | − // Count the number of changes returned by the query. | |
| 104 | − if (m_output.Count > 2) | |
| 105 | − m_totalChanges = m_output.Count - 2; | |
| 106 | − | |
| 107 | − return true; | |
| 108 | − } | |
| 109 | − catch (Exception ex) | |
| 110 | − { | |
| 111 | − // Notify about the exception. | |
| 112 | − m_totalChanges = -1; | |
| 113 | − Log.LogError(ex.Message); | |
| 114 | − | |
| 115 | − return false; | |
| 116 | − } | |
| 117 | − } | |
| 118 | − | |
| 119 | − private void OnOutputDataReceived(object sender, DataReceivedEventArgs e) | |
| 120 | − { | |
| 121 | − // Accumulate the output for processing. | |
| 122 | − if (!string.IsNullOrEmpty(e.Data)) | |
| 123 | − m_output.Add(e.Data); | |
| 124 | − } | |
| 125 | − | |
| 126 | − private void OnErrorDataReceived(object sender, DataReceivedEventArgs e) | |
| 127 | − { | |
| 128 | − // Capture the encountered error. | |
| 129 | − if (!string.IsNullOrEmpty(e.Data)) | |
| 130 | − m_errorMessage = e.Data; | |
| 131 | − } | |
| 132 | − } | |
| 133 | − ]]> | |
| 134 | − </Code> | |
| 135 | − </Task> | |
| 136 | − </UsingTask> | |
| 137 | − | |
| 138 | −</Project> | |
| @@ -1,112 +0,0 @@ | ||
| 1 | −<?xml version="1.0" encoding="utf-8"?> | |
| 2 | − | |
| 3 | −<!-- | |
| 4 | −******************************************************************************************************* | |
| 5 | −** TfsVersion.targets - Gbtc | |
| 6 | −** | |
| 7 | −** Tennessee Valley Authority, 2009 | |
| 8 | −** No copyright is claimed pursuant to 17 USC § 105. All Other Rights Reserved. | |
| 9 | −** | |
| 10 | −** This software is made freely available under the TVA Open Source Agreement (see below). | |
| 11 | −** | |
| 12 | −** Code Modification History: | |
| 13 | −** =================================================================================================== | |
| 14 | −** 07/30/2010 - Pinal C. Patel | |
| 15 | −** Generated original version of source code. | |
| 16 | −** | |
| 17 | −******************************************************************************************************* | |
| 18 | −--> | |
| 19 | − | |
| 20 | −<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 21 | − | |
| 22 | − <UsingTask TaskName="TfsVersion" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
| 23 | − <ParameterGroup> | |
| 24 | − <TfsClient Required="true"/> | |
| 25 | − <LocalPath Required="true"/> | |
| 26 | − <Changeset ParameterType="System.Int32" Output="true"/> | |
| 27 | − </ParameterGroup> | |
| 28 | − <Task> | |
| 29 | − <Code Type="Class" Language="cs"> | |
| 30 | − <![CDATA[ | |
| 31 | − using Microsoft.Build.Framework; | |
| 32 | − using Microsoft.Build.Utilities; | |
| 33 | − using System; | |
| 34 | − using System.Collections.Generic; | |
| 35 | − using System.Diagnostics; | |
| 36 | − | |
| 37 | − public class TfsVersion : Task | |
| 38 | − { | |
| 39 | − private string m_tfsClient; | |
| 40 | − private string m_localPath; | |
| 41 | − private int m_changeset; | |
| 42 | − private List<string> m_output; | |
| 43 | − | |
| 44 | − public TfsVersion() | |
| 45 | − { | |
| 46 | − // Initialize member variables. | |
| 47 | − m_output = new List<string>(); | |
| 48 | − } | |
| 49 | − | |
| 50 | − public string TfsClient | |
| 51 | − { | |
| 52 | − get { return m_tfsClient; } | |
| 53 | − set { m_tfsClient = value; } | |
| 54 | − } | |
| 55 | − | |
| 56 | − public string LocalPath | |
| 57 | − { | |
| 58 | − get { return m_localPath; } | |
| 59 | − set { m_localPath = value; } | |
| 60 | − } | |
| 61 | − | |
| 62 | − [Output()] | |
| 63 | − public int Changeset | |
| 64 | − { | |
| 65 | − get { return m_changeset; } | |
| 66 | − } | |
| 67 | − | |
| 68 | − public override bool Execute() | |
| 69 | − { | |
| 70 | − try | |
| 71 | − { | |
| 72 | − // Launch TFS Client and wait for it to complete. | |
| 73 | − using (Process p = new Process()) | |
| 74 | − { | |
| 75 | − p.StartInfo.FileName = m_tfsClient; | |
| 76 | − p.StartInfo.Arguments = string.Format(@"history ""{0}"" /version:T /stopafter:1 /recursive /noprompt", m_localPath); | |
| 77 | − p.StartInfo.UseShellExecute = false; | |
| 78 | − p.StartInfo.RedirectStandardOutput = true; | |
| 79 | − p.OutputDataReceived += OnOutputDataReceived; | |
| 80 | − p.Start(); | |
| 81 | − p.BeginOutputReadLine(); | |
| 82 | − p.WaitForExit(); | |
| 83 | − } | |
| 84 | − | |
| 85 | − // Extract the latest changeset number from the output. | |
| 86 | − if (m_output.Count > 2) | |
| 87 | − int.TryParse(m_output[2].Substring(0, m_output[2].IndexOf(' ')), out m_changeset); | |
| 88 | − | |
| 89 | − return true; | |
| 90 | − } | |
| 91 | − catch (Exception ex) | |
| 92 | − { | |
| 93 | − // Notify about the exception. | |
| 94 | − Log.LogError(ex.Message); | |
| 95 | − return false; | |
| 96 | − } | |
| 97 | − } | |
| 98 | − | |
| 99 | − private void OnOutputDataReceived(object sender, DataReceivedEventArgs e) | |
| 100 | − { | |
| 101 | − // Accumulate the output for processing. | |
| 102 | − if (!string.IsNullOrEmpty(e.Data)) | |
| 103 | − m_output.Add(e.Data); | |
| 104 | − } | |
| 105 | − | |
| 106 | − } | |
| 107 | − ]]> | |
| 108 | − </Code> | |
| 109 | − </Task> | |
| 110 | − </UsingTask> | |
| 111 | − | |
| 112 | −</Project> | |
Binary file not shown.
| @@ -1,139 +0,0 @@ | ||
| 1 | −<?xml version="1.0" encoding="utf-8" ?> | |
| 2 | −<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 3 | − <!-- $Id: MSBuild.Community.Tasks.Targets 480 2009-09-22 16:49:00Z pwelter34 $ --> | |
| 4 | − | |
| 5 | − <PropertyGroup> | |
| 6 | − <MSBuildCommunityTasksLib>MSBuild.Community.Tasks.dll</MSBuildCommunityTasksLib> | |
| 7 | − </PropertyGroup> | |
| 8 | − | |
| 9 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AspNet.InstallAspNet" /> | |
| 10 | − | |
| 11 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AssemblyInfo" /> | |
| 12 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Attrib" /> | |
| 13 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Beep" /> | |
| 14 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.DeleteTree" /> | |
| 15 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlExecute" /> | |
| 16 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FileUpdate" /> | |
| 17 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FtpUpload" /> | |
| 18 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FxCop" /> | |
| 19 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.GacUtil" /> | |
| 20 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.GetSolutionProjects" /> | |
| 21 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ILMerge" /> | |
| 22 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Mail" /> | |
| 23 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Merge" /> | |
| 24 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Move" /> | |
| 25 | − | |
| 26 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpCreateRemoteDirectory" /> | |
| 27 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpDirectoryExists" /> | |
| 28 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpUploadDirectoryContent" /> | |
| 29 | − | |
| 30 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Add" /> | |
| 31 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Divide" /> | |
| 32 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Modulo" /> | |
| 33 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Multiple" /> | |
| 34 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Subtract" /> | |
| 35 | − | |
| 36 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NDoc" /> | |
| 37 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NUnit" /> | |
| 38 | − | |
| 39 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Oracle.AddTnsName" /> | |
| 40 | − | |
| 41 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Prompt" /> | |
| 42 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegistryRead" /> | |
| 43 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegistryWrite" /> | |
| 44 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexMatch" /> | |
| 45 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexReplace" /> | |
| 46 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexCompiler" /> | |
| 47 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RoboCopy" /> | |
| 48 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Script" /> | |
| 49 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ServiceController" /> | |
| 50 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ServiceQuery" /> | |
| 51 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sleep" /> | |
| 52 | − | |
| 53 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolController" /> | |
| 54 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolCreate" /> | |
| 55 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolDelete" /> | |
| 56 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryCreate" /> | |
| 57 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryDelete" /> | |
| 58 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryScriptMap" /> | |
| 59 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectorySetting" /> | |
| 60 | − | |
| 61 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Install.InstallAssembly" /> | |
| 62 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Install.UninstallAssembly" /> | |
| 63 | − | |
| 64 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Schema.TaskSchema" /> | |
| 65 | − | |
| 66 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sound" /> | |
| 67 | − | |
| 68 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssAdd" /> | |
| 69 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssCheckin" /> | |
| 70 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssCheckout" /> | |
| 71 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssClean" /> | |
| 72 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssDiff" /> | |
| 73 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssGet" /> | |
| 74 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssHistory" /> | |
| 75 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssLabel" /> | |
| 76 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssUndoCheckout" /> | |
| 77 | − | |
| 78 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.SrcTool" /> | |
| 79 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.PdbStr" /> | |
| 80 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.SvnSourceIndex" /> | |
| 81 | − | |
| 82 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlServer.ExecuteDDL" /> | |
| 83 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlServer.SqlPubWiz" /> | |
| 84 | − | |
| 85 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCheckout" /> | |
| 86 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnClient" /> | |
| 87 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCopy" /> | |
| 88 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCommit" /> | |
| 89 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnExport" /> | |
| 90 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnInfo" /> | |
| 91 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnUpdate" /> | |
| 92 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnVersion" /> | |
| 93 | − | |
| 94 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Tfs.TfsVersion" /> | |
| 95 | − | |
| 96 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.TemplateFile" /> | |
| 97 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Time" /> | |
| 98 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Unzip" /> | |
| 99 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Version" /> | |
| 100 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.WebDownload" /> | |
| 101 | − | |
| 102 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xml.XmlMassUpdate" /> | |
| 103 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xml.XmlQuery" /> | |
| 104 | − | |
| 105 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.XmlRead" /> | |
| 106 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.XmlUpdate" /> | |
| 107 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xslt" /> | |
| 108 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Zip" /> | |
| 109 | − | |
| 110 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.JavaScript.JSCompress" /> | |
| 111 | − | |
| 112 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.User" /> | |
| 113 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Computer" /> | |
| 114 | − | |
| 115 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.BuildAssembler" /> | |
| 116 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.ChmBuilder" /> | |
| 117 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.DBCSFix" /> | |
| 118 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.MRefBuilder" /> | |
| 119 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.Sandcastle" /> | |
| 120 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.XslTransform" /> | |
| 121 | − | |
| 122 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.HtmlHelp.ChmCompiler" /> | |
| 123 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.HtmlHelp.HxCompiler" /> | |
| 124 | − | |
| 125 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SymbolServer.SymStore" /> | |
| 126 | − | |
| 127 | − <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Net.HttpRequest" /> | |
| 128 | − | |
| 129 | − <ItemGroup> | |
| 130 | − <FxCopRuleAssemblies Include="UsageRules.dll"/> | |
| 131 | − <FxCopRuleAssemblies Include="SecurityRules.dll"/> | |
| 132 | − <FxCopRuleAssemblies Include="PortabilityRules.dll"/> | |
| 133 | − <FxCopRuleAssemblies Include="PerformanceRules.dll"/> | |
| 134 | − <FxCopRuleAssemblies Include="MobilityRules.dll"/> | |
| 135 | − <FxCopRuleAssemblies Include="InteroperabilityRules.dll"/> | |
| 136 | − <FxCopRuleAssemblies Include="GlobalizationRules.dll"/> | |
| 137 | − <FxCopRuleAssemblies Include="DesignRules.dll"/> | |
| 138 | − </ItemGroup> | |
| 139 | −</Project> | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| @@ -1,108 +0,0 @@ | ||
| 1 | −<?xml version="1.0" encoding="utf-8"?> | |
| 2 | −<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| 3 | − <PropertyGroup> | |
| 4 | − <ExtensionTasksPath></ExtensionTasksPath> | |
| 5 | − </PropertyGroup> | |
| 6 | − | |
| 7 | − <!-- ============== Framework ============== --> | |
| 8 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.CodeQuality.FxCop"/> | |
| 9 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Communication.Email"/> | |
| 10 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Communication.Twitter"/> | |
| 11 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Compression.Cab"/> | |
| 12 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.ActiveDirectory"/> | |
| 13 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.ComponentServices"/> | |
| 14 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.EnvironmentVariable"/> | |
| 15 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.EventLog"/> | |
| 16 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.EventSource"/> | |
| 17 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.Network"/> | |
| 18 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.PerformanceCounters"/> | |
| 19 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.Registry"/> | |
| 20 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.SystemDrive"/> | |
| 21 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.WindowsService"/> | |
| 22 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Computer.WshShell"/> | |
| 23 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.Detokenise"/> | |
| 24 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.File"/> | |
| 25 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.FindUnder"/> | |
| 26 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.Folder"/> | |
| 27 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.FileSystem.Share"/> | |
| 28 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Assembly"/> | |
| 29 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.AssemblyInfo"/> | |
| 30 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.DateAndTime"/> | |
| 31 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.DynamicExecute"/> | |
| 32 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Gac"/> | |
| 33 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Guid"/> | |
| 34 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Metadata"/> | |
| 35 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.MSBuildHelper"/> | |
| 36 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.UpdateMetadata"/> | |
| 37 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Signing"/> | |
| 38 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.TextString"/> | |
| 39 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Framework.Thread"/> | |
| 40 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Management.Wmi"/> | |
| 41 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Multimedia.Sound"/> | |
| 42 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Science.Maths"/> | |
| 43 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Security.Certificate"/> | |
| 44 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.SqlServer.SqlCmd"/> | |
| 45 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.SqlServer.SqlExecute"/> | |
| 46 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.SqlServer.SqlVersion"/> | |
| 47 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.UI.Console"/> | |
| 48 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.UI.Dialog"/> | |
| 49 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.SourceSafe"/> | |
| 50 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.TfsSource"/> | |
| 51 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.TfsSourceAdmin"/> | |
| 52 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.TfsVersion"/> | |
| 53 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.VisualStudio.VB6"/> | |
| 54 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.HttpWebRequest"/> | |
| 55 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.Iis6AppPool"/> | |
| 56 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.Iis6ServiceExtensionFile"/> | |
| 57 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.Iis6VirtualDirectory"/> | |
| 58 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.Iis6Website"/> | |
| 59 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Web.WebClient"/> | |
| 60 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Xml.XmlFile"/> | |
| 61 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.dll" TaskName="MSBuild.ExtensionPack.Xml.XmlTask"/> | |
| 62 | − | |
| 63 | − | |
| 64 | − <!-- ============== BizTalk ============== --> | |
| 65 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkApplication"/> | |
| 66 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkAssembly"/> | |
| 67 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkHost"/> | |
| 68 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkHostInstance"/> | |
| 69 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkOrchestration"/> | |
| 70 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkSendHandler"/> | |
| 71 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkSendPort"/> | |
| 72 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkReceiveHandler"/> | |
| 73 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.BizTalk.dll" TaskName="MSBuild.ExtensionPack.BizTalk.BizTalkReceivePort"/> | |
| 74 | − | |
| 75 | − | |
| 76 | − <!-- ============== Iis7 ============== --> | |
| 77 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.Iis7.dll" TaskName="MSBuild.ExtensionPack.Web.Iis7Application"/> | |
| 78 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.Iis7.dll" TaskName="MSBuild.ExtensionPack.Web.Iis7AppPool"/> | |
| 79 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.Iis7.dll" TaskName="MSBuild.ExtensionPack.Web.Iis7Binding"/> | |
| 80 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.Iis7.dll" TaskName="MSBuild.ExtensionPack.Web.Iis7Website"/> | |
| 81 | − | |
| 82 | − | |
| 83 | − <!-- ============== JSharp ============== --> | |
| 84 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)MSBuild.ExtensionPack.JSharp.dll" TaskName="MSBuild.ExtensionPack.Compression.Zip"/> | |
| 85 | − | |
| 86 | − | |
| 87 | − <!-- ============== StyleCop ============== --> | |
| 88 | − <UsingTask AssemblyFile="$(MSBuildExtensionsPath)\Microsoft\StyleCop\v4.3\MSBuild.ExtensionPack.StyleCop.dll" TaskName="MSBuild.ExtensionPack.CodeQuality.StyleCop"/> | |
| 89 | − | |
| 90 | − | |
| 91 | − <!-- ============== Sql2005 ============== --> | |
| 92 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sql2005.dll" TaskName="MSBuild.ExtensionPack.Sql2005.Database"/> | |
| 93 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sql2005.dll" TaskName="MSBuild.ExtensionPack.Sql2005.Server"/> | |
| 94 | − | |
| 95 | − | |
| 96 | − <!-- ============== Sql2008 ============== --> | |
| 97 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sql2008.dll" TaskName="MSBuild.ExtensionPack.Sql2008.Database"/> | |
| 98 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sql2008.dll" TaskName="MSBuild.ExtensionPack.Sql2008.Server"/> | |
| 99 | − | |
| 100 | − | |
| 101 | − <!-- ============== Sync ============== --> | |
| 102 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Sync.dll" TaskName="MSBuild.ExtensionPack.FileSystem.Sync"/> | |
| 103 | − | |
| 104 | − | |
| 105 | − <!-- ============== Tfs ============== --> | |
| 106 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Tfs.dll" TaskName="MSBuild.ExtensionPack.Tfs.DevEnv"/> | |
| 107 | − <UsingTask AssemblyFile="$(ExtensionTasksPath)\MSBuild.ExtensionPack.Tfs.dll" TaskName="MSBuild.ExtensionPack.Tfs.TeamBuild"/> | |
| 108 | −</Project> | |