TechnitiumSoftware / Mesh

A secure, anonymous, peer-to-peer, instant messenger!
https://mesh.im
GNU General Public License v3.0
199 stars 57 forks source link

Unable to run Mesh solution in Visual Studio #7

Open shubhamdhanetia opened 3 years ago

shubhamdhanetia commented 3 years ago

Hi @ShreyasZare

image

I am having so many errors while building the solution in Visual Studio. Looks like the technetium Library is missing.

ShreyasZare commented 3 years ago

You will need to clone the TechnitiumLibrary repo too in the same folder that you have Mesh repo cloned. Once you do that and compile the library project that all the errors will go away.

But there is one thing that the library project was heavily modified after the last release of Mesh and so there are a ton of changes that will need to be rectified in Mesh code to make it work with the latest library build.

However, there one fix for this: I just creates a mesh branch in the TechnitiumLibrary repo which you can switch to and compile. This will compile the library DLL files that the mesh code can use.

shubhamdhanetia commented 3 years ago

I build the library using the mesh branch. Then added the references in the Mesh solution. I am getting this error now. Some solutions says to unblock this file by right click on the .resx file and to go in the properties, but I am not even getting that option. Currently using VS 19 image

ShreyasZare commented 3 years ago

Is this option shown below not visible for these files in Windows Explorer?

image

If nothing works then use Git Clone instead of downloading the zip file from GitHub.

shubhamdhanetia commented 3 years ago

I did clone only in both mesh and library. I can't see unblock option in windows explorer also !

shubhamdhanetia commented 3 years ago

I replaced all the resx files from zip of mesh that I downloaded. Then I got the option to unblock on all these resx files. I unblocked all these files. Clean and rebuild, unload-reload the project. Still getting the issues on 3 resx files.

ShreyasZare commented 3 years ago

That's very strange thing. Don't have a specific solution for this. Try copying the files to a USB drive with FAT file system and then copy the files back.

shubhamdhanetia commented 3 years ago

When I changed the build action of these resx files to Content from Embedded Resource, the build errors were gone. but then when I try to start the application, I get this error.

image

image

shubhamdhanetia commented 3 years ago

Hello @ShreyasZare , I am finally able to run the application ! Created the resource files again where I was getting issues and copied the tor folder for the executable location and put it in debug folder. Can you share some references or diagrams which can help understanding the code flow !

ShreyasZare commented 3 years ago

Hello @ShreyasZare , I am finally able to run the application ! Created the resource files again where I was getting issues and copied the tor folder for the executable location and put it in debug folder. Can you share some references or diagrams which can help understanding the code flow !

Good to know that it finally worked out.

I guess since you are cloning this repo inside OneDrive folder, it may be the reason to get the "mark of the web" issue that you faced. I am not completely sure though.

I don't have any documentation for the code. For the DHT part you can see the paper for Kadamlia which was used to implement in Mesh.

shubhamdhanetia commented 3 years ago

Thanks, @ShreyasZare, I will check that paper.