Timeline for How to create self-extracted exe C# .net 4.0
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 10, 2016 at 7:36 | comment | added | Visual Vincent | Maybe because it was included first in .NET 4.5? The reason it would work in 4.0 is that there's no .NET 4.5 specific code in the library (which apparently is the case, it has always worked for me). | |
May 10, 2016 at 6:41 | comment | added | Vadim Volodin | References are ok, it works with .net 4.5, but not with 4.0 | |
May 9, 2016 at 19:42 | comment | added | Visual Vincent |
Check your project's references to see if there's an invalid System.IO.Compression there.
|
|
May 9, 2016 at 19:21 | comment | added | Vadim Volodin | @VisualVincent, I am using using System.IO; using System.IO.Compression; and referencing Analyzer, Systems and System.IO.Compression.FileSystem Also, it is not an error, it is a warning(in error list window). But there is an error "The name 'ZipFile' does not exist in the current context" (in output window) | |
May 9, 2016 at 13:26 | comment | added | Visual Vincent |
Yes it is. But according to the error it sounds like the already existing System.IO.Compression namespace is the incorrect version... Are you sure you haven't accidentelly imported/referenced another version of it?
|
|
May 9, 2016 at 12:48 | comment | added | Vadim Volodin | @VisualVincent, yes, i imported this file as a reference(right click on references->add reference->browse->choose). wtf, isn't 4.0 equal with 4.0.0.0? | |
May 9, 2016 at 12:32 | comment | added | Visual Vincent |
It works for me? I imported it from %SystemRoot%\Microsoft.NET\assembly\GAC_MSIL\System.IO.Compression.FileSystem\v4.0_4.0.0.0__b77a5c561934e089\System.IO.Compression.FileSystem.dll .
|
|
May 9, 2016 at 9:39 | comment | added | Vadim Volodin | @Visual Vincent, The primary reference "System.IO.Compression.FileSystem" could not be resolved because it has an indirect dependency on the framework assembly "System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "System.IO.Compression.FileSystem" or retarget your application to a framework version which contains "System.IO.Compression, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089". | |
May 6, 2016 at 6:20 | history | edited | jeb |
edited tags
|
|
May 5, 2016 at 19:53 | comment | added | Visual Vincent |
If you by saying "it is not simple with .net 4.0" are referring to that you cannot use the ZipFile class, I have something good to tell you: The ZipFile class is actually usable in .NET 4.0! You just have to import the System.IO.Compression.FileSystem.dll file, which is located somewhere in %SystemRoot%\Microsoft.NET\assembly\GAC_MSIL . Try searching for it there, and when found just import it as a reference to your project and it'll work!
|
|
May 5, 2016 at 19:28 | answer | added | adv12 | timeline score: 1 | |
May 5, 2016 at 19:23 | history | asked | Vadim Volodin | CC BY-SA 3.0 |