[
  {
    "Id": "825100",
    "ThreadId": "352613",
    "Html": "<p>Downloaded from source, I am aware of but not&nbsp;familiar&nbsp;with .snk files, but they seem to be missing. and I cannot compile.</p>\n<p>I work on&nbsp;<a title=\"http://axiom3d.net\" href=\"http://axiom3d.net\" target=\"_blank\">Axiom 3D</a>&nbsp;and we are replacing SharpZipLib with DotNetZip.</p>\n<p>and assistance would be&nbsp;appreciated. &nbsp;I know of the source key stuff but never use it, and normally avoid</p>\n<p>projects that do, but I have been tasked with this so I need to work around it/through it, over it or under it. :)</p>\n<p>Thanks in advance,</p>\n<p>Adam</p>\n<p>a.k.a theMouse on Axiom3D</p>\n<p>&nbsp;</p>",
    "PostedDate": "2012-04-17T14:22:06.773-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "827257",
    "ThreadId": "352613",
    "Html": "<p>Instead of recompiling the source, why don't you just distribute the dll with your application? You can also use ILMerge to combine it with your executable.</p>",
    "PostedDate": "2012-04-23T02:55:11.337-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "832949",
    "ThreadId": "352613",
    "Html": "<p>You can generate your own key file (see&nbsp;<a href=\"http://msdn.microsoft.com/en-us/library/6f05ezxy(v=vs.100).aspx\">http://msdn.microsoft.com/en-us/library/6f05ezxy(v=vs.100).aspx</a>)&nbsp;and compile the source code with a new key, but be aware that you are then creating your own version of DotNetZip, and you take the&nbsp;responsibility&nbsp;to update 'your version' upon yourself. I.e. if you just download (or NuGet) DotNetZip dll, all you need to do is reference the dll. Each time there is a new version, you just need to replace the dll and recompile (easier with NuGet). If you want to avoid distributing 'yet another dll' then use ILMerge as @Aerowinder mentionned.</p>",
    "PostedDate": "2012-05-07T06:09:35.607-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "836270",
    "ThreadId": "352613",
    "Html": "<p>You should also see the <a title=\"Embed option\" href=\"http://dotnetzip.codeplex.com/wikipage?title=Embed%20DotNetZip&amp;referringTitle=Examples\" target=\"_blank\">embed option</a>&nbsp;</p>\r\n<p>for those into VB here it is&nbsp;- ensure you don't call any of your embeded&nbsp;dll's&nbsp;methods from within the entry point method</p>\r\n<p><span style=\"color: blue;\"><span style=\"color: blue;\">\r\n<div style=\"color: black; background-color: white;\">\r\n<pre><span style=\"color: blue;\">Imports</span> System.Globalization\r\n<span style=\"color: blue;\">Imports</span> System.Reflection\r\n<span style=\"color: blue;\">Function</span> Main(args() <span style=\"color: blue;\">As</span> <span style=\"color: blue;\">String</span>) <span style=\"color: blue;\">As</span> <span style=\"color: blue;\">Integer</span> \r\n  <span style=\"color: blue;\">AddHandler</span> AppDomain.CurrentDomain.AssemblyResolve, <span style=\"color: blue;\">New</span> ResolveEventHandler(<span style=\"color: blue;\">AddressOf</span> Resolver)\r\n  <span style=\"color: blue;\">Return</span> Go(args) \r\n<span style=\"color: blue;\">End</span> <span style=\"color: blue;\">Function</span>\r\n&lt;DebuggerStepThrough()&gt;\r\n<span style=\"color: blue;\">Private</span> <span style=\"color: blue;\">Function</span> Resolver(<span style=\"color: blue;\">ByVal</span> sender <span style=\"color: blue;\">As</span> <span style=\"color: blue;\">Object</span>, <span style=\"color: blue;\">ByVal</span> args <span style=\"color: blue;\">As</span> ResolveEventArgs) <span style=\"color: blue;\">As</span> System.Reflection.<span style=\"color: blue;\">Assembly</span>\r\n  <span style=\"color: blue;\">Dim</span> a <span style=\"color: blue;\">As</span> <span style=\"color: blue;\">Assembly</span> = <span style=\"color: blue;\">Assembly</span>.GetExecutingAssembly()\r\n  <span style=\"color: blue;\">Dim</span> s <span style=\"color: blue;\">As</span> Stream = <span style=\"color: blue;\">Nothing</span>\r\n  <span style=\"color: blue;\">If</span> args.Name.StartsWith(<span style=\"color: #a31515;\">\"DotNetZip\"</span>) <span style=\"color: blue;\">Then</span>\r\n    s = a.GetManifestResourceStream(<span style=\"color: #a31515;\">\"YourNameSpace.DotNetZip.dll\"</span>)\r\n  <span style=\"color: blue;\">Else</span>\r\n    <span style=\"color: green;\">'If it fails -&gt; view a.GetManifestResourceNames()</span>\r\n  <span style=\"color: blue;\">End</span> <span style=\"color: blue;\">If</span>\r\n  <span style=\"color: blue;\">Dim</span> block <span style=\"color: blue;\">As</span> <span style=\"color: blue;\">Byte</span>() = <span style=\"color: blue;\">New</span> <span style=\"color: blue;\">Byte</span>(<span style=\"color: blue;\">CInt</span>(s.Length - 1)) {}\r\n  s.Read(block, 0, block.Length)\r\n  <span style=\"color: blue;\">Dim</span> a2 <span style=\"color: blue;\">As</span> <span style=\"color: blue;\">Assembly</span> = <span style=\"color: blue;\">Assembly</span>.Load(block)\r\n  <span style=\"color: blue;\">Return</span> a2\r\n<span style=\"color: blue;\">End</span> <span style=\"color: blue;\">Function</span>\r\n</pre>\r\n</div>\r\n</span></span></p>\r\n<p>\r\n<p>\r\n<p>&nbsp;</p>\r\n</p>\r\n</p>\r\n<p>\r\n<p>&nbsp;</p>\r\n</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2012-05-14T13:54:23.077-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]