-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3432b5
commit eeb6816
Showing
41 changed files
with
4,853 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<Activity mc:Ignorable="sad" x:Class="TfsBuild.Process" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mtbc="clr-namespace:Microsoft.TeamFoundation.Build.Client;assembly=Microsoft.TeamFoundation.Build.Client" xmlns:mtbw="clr-namespace:Microsoft.TeamFoundation.Build.Workflow;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtbwa="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Activities;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtbwt="clr-namespace:Microsoft.TeamFoundation.Build.Workflow.Tracking;assembly=Microsoft.TeamFoundation.Build.Workflow" xmlns:mtvc="clr-namespace:Microsoft.TeamFoundation.VersionControl.Client;assembly=Microsoft.TeamFoundation.VersionControl.Client" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:sad="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation" xmlns:sad1="clr-namespace:System.Activities.Debugger;assembly=System.Activities" xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib" xmlns:this="clr-namespace:TfsBuild;" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
<x:Members> | ||
<x:Property Name="ConfigurationFolderPath" Type="InArgument(x:String)" /> | ||
<x:Property Name="AgentSettings" Type="InArgument(mtbwa:AgentSettings)" /> | ||
<x:Property Name="MSBuildArguments" Type="InArgument(x:String)" /> | ||
<x:Property Name="MSBuildPlatform" Type="InArgument(mtbwa:ToolPlatform)" /> | ||
<x:Property Name="DoNotDownloadBuildType" Type="InArgument(x:Boolean)" /> | ||
<x:Property Name="LogFilePerProject" Type="InArgument(x:Boolean)" /> | ||
<x:Property Name="SourcesSubdirectory" Type="InArgument(x:String)" /> | ||
<x:Property Name="BinariesSubdirectory" Type="InArgument(x:String)" /> | ||
<x:Property Name="TestResultsSubdirectory" Type="InArgument(x:String)" /> | ||
<x:Property Name="RecursionType" Type="InArgument(mtvc:RecursionType)" /> | ||
<x:Property Name="Verbosity" Type="InArgument(mtbw:BuildVerbosity)" /> | ||
<x:Property Name="Metadata" Type="mtbw:ProcessParameterMetadataCollection" /> | ||
<x:Property Name="SupportedReasons" Type="mtbc:BuildReason" /> | ||
</x:Members> | ||
<this:Process.ConfigurationFolderPath> | ||
<InArgument x:TypeArguments="x:String" /> | ||
</this:Process.ConfigurationFolderPath> | ||
<this:Process.AgentSettings>[New Microsoft.TeamFoundation.Build.Workflow.Activities.AgentSettings() With {.MaxWaitTime = New System.TimeSpan(4, 0, 0), .MaxExecutionTime = New System.TimeSpan(0, 0, 0), .TagComparison = Microsoft.TeamFoundation.Build.Workflow.Activities.TagComparison.MatchExactly }]</this:Process.AgentSettings> | ||
<this:Process.MSBuildArguments> | ||
<InArgument x:TypeArguments="x:String" /> | ||
</this:Process.MSBuildArguments> | ||
<this:Process.MSBuildPlatform>[Microsoft.TeamFoundation.Build.Workflow.Activities.ToolPlatform.Auto]</this:Process.MSBuildPlatform> | ||
<this:Process.DoNotDownloadBuildType>[False]</this:Process.DoNotDownloadBuildType> | ||
<this:Process.LogFilePerProject>[False]</this:Process.LogFilePerProject> | ||
<this:Process.SourcesSubdirectory> | ||
<InArgument x:TypeArguments="x:String" /> | ||
</this:Process.SourcesSubdirectory> | ||
<this:Process.BinariesSubdirectory> | ||
<InArgument x:TypeArguments="x:String" /> | ||
</this:Process.BinariesSubdirectory> | ||
<this:Process.TestResultsSubdirectory> | ||
<InArgument x:TypeArguments="x:String" /> | ||
</this:Process.TestResultsSubdirectory> | ||
<this:Process.RecursionType>[Microsoft.TeamFoundation.VersionControl.Client.RecursionType.OneLevel]</this:Process.RecursionType> | ||
<this:Process.Verbosity>[Microsoft.TeamFoundation.Build.Workflow.BuildVerbosity.Normal]</this:Process.Verbosity> | ||
<this:Process.Metadata> | ||
<mtbw:ProcessParameterMetadataCollection /> | ||
</this:Process.Metadata> | ||
<this:Process.SupportedReasons>All</this:Process.SupportedReasons> | ||
<mva:VisualBasic.Settings>Assembly references and imported namespaces serialized as XML namespaces</mva:VisualBasic.Settings> | ||
<Sequence mtbwt:BuildTrackingParticipant.Importance="None"> | ||
<Sequence.Variables> | ||
<Variable x:TypeArguments="mtbc:IBuildDetail" Name="BuildDetail" /> | ||
</Sequence.Variables> | ||
<mtbwa:GetBuildDetail DisplayName="Get the Build" Result="[BuildDetail]" /> | ||
<mtbwa:InvokeForReason DisplayName="Update Build Number for Triggered Builds" Reason="Triggered"> | ||
<mtbwa:UpdateBuildNumber BuildNumberFormat="["$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)"]" DisplayName="Update Build Number" /> | ||
</mtbwa:InvokeForReason> | ||
<mtbwa:AgentScope DisplayName="Run On Agent" MaxExecutionTime="[AgentSettings.MaxExecutionTime]" MaxWaitTime="[AgentSettings.MaxWaitTime]" ReservationSpec="[AgentSettings.GetAgentReservationSpec()]"> | ||
<mtbwa:AgentScope.Variables> | ||
<Variable x:TypeArguments="x:String" Name="buildDirectory" /> | ||
</mtbwa:AgentScope.Variables> | ||
<mtbwa:GetBuildDirectory DisplayName="Get the Build Directory" Result="[buildDirectory]" /> | ||
<If Condition="[Not String.IsNullOrEmpty(ConfigurationFolderPath)]" DisplayName="If Not String.IsNullOrEmpty(ConfigurationFolderPath)"> | ||
<If.Then> | ||
<mtbwa:TfsBuild BinariesSubdirectory="[BinariesSubdirectory]" BuildDirectory="[buildDirectory]" CommandLineArguments="[MSBuildArguments]" ConfigurationFolderPath="[ConfigurationFolderPath]" DisplayName="Run TfsBuild for Configuration Folder" DoNotDownloadBuildType="[DoNotDownloadBuildType]" LogFilePerProject="[LogFilePerProject]" RecursionType="[RecursionType]" SourcesSubdirectory="[SourcesSubdirectory]" TestResultsSubdirectory="[TestResultsSubdirectory]" ToolPlatform="[MSBuildPlatform]" Verbosity="[Verbosity]" /> | ||
</If.Then> | ||
</If> | ||
<If Condition="[BuildDetail.CompilationStatus = Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Unknown]" DisplayName="If CompilationStatus = Unknown"> | ||
<If.Then> | ||
<mtbwa:SetBuildProperties CompilationStatus="[Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Succeeded]" DisplayName="Set CompilationStatus to Succeeded" PropertiesToSet="CompilationStatus" /> | ||
</If.Then> | ||
</If> | ||
<If Condition="[BuildDetail.TestStatus = Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Unknown]" DisplayName="If TestStatus = Unknown"> | ||
<If.Then> | ||
<mtbwa:SetBuildProperties DisplayName="Set TestStatus to Succeeded" PropertiesToSet="TestStatus" TestStatus="[Microsoft.TeamFoundation.Build.Client.BuildPhaseStatus.Succeeded]" /> | ||
</If.Then> | ||
</If> | ||
</mtbwa:AgentScope> | ||
<mtbwa:InvokeForReason Reason="CheckInShelveset"> | ||
<mtbwa:CheckInGatedChanges DisplayName="Check In Gated Changes" /> | ||
</mtbwa:InvokeForReason> | ||
</Sequence> | ||
</Activity> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 16 | ||
VisualStudioVersion = 16.0.31702.278 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Scriptio", "Scriptio\Scriptio.csproj", "{D00DC776-3386-4146-9AD8-8408FA0F5FD7}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{D00DC776-3386-4146-9AD8-8408FA0F5FD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{D00DC776-3386-4146-9AD8-8408FA0F5FD7}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{D00DC776-3386-4146-9AD8-8408FA0F5FD7}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{D00DC776-3386-4146-9AD8-8408FA0F5FD7}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {0CE2C505-C0B0-408B-8493-9A913322FB9D} | ||
EndGlobalSection | ||
EndGlobal |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/////////////////////////////////////////////////////////////////////////////////////////////// | ||
// Scriptio - Script SQL Server 2005 objects | ||
// Copyright (C) 2005 Bill Graziano | ||
|
||
// This program is free software; you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation; either version 2 of the License, or | ||
// (at your option) any later version. | ||
|
||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with this program; if not, write to the Free Software | ||
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
/////////////////////////////////////////////////////////////////////////////////////////////// | ||
|
||
using System; | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using System.Data; | ||
using System.Drawing; | ||
using System.Text; | ||
using System.Windows.Forms; | ||
using System.Reflection; | ||
|
||
using System.Deployment.Application; | ||
|
||
namespace Scriptio | ||
{ | ||
public partial class AboutForm : Form | ||
{ | ||
public AboutForm() | ||
{ | ||
InitializeComponent(); | ||
|
||
lblAssemblyVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString().Trim(); | ||
|
||
lblClickOnceVersion.Text = (ApplicationDeployment.IsNetworkDeployed ? | ||
" " + ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString().Trim() : | ||
"" ).Trim(); | ||
|
||
if (ApplicationDeployment.IsNetworkDeployed) | ||
btnUpdates.Enabled = true; | ||
else | ||
btnUpdates.Enabled = false; | ||
} | ||
|
||
private void btnClose_Click(object sender, EventArgs e) | ||
{ | ||
this.Close(); | ||
} | ||
|
||
private void btnUpdates_Click(object sender, EventArgs e) | ||
{ | ||
if (ApplicationDeployment.IsNetworkDeployed) | ||
{ | ||
Cursor cur = Cursor.Current; | ||
Cursor.Current = Cursors.WaitCursor; | ||
try | ||
{ | ||
if (ApplicationDeployment.CurrentDeployment.CheckForUpdate()) | ||
{ | ||
Cursor.Current = cur; | ||
if (MessageBox.Show( | ||
"An updated version is available. Would you like to update now?", | ||
"Update Found", MessageBoxButtons.YesNo) == DialogResult.Yes) | ||
{ | ||
Cursor.Current = Cursors.WaitCursor; | ||
ApplicationDeployment.CurrentDeployment.Update(); | ||
Cursor.Current = cur; | ||
MessageBox.Show("Update downloaded. Scriptio will now restart."); | ||
Application.Restart(); | ||
} | ||
} | ||
else | ||
{ | ||
Cursor.Current = cur; | ||
MessageBox.Show("No updates available at this time."); | ||
} | ||
} | ||
finally | ||
{ | ||
Cursor.Current = cur; | ||
} | ||
} | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.