Build solution for projects cloned from Git
-
Hello, I'm a computer major student. Now I want to learn the operation mechanism and working principle of the project. I first downloaded MSI to install the software to find out about the operation. Then I cloned the project from GitHub and tried to open OpenRPA.sln on VS2019 and then tried to build the solution, but there were errors.
There are two quertions I want to ask:
The first question I want to ask is, if openrpa generates a solution successfully, what will I get in the end? Is it a software with the same interface and function as the software after MSI installation?
And the second question is : error list prompts: (mainly the following)
CS0246 Could not find type or namespace name NAudio (missing using directive or assembly reference?) OpenRPA.AviRecorder\Record.cs 1
CS8646 Multiple explicit implementation of “IEnumerator.Current” OpenRPA\ChildEnum.cs 56
CS0234 the type or namespace name 'data' does not exist in the 'Microsoft' namespace (are you missing an assembly reference?) 14
How is this most likely to be solved? How should I deal with it?
Best regards. -
- on openrpa's github page is the complete source code needed to successfully create the same MSI installer as the one you can download from the releases page.
As explained in part 2, there are requirements if you want to be able to compile the MSI including all modules, and you may not be able to succeed in that. But you can still compile the parts you want, and run that locally or create your own installer with the parts you need and have access too. - I don't want to offer support on 3rd party tools or platforms on the free forum. If you find a specifik bug in the code, feel free to give a good simple reproduceable example and i will look into that a as fast as possible.
Your question is about how to use Visual Studio, and/or 3rd party tools
But I will give you a hint, you need to restore nuget packages.
However once you do that, you will run into another problem, some of the projects require other software to be installed, so you need to unload certain projects in order to compile the entire solution, if you don't have that ( the installer projects requires WIX, OpenRPA.SAP requires SAP client etc. )
But as pointed out before, you should be able to compile the OpenRPA project and its dependencies without anything but Visual Studio 2019 and a clone of the source code. ( compiling the whole solution requires other software )
- on openrpa's github page is the complete source code needed to successfully create the same MSI installer as the one you can download from the releases page.
-
This post is deleted! -
@allan-zimmermann
Thank you very much for your reply!
Previously, due to the wrong operation of project cloning, I had more than 1000 errors, such as variable conflicts.
Yesterday, I mainly did the error elimination work of "could not find the type or namespace name" XXX "(is it lack of using instruction or assembly reference?).
It's not clear whether it's because of the abnormal cloning of the project, or I installed all the required environments yesterday. Today, I re cloned the project on git, and found that I can complete the work of generating the solution with zero error, and run the same functions as the software installed by MSI in the form of exe.
Let's share what I did yesterday- Vs2019 community version is selected
- Expand vs2019 by installing Wix toolset
- Open the toolbar item on vs, and then try to add the instruction set in the following places:
- Manage nuget Toolkit
- After adding a project reference, you can select from the pop-up window: assembly, com, browse (this is to refer to the local DLL)
- It should be noted that System.Management.Automation , the error is System.Management There is no automation below. You can search the corresponding DLL locally with everything, but no matter where DLL is used, it will prompt that it cannot be loaded or failed to load
So I went to the official website to download the corresponding nupkg: https://www.nuget.org/packages/System.Management.Automation.dll/ ,
Then add it locally and install it into the project according to the following method (but the official website prompts: the owner has canceled listing this package. This may mean that the package has been discarded, there is a security vulnerability or should not be used again.)
https://blog.csdn.net/weixin_30553777/article/details/96884984?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.control
Wish your project better and better!
-
The nuget package was taken down, since he does not have permission to distribute the dll, and you don't need a nuget package anyway. The dll is the core of PowerShell and should be present on all newer windows OS'
Using powershell you can easily find it usingGet-ChildItem C:\Windows\assembly\ -Filter System.Management.Automation.dll -Recurse