How can i Compile XAML file in command prompt?

How can I compile XAML file in command prompt before deploying

Hi @anair25,

Please follow the link this may help you,

1 Like

Uirobot.exe file runs the XAML file . I want command which will validate the XAML file and return me the output failed or passed.
I see one file in studio folder “UiPath.ActivityCompiler.CommandLine.exe” … Can we use it to just to compile XAML file.

Have a look on this post:


Need a solution for it. Because i am able to compile the file using executable file in Uipath however that executable is running the XAML file instead i just want a compiled result.


  1. Compile the XAML file
  2. Result should be error yes or no
  3. It should not continue running the XAML file or need another command which will stop the XAML file from running

Go to the filepath where UiRobot.exe is and

UiRobot -file “C:\UiPath\Project\Main.xaml”
UiRobot -file “C:\UiPath\Project\Main.xaml” -input “{‘inArg’ : ‘value’}” --rdp
UiRobot -file “C:\UiPath\Project\project.json”
UiRobot -file “C:\UiPath\Package\Notepad.1.0.6682.21636.nupkg”

Thanks Srdjan.suc

i used the line of script
UiRobot -file “C:\UiPath\Project\Main.xaml” -input “{‘inArg’ : ‘value’}” --rd

I created an activity which will terminate the workflow once compilation done because i don’t want the workflow to run if there is no compilation error

I used below batch file script to execute the command and it worked for me.

UiRobot.exe -file %1 -input “{‘compile’: ‘True’}” --rdp
echo %errorlevel%
if NOT ["%errorlevel%"]==[“0”] (
echo Error: %date% at %time% >> %erlogLocation%
echo Error Location: C:\testpackage\Main.xaml >> %erlogLocation%
echo Error Msg: Compiliation error or Build Error >> %erlogLocation%
echo %log% >>%erlogLocation%


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.