|
I am currently working on a Prism solution that has 14 projects. The problem is that I had to include the DLL for each project when I deployed the executable. This was a pain, so I decided to look for a method to embed the DLLs into the executable. Some research pointed me to a NuGet package called Costura.Fody.
When it works, it works great. You just run the command "Install-Package Costura.Fody -Pre" on the NuGet command prompt and you're set. When you build the solution, all required DLLs are integrated into the main executable and you only have one file to deploy. It works well with Visual Studio 2012 but can be finicky on Visual Studio 2017.
If the install fails on VS2017, as can happen, you can kiss the solution goodbye. I was unable to roll back the install and recover the solution / project. I was forced to recover it from a full backup. Make sure you have a full backup before trying Fody!
I am curious to know whether any of you have used this package with Visual Studio 2017, and what your experiences were?
Get me coffee and no one gets hurt!
modified 23-Apr-17 14:00pm.
|
|
|
|
|
I thought the NSA had given up on Prism, and were using Samaritan, now.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
The Machine Lives!
Software Zen: delete this;
|
|
|
|
|
No spoilers, please -- I'm only part-way through the fourth series.
|
|
|
|
|
Cornelius Henning wrote: This was a pain, so I decided to look for a method to embed the DLLs into the executable. Some research pointed me to a NuGet package called Costura.Fody.
Interesting. I did something a year ago or so where I embedded various DLL's as a resource and used the assembly resolver to load the DLL. It worked great!
There's a good CP article here that looks very similar to what I did.
Marc
Latest Article - Merkle Trees
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
Looks interesting, but there is one other advantage to Fody that I neglected to mention: After embedding the DLLs, it compresses the executable. This is a significant issue for me. My app has a 30Meg+ DataTable embedded as a serialized resource. Being serialized, it is basically a XML text file that compresses very well: to more than 90%.
Now that I am beginning to get the hang of it, I will be hard pressed to follow any other options. It makes the whole process just so easy!
Get me coffee and no one gets hurt!
|
|
|
|
|
I've worked with Costura before. I want to like it, but ultimately I've stopped using it.
The issue that I had was in delivering minor version updates to a specific application, I wrestled with Costura quite a bit to update the dependencies on specific modules, and ultimately found a /bin directory to be more time-effective.
Detaching Costura from my projects proved to be an interesting endeavor. This is the main reason I stopped using it altogether: it proved difficult to remove the framework completely.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Quote: Detaching Costura from my projects proved to be an interesting endeavor Yes! I have come to the conclusion that it is impossible. One has to create a new project, then copy the files from the old project to the new.
Quote: ultimately found a /bin directory to be more time-effective I am not sure what you mean. Care to elaborate, please?
Get me coffee and no one gets hurt!
|
|
|
|
|
If I need to change out dependencies, let's say the log provider that I was using is a dead project and I want to swap to a different one, getting Costura to completely drop the old dependency and introducing the new one takes a little time and effort.
Setting dependencies to Copy Local takes no time. I'm not sure how else to put it.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Got it, thanks! I have been painted into corners by Costura, where it would have helped, had I known this.
Get me coffee and no one gets hurt!
modified 25-Apr-17 8:56am.
|
|
|
|
|
|
Yes, I hope hot days will come ... right now I am freezing
|
|
|
|
|
Soon.... we need plenty of it
Bryian Tan
|
|
|
|
|
|
my current SATA hard drive is very slow. I want to re-image into a SSD..
diligent hands rule....
|
|
|
|
|
I can't tell from your post if you already have the SSD drive or if you are going to buy it.
The SSD drives I have bought come with software that will clone your system drive onto the SSD, but I have not been able to clone non-system drives. I am not sure if I just didn't find the option for cloning other drives, but I just performed a standard file copy for those instead.
"When you don't know what you're doing it's best to do it quickly" - Jase #DuckDynasty
|
|
|
|
|
I used the free Aomei partition assistant - no issues.
(Aomei backup sucks but their part-ass seems OK.)
Sin tack
the any key okay
|
|
|
|
|
A third option would be the free version of Macrium's Reflect. It is fully compatible with Windows 10 and SSDs.
Whatever choice you pick: Make sure you create the boot media (CD or USB stick) on the machine where you want to install the SSD. This will ensure the right drivers for that machine (USB3 drivers, etc.) get included in the boot media.
Get me coffee and no one gets hurt!
|
|
|
|
|
A late reply. I have used it to go from SSD to SSD and HDD to HDD but not HDD to SSD. Works fine.
Lou
Arguing with a woman is like reading the Software License Agreement. In the end, you ignore everything and click "I agree".
Anonymous
|
|
|
|
|
I have been buying Nike Air Monarchs for several years; good quality, good price, they last several months, and they fit the way my feet interact between the ground and my legs.
I welcome ideas from anyone who has worn this shoe for a long time (e.g., more than a month) and has tried another brand/style.
|
|
|
|
|
I have been wearing Nike Air Monarchs for years also. For me, the fit is excellent. The price is really good. Overall, for the money, a really good shoe. Not a lot of complaints.
The only thing that I don't like is the fact that I cannot remove the insert and replace it with a better insert. Most running shoes allow you to replace the insert. Also, running shoes like Asiics, Saucony and I am sure others seem to have a little softer sole which I like.
|
|
|
|
|
For casual walking, I like Camper, Merrell and KEEN shoes.
I've used shoes from the above companies for years now.
BUT,
A couple week ago, I was in Spain and mostly used my Asics shoes because my other shoes were leather and too warm.
I'd rather be phishing!
|
|
|
|
|
If I post some code here and articles would people be interested in UWP? I have some file API's and sample code that could help people. To be honest, I like UWP file operations but they are slightly weird. At the same time have great ways to do chain folder/file creation operations which I like and you can create the simple Append to end of sub/function like before but its a little different then before.
Note:
1. I understand peoples problems with windows 10 updates but I have not had any problems with my updates with the exception of office 2010 because its so old windows will not install them properly the first time.
2.If you install visual studio at all, remember to install the Hypervisor for windows first because it uses that to test windows phone apps and needs time to run before you install studio.
jeffery
|
|
|
|
|
The whole ms uwp concept is a huge waste of a lot of people's time.
Like everything else they've produced over the last few years, they came up with it without even thinking about keeping their feet grounded in reality, and all they've done is take phenomenally uncreative steps (which they probably think are highly creative) in a direction that cannot possibly be the way to the future.
What is currently being done by weChat and facebook is one of the potential roads to "universal" computer products. That much is obvious, because many of the roads in that direction are patently obvious -- it's just a matter of waiting to see who will get it all to come together.
But that won't be ms. Their idea of "universal" is crippled by their new-found lack of vision and creativity. It's a joke, which will be swept under the carpet, within a couple of years (joining all the other dustballs they've previously hailed as the next great thing), and the people who suffer most because of this will be developers who invest their time, skills, and effort into it.
Seriously, you'll do your career better by studying COBOL.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Quote: The whole ms uwp concept is a huge waste of a lot of people's time.
Like everything else they've produced over the last few years, they came up with it without even thinking about keeping their feet grounded in reality, and all they've done is take phenomenally uncreative steps (which they probably think are highly creative) in a direction that cannot possibly be the way to the future.
What is currently being done by weChat and facebook is one of the potential roads to "universal" computer products. That much is obvious, because many of the roads in that direction are patently obvious -- it's just a matter of waiting to see who will get it all to come together.
But that won't be ms. Their idea of "universal" is crippled by their new-found lack of vision and creativity. It's a joke, which will be swept under the carpet, within a couple of years (joining all the other dustballs they've previously hailed as the next great thing), and the people who suffer most because of this will be developers who invest their time, skills, and effort into it.
Seriously, you'll do your career better by studying COBOL.
I think I will be fine. COBOL is fine until the government upgrades their mainframes then your out of those jobs and so goes windows XP out the window as well. If you watch ZDNet newsletters or MSN news closely, the mainframes for the nuclear launch systems are being replaced so COBOL will not be used as much anymore. On another note, this is the same talk as windows ME/2000 to XP (i.e. it sucks, too ugly, etc.) which was general Banta fodder and does not talk about the nice improvements at all (i.e. Task Scheduler was great but windows 7 was the best, minimal install footprint for what we were offered, etc.).
Anyways, would anyone want me to post articles on it? I am thinking posting an article despite codeplex shutting down. A lot of it is easy and I have a custom folder path/file based on date created in my current app (i.e. April 24 translates to this file path ..\archives\April\24{name of item searched for}.csv or whatever extension you want).
So, I plan on helping out anyone wanting to take the path of UWP. I am trying to pass Iprogress status in a UWP class library or dll to my main which I do everything out of and so far I cannot seem to get it to work.
P.S. if your wanting to avoid UWP I believe they are still having the developer program for publishing non-UWP apps to the windows store (aka windows only apps). If your a c/c++ native dev. support has been around for a few months now for windows UWP apps to skip at least part of the dotnet framework.
jeffery
|
|
|
|