The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
I have great pains. Our application consists of a launcher and various dlls.
The launcher looks at the fileserver for newer versions of the dll's and copies them over if required, then the main process is run inside the dll.
It works nicely, or should, and means that users always run the latest version. Win-win. Except.
When we copy over the files to the file server from the build server, one of the dll's is marked as from an 'unknown source' and is blocked. I could go into group policies and disable the blocking but that would be for any other dll/exe that should be blocked.
For now, after each update I have to manually unblock the file. Does anyone have an idea of a better solution?
Seems that comments on articles are not sent to the author anymore automatically. NetZ is still around, be it in a somewhat dormant state, the source code is available on GitHub but no one seems interested in it anymore, what a pity.
I did one simple test with a .NET 4.0 application, and got that working.
I know about ILMerge and Fody Costura, and have put those to good use already, the interesting thing about NetZ however is that it zips and encrypts your application which might offer some level of protection.
I share your pain, I have an installer that 'updates' a certain dll to a version that was released when the earth was hot. The worst thing is that version of the dll doesn't have voodoo for the program to work...
Applications that receive less than full trust from their host or sandbox are not allowed to call shared managed libraries unless the library writer specifically allows them to through the use of the AllowPartiallyTrustedCallersAttribute attribute. Therefore, application writers must be aware that some libraries will not be available to them from a partially trusted context. By default, all code that executes in a partial-trust sandbox and is not in the list of full-trust assemblies is partially trusted
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013