delete
-
delete
For the xml file, you can use Build Action as Embedded Resource. But this means that you will have to change the way you read the xml file now. You will have to read it from the assembly. For Dlls, do you have the source code?
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
delete
PC17 wrote:
must be in the same folder otherwise the program doesn´t work
That's not entirely true. You can probably embed the XML in the EXE as a resource. If you wanted the EXE and DLLs in one file, why did you make the DLLs?
-
For the xml file, you can use Build Action as Embedded Resource. But this means that you will have to change the way you read the xml file now. You will have to read it from the assembly. For Dlls, do you have the source code?
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
yes i have the source code can you explain me how that careful work with the xml how i must drop it and how can i open it? pc17
-
PC17 wrote:
must be in the same folder otherwise the program doesn´t work
That's not entirely true. You can probably embed the XML in the EXE as a resource. If you wanted the EXE and DLLs in one file, why did you make the DLLs?
That i can use it for more things so i have no very long source code! Who would this work with the resoucen i take the 4 files as resouce and then how can i open it? PC17
-
yes i have the source code can you explain me how that careful work with the xml how i must drop it and how can i open it? pc17
If the dlls are written in C# and you have the source then you can do it this way:
Create backups of everything - just in case!
Open the project that is compiled to the exe.
In that solution, choose Add Existing Project for each of the projects that compile to dll and add each one.
Create folders with the same names as the dll projects in the exe one.
Select all files in each dll project and drag and drop to the respective folder.
Remove the dll projects from the solution.You may have to play around a little if any of the projects are using a resources file etc, but generally speaking it should just work.
Dave
Generic BackgroundWorker - My latest article!
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
If the dlls are written in C# and you have the source then you can do it this way:
Create backups of everything - just in case!
Open the project that is compiled to the exe.
In that solution, choose Add Existing Project for each of the projects that compile to dll and add each one.
Create folders with the same names as the dll projects in the exe one.
Select all files in each dll project and drag and drop to the respective folder.
Remove the dll projects from the solution.You may have to play around a little if any of the projects are using a resources file etc, but generally speaking it should just work.
Dave
Generic BackgroundWorker - My latest article!
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Why are you using VB6? Do you hate yourself? (Christian Graus)Yes, but... I create the directory first and add right into it and I usually
Add as link
so I don't copy the files needlessly. -
That i can use it for more things so i have no very long source code! Who would this work with the resoucen i take the 4 files as resouce and then how can i open it? PC17
PC17 wrote:
That i can use it for more things
Consider putting the DLLs in the GAC.
-
delete
When all code is C#, you could create a single project holding all the source files; and add the XML file to it, with BuildAction=EmbeddedResource. Then you need a bit of code to extract the XML as a string, replacing your file reading code. :)
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
-
delete
-
For the xml file, add it as an EmbeddedResource as others have already said. For the dlls, can use ILMerge to merge them with your exe.
So now i have the xml file in it! But the dll´s not! When i merge it it doesn´t can load all 3 dll files only one i can load?!