原文鏈接: https://activities.uipath.com/docs/creating-a-custom-activity
Create the Activity Library
Step 1 Open Visual Studio 2010.
- Select File->New ->Project.
- Select Activity Library.
ac1.gif
Create a new Activity :
Step 2 : Go to Solution Explorer and right-click.
- Go to Add-> New Item->CodeActivity.
-
Write the below code.
ac2.gif
在原來的dll上又套了一層codeActivity;生成了codeActivity的dll之后祖秒,使用packageExplorer將dll打成包沃呢,導(dǎo)入U(xiǎn)iPath中:
NuGetPackageExplorer.png
NuGetPackage1.png
打出來的包長(zhǎng)這樣:
package.png
將包導(dǎo)入U(xiǎn)iPath:
e55d3a2-adding-custom-activity-in-studio.gif
UiPath通過DLL創(chuàng)建Activity的過程就是這樣手素,它的機(jī)制跟AA(Automation Anywhere)不一樣;
AA是直接通過MetaBot引用DLL中的方法瑰排。