C# Moved exe not working?
Hello,
I'm new to programming and I'm currently using Visual Studio 2022 to code a small program. I'm almost done, but when I move the created EXE to my desktop, for example, it no longer works. I would really like to have this feature because I'd like to send this program to friends.
Many thanks in advance
If you use .NET, the .exe is also always a .dll file. This dll has to be located wherever the .exe is. Consider that the one on the PC you want to run the program also the .NET version must be installed for which it was compiled.
An exception is .NET Framework. It is preinstalled anywhere on Windows and only the .exe file is enough to run, but you should not use .NET Framework anymore because this is out of support.
can I connect .dll and .exe to any type and wise way so that I have a datei at the end?
Here’s a short guide:
Everything is created in the path you have given. However, it may take some time until VS2022 is finished, so be patient.
.NET must still be installed.
However, there must be a difference when calling because a dll has no entry point. I can take a look at this. Do you have the .exe/.dll from an internet site or from where do you have it?
Right! The .dll file was also unfortunately there I have no idea how to use it.
Is there the .exe on the Internet and if so at what address? And if not then you can outsource the content to a .dll and reincompile the dll in the app.
Just because I can’t code this function myself and this would be too complicated and complex I only saw the finished exe as a solution. I solved the problem with the following code before:
Since the whole project folder is not lying around on any desktop, I can’t use this kind further.
What do you mean? Does this relate to your previous question? If you think that you (as in the previous question) use functions from the .exe in your application, I should first know how this has been implemented. To do this, it would also be helpful to know what the built-in .exe does to somehow simplify it, as it is a bit uncommon to call a function from a .exe from another .exe. Anyway, a little more context would be good.
You’re not disturbing. I have too much time.
Thank you very much,
I don’t want to interrupt, but if there weren’t any more things I would have asked.
I had introduced a .exe into the code before (exe was in the project folder) and since everything worked out I thought this would not pose any further problems. Now I would have the question if I could insert these in some other way if possible, as this is now of course making problems sending.