Skip to content

Commit

Permalink
Sample: Getting Started (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfevia authored Jul 11, 2024
1 parent 96c4b80 commit d1fed14
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PowerAutomate.Desktop.sln
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Modules.Windows.TaskSchedul
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Modules.Windows.Notifications.Actions", "modules\Modules.Windows.Notifications.Actions\Modules.Windows.Notifications.Actions.csproj", "{EE7E70E2-7838-4B4E-BCC1-C74051ACBBA5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GettingStarted", "GettingStarted", "{A5E3C936-7C1F-4719-9EAA-37F4AE439EF7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Modules.GettingStarted.Actions", "samples\Modules.GettingStarted.Actions\Modules.GettingStarted.Actions.csproj", "{1D4838E3-22A7-4D65-91CF-2395778EE92F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -79,6 +83,10 @@ Global
{EE7E70E2-7838-4B4E-BCC1-C74051ACBBA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EE7E70E2-7838-4B4E-BCC1-C74051ACBBA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EE7E70E2-7838-4B4E-BCC1-C74051ACBBA5}.Release|Any CPU.Build.0 = Release|Any CPU
{1D4838E3-22A7-4D65-91CF-2395778EE92F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D4838E3-22A7-4D65-91CF-2395778EE92F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D4838E3-22A7-4D65-91CF-2395778EE92F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D4838E3-22A7-4D65-91CF-2395778EE92F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -98,6 +106,8 @@ Global
{A9858CCE-DDB1-4942-84BE-08991E46A818} = {6709150F-B5E8-4377-BAEA-5394C5340806}
{E7F31F2C-1091-4B82-A685-C7A74FC80A1D} = {3B78C634-DFD6-43DA-A30E-33AC42224BD4}
{EE7E70E2-7838-4B4E-BCC1-C74051ACBBA5} = {3B78C634-DFD6-43DA-A30E-33AC42224BD4}
{A5E3C936-7C1F-4719-9EAA-37F4AE439EF7} = {64A2FE14-920C-4A2F-8F4A-28B77CC84BA4}
{1D4838E3-22A7-4D65-91CF-2395778EE92F} = {A5E3C936-7C1F-4719-9EAA-37F4AE439EF7}
EndGlobalSection
GlobalSection(SharedMSBuildProjectFiles) = preSolution
Modules.Actions.Shared\Modules.Actions.Shared.projitems*{7e19e2f1-6de7-4a0e-aed8-7cea38b166af}*SharedItemsImports = 13
Expand Down
23 changes: 23 additions & 0 deletions samples/Modules.GettingStarted.Actions/GettingStartedAction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// --------------------------------------------------------------
// Copyright (c) Jesus Fernandez. All Rights Reserved.
// --------------------------------------------------------------

using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK;
using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes;

namespace PowerAutomate.Desktop.Modules.GettingStarted.Actions;

[Action]
public class GettingStartedAction : ActionBase
{
[OutputArgument]
public string Message { get; set; } = null!;

[InputArgument]
public string Name { get; set; } = null!;

public override void Execute(ActionContext context)
{
Message = $"Hello, {Name}!";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<AssemblyTitle>GettingStarted</AssemblyTitle>
<TargetFramework>net472</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<PackCustomModule Condition=" '$(Configuration)' == 'Debug' ">true</PackCustomModule>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK" />
</ItemGroup>

</Project>

0 comments on commit d1fed14

Please sign in to comment.