-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from saucepleez/development-branch
Merge
- Loading branch information
Showing
44 changed files
with
3,111 additions
and
92 deletions.
There are no files selected for viewing
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
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,58 @@ | ||
# .NET Desktop | ||
# Build and run tests for .NET Desktop or Windows classic desktop solutions. | ||
# Add steps that publish symbols, save build artifacts, and more: | ||
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net | ||
|
||
trigger: | ||
- master | ||
- development-branch | ||
|
||
pool: | ||
vmImage: 'windows-latest' | ||
|
||
variables: | ||
solution: '**/*.sln' | ||
buildPlatform: 'Any CPU' | ||
buildConfiguration: 'Release' | ||
|
||
steps: | ||
- task: NuGetToolInstaller@1 | ||
|
||
- task: NuGetCommand@2 | ||
inputs: | ||
restoreSolution: '$(solution)' | ||
|
||
- task: VSBuild@1 | ||
inputs: | ||
solution: '$(solution)' | ||
platform: '$(buildPlatform)' | ||
configuration: '$(buildConfiguration)' | ||
|
||
- task: VSTest@2 | ||
inputs: | ||
platform: '$(buildPlatform)' | ||
configuration: '$(buildConfiguration)' | ||
|
||
- task: DownloadSecureFile@1 | ||
inputs: | ||
secureFile: 'app_cert' | ||
|
||
- task: codesigning@2 | ||
inputs: | ||
secureFileId: 'app_cert' | ||
signCertPassword: '$(certPass)' | ||
files: '**/taskt.exe' | ||
timeServer: 'http://timestamp.digicert.com' | ||
hashingAlgorithm: 'SHA256' | ||
|
||
- task: CopyFiles@2 | ||
inputs: | ||
SourceFolder: '$(Build.SourcesDirectory)' | ||
Contents: '**' | ||
TargetFolder: '$(Build.ArtifactStagingDirectory)' | ||
|
||
- task: PublishBuildArtifacts@1 | ||
inputs: | ||
PathtoPublish: '$(Build.ArtifactStagingDirectory)' | ||
ArtifactName: 'taskt' | ||
publishLocation: 'Container' |
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
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
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,41 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Windows.Forms; | ||
using taskt.UI.CustomControls; | ||
using taskt.UI.Forms; | ||
|
||
namespace taskt.Core.Automation.Commands | ||
{ | ||
[Serializable] | ||
[Attributes.ClassAttributes.Group("Error Handling Commands")] | ||
[Attributes.ClassAttributes.Description("This command allows you to define actions that should occur after encountering an error.")] | ||
[Attributes.ClassAttributes.UsesDescription("Use this command when you want to define how your script should behave when an error is encountered.")] | ||
[Attributes.ClassAttributes.ImplementationDescription("")] | ||
public class CatchExceptionCommand : ScriptCommand | ||
{ | ||
public string ErrorMessage { get; set; } | ||
public string StackTrace { get; set; } | ||
|
||
public CatchExceptionCommand() | ||
{ | ||
this.CommandName = "CatchExceptionCommand"; | ||
this.SelectionName = "Catch Exception"; | ||
this.CommandEnabled = true; | ||
this.CustomRendering = true; | ||
} | ||
public override void RunCommand(object sender) | ||
{ | ||
//no execution required, used as a marker by the Automation Engine | ||
} | ||
public override List<Control> Render(frmCommandEditor editor) | ||
{ | ||
base.Render(editor); | ||
RenderedControls.AddRange(CommandControls.CreateDefaultInputGroupFor("v_Comment", this, editor)); | ||
return RenderedControls; | ||
} | ||
public override string GetDisplayValue() | ||
{ | ||
return base.GetDisplayValue(); | ||
} | ||
} | ||
} |
Oops, something went wrong.