Autor Beitrag
Kirk1701A
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 126
Erhaltene Danke: 3

Linux, Ubuntu, Mac, IOS, Android (4.2.x - 9.x.x), Win Mob., Micro. DOS, Win 95, Win 98, Win 2000, Win ME, Win XP, Win Vista, Win 7, Win8.1, Win 10
C# (VS 2017 Community/Enterprise, VS 2019 Professional/Enterprise), VB (VBA), JavaScript
BeitragVerfasst: Di 14.08.18 17:52 
Hallo zusammen,

ich bin an einem Tool, dass Zipdateien ent- und wieder verpacken soll. Aber die passende Klasse ZipFile (im Namespace System.IO.Compression.ZipFile) ist leider nicht vorhanden. Warum?

Microsoft sagt, dass es das gibt. Link: ZipFile-Klasse

Danke schonmal

LLAP
Euer Kirk

Moderiert von user profile iconTh69: C#-Tags hinzugefügt
Moderiert von user profile iconTh69: URL-Titel hinzugefügt.
Moderiert von user profile iconTh69: Topic aus C# - Die Sprache verschoben am Di 14.08.2018 um 21:29

_________________
"Ich war es und werde es immer bleiben... Ihr Freund!"
@Spock -> Star Trek II: Der Zorn des Khan
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 14.08.18 17:58 
Hast du auch die Assembly "System.IO.Compression.FileSystem" als Verweis (Reference) in dein Projekt eingebunden?
Kirk1701A Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 126
Erhaltene Danke: 3

Linux, Ubuntu, Mac, IOS, Android (4.2.x - 9.x.x), Win Mob., Micro. DOS, Win 95, Win 98, Win 2000, Win ME, Win XP, Win Vista, Win 7, Win8.1, Win 10
C# (VS 2017 Community/Enterprise, VS 2019 Professional/Enterprise), VB (VBA), JavaScript
BeitragVerfasst: Di 14.08.18 18:15 
Hallo Th69,

diese Assembly ist bei mir nicht verfügbar. Nur System.IO.Compression sonst nix mehr.

LLAP
Euer Kirk

_________________
"Ich war es und werde es immer bleiben... Ihr Freund!"
@Spock -> Star Trek II: Der Zorn des Khan
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 14.08.18 18:41 
Für welche Version des Frameworks schreibst Du Dein Anwendung?

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 14.08.18 18:45 
Edit: Ab 4.0 sollte die verfügbar sein.


Zuletzt bearbeitet von Th69 am Di 14.08.18 19:17, insgesamt 1-mal bearbeitet
Christian S.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 20451
Erhaltene Danke: 2264

Win 10
C# (VS 2019)
BeitragVerfasst: Di 14.08.18 18:55 
Der Api-Browser sagt ab 4.5

_________________
Zwei Worte werden Dir im Leben viele Türen öffnen - "ziehen" und "drücken".
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 14.08.18 19:15 
Hast Recht, ich hatte nur nach der Assembly-Version geschaut (und da steht dann 4.0), aber erst ab eingestellter .NET Framework-Version 4.5 (und höher) wird diese Assembly im "Reference Manager" angezeigt.
Kirk1701A Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 126
Erhaltene Danke: 3

Linux, Ubuntu, Mac, IOS, Android (4.2.x - 9.x.x), Win Mob., Micro. DOS, Win 95, Win 98, Win 2000, Win ME, Win XP, Win Vista, Win 7, Win8.1, Win 10
C# (VS 2017 Community/Enterprise, VS 2019 Professional/Enterprise), VB (VBA), JavaScript
BeitragVerfasst: Di 14.08.18 19:21 
Hallo zusammen,

das hab ich auch schon herausgefunden. Ich verwende Framework 4.7.2

Normal muss das doch gehen, oder?

LLAP
Euer Kirk

_________________
"Ich war es und werde es immer bleiben... Ihr Freund!"
@Spock -> Star Trek II: Der Zorn des Khan
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 14.08.18 19:35 
Kannst du mal einen Screenshot von dem "Reference Manager" zeigen (nachdem du "Verweis hinzufügen" aufgerufen und zu "System.IO" gescrollt hast)?
Kirk1701A Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 126
Erhaltene Danke: 3

Linux, Ubuntu, Mac, IOS, Android (4.2.x - 9.x.x), Win Mob., Micro. DOS, Win 95, Win 98, Win 2000, Win ME, Win XP, Win Vista, Win 7, Win8.1, Win 10
C# (VS 2017 Community/Enterprise, VS 2019 Professional/Enterprise), VB (VBA), JavaScript
BeitragVerfasst: Di 14.08.18 19:46 
Natürlich. Hier ist er.

Screenshot (PNG, 38.26 KB)
Einloggen, um Attachments anzusehen!
_________________
"Ich war es und werde es immer bleiben... Ihr Freund!"
@Spock -> Star Trek II: Der Zorn des Khan
Ralf Jansen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 4700
Erhaltene Danke: 991


VS2010 Pro, VS2012 Pro, VS2013 Pro, VS2015 Pro, Delphi 7 Pro
BeitragVerfasst: Di 14.08.18 20:44 
In deinem Bild sieht man die Klassen aus dem System.IO.Compression Namespace die in der System.dll stecken. Die System.dll wird immer referenziert.
ZipFile steckt aber in der System.IO.Compression.FileSystem.dll und da du die im ObjektKatalog, denn du zeigst, nicht siehst fehlt also der Verweis auf die System.IO.Compression.FileSystem.dll Assembly.

Der Objektkatalog ist übrigens was anderes als der angesprochene Reference Manager. Schau mal hier da wird erklärt wie man einen Verweis auf eine Assembly hinzufügt. Ich könnte es versuchen selbst zu erklären würde aber daran scheitern das ich nicht weiß wie die Dinge in einem deutschen Visual Studio heißen. Das wird dir übrigens oft passieren. So gut wie niemand, der dir bei Visual Studio Problemen helfen könnte, wird die deutsche Version von Visual Studio benutzen sondern die englische(egal welche Muttersprache er hat).


Zuletzt bearbeitet von Ralf Jansen am Di 14.08.18 21:13, insgesamt 2-mal bearbeitet
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 14.08.18 20:57 
Kirk1701A: Hast du noch nie einen Verweis bei einem deiner Projekte hinzugefügt? Ich hatte das Stichwort doch schon vorher 2x genannt (wenn du es nicht kennst, warum suchst du nicht danach?).
Kirk1701A Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 126
Erhaltene Danke: 3

Linux, Ubuntu, Mac, IOS, Android (4.2.x - 9.x.x), Win Mob., Micro. DOS, Win 95, Win 98, Win 2000, Win ME, Win XP, Win Vista, Win 7, Win8.1, Win 10
C# (VS 2017 Community/Enterprise, VS 2019 Professional/Enterprise), VB (VBA), JavaScript
BeitragVerfasst: Di 14.08.18 21:17 
Verweise hatte ich noch nicht hinzugefügt. Nur usings im Code und NuGetPakete...

_________________
"Ich war es und werde es immer bleiben... Ihr Freund!"
@Spock -> Star Trek II: Der Zorn des Khan
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Di 14.08.18 21:28 
Und nun funktioniert es bei dir, oder?
Kirk1701A Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 126
Erhaltene Danke: 3

Linux, Ubuntu, Mac, IOS, Android (4.2.x - 9.x.x), Win Mob., Micro. DOS, Win 95, Win 98, Win 2000, Win ME, Win XP, Win Vista, Win 7, Win8.1, Win 10
C# (VS 2017 Community/Enterprise, VS 2019 Professional/Enterprise), VB (VBA), JavaScript
BeitragVerfasst: Di 14.08.18 21:30 
Leider nicht. :motz: :motz: :motz: :autsch: :autsch: :autsch: :eyecrazy: :eyecrazy: :eyecrazy:

_________________
"Ich war es und werde es immer bleiben... Ihr Freund!"
@Spock -> Star Trek II: Der Zorn des Khan
Frühlingsrolle
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 14.08.18 22:40 
- Nachträglich durch die Entwickler-Ecke gelöscht -
Kirk1701A Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 126
Erhaltene Danke: 3

Linux, Ubuntu, Mac, IOS, Android (4.2.x - 9.x.x), Win Mob., Micro. DOS, Win 95, Win 98, Win 2000, Win ME, Win XP, Win Vista, Win 7, Win8.1, Win 10
C# (VS 2017 Community/Enterprise, VS 2019 Professional/Enterprise), VB (VBA), JavaScript
BeitragVerfasst: Di 14.08.18 23:58 
Genauso hab ich das gemacht, aber nix. Der kennt angeblich ZipFile nicht. UsingDirektiven sind aber enthalten. Apropos... Die Using "System.IO.Compression.FileSystem" kennt er auch nicht.

_________________
"Ich war es und werde es immer bleiben... Ihr Freund!"
@Spock -> Star Trek II: Der Zorn des Khan
Frühlingsrolle
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 15.08.18 00:09 
- Nachträglich durch die Entwickler-Ecke gelöscht -

Für diesen Beitrag haben gedankt: Kirk1701A
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4764
Erhaltene Danke: 1052

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Mi 15.08.18 08:24 
Hast du nach dem Einfügen mal einen "Rebuild" gemacht?

Für diesen Beitrag haben gedankt: Kirk1701A
Kirk1701A Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 126
Erhaltene Danke: 3

Linux, Ubuntu, Mac, IOS, Android (4.2.x - 9.x.x), Win Mob., Micro. DOS, Win 95, Win 98, Win 2000, Win ME, Win XP, Win Vista, Win 7, Win8.1, Win 10
C# (VS 2017 Community/Enterprise, VS 2019 Professional/Enterprise), VB (VBA), JavaScript
BeitragVerfasst: Mi 15.08.18 20:18 
@Frühlingsrolle
Ja, das war leider so. :motz: :motz:

@Th69
Juhhhuuuuu, es funktioniert!!! Warum ich nicht gleich darauf gekommen bin, möchte ich wissen... :autsch: :autsch: :autsch:

LLAP
Euer Kirk

_________________
"Ich war es und werde es immer bleiben... Ihr Freund!"
@Spock -> Star Trek II: Der Zorn des Khan