Autor Beitrag
Felix2000
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124



BeitragVerfasst: Mo 15.08.11 14:39 
Hi Folks !

Ich möchte euch mal etwas fragen. Ich komme öfters in meinem Visual Studio die Meldung, dass es evtl. in meinem Quellcode eine Using Direktive und einen Assemblyverweise nicht gibt. was genau bedeuten diese beiden technischen Fehlermeldungen im Detail?

Greetz
Felix

Moderiert von user profile iconTh69: Titel geändert.
dark-destination1988
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178
Erhaltene Danke: 21



BeitragVerfasst: Mo 15.08.11 14:42 
assembly--> fehlende dll (du musst eventuell für deine verwendeten objekte eine dll einbinden)
using directive--> dll ist zwar eingebunden, aber es fehlt die using clausel der dll (am anfang der Klasse)
Felix2000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124



BeitragVerfasst: Mo 15.08.11 14:46 
Hi Folks !

user profile icondark-destination1988 hat folgendes geschrieben Zum zitierten Posting springen:
assembly--> fehlende dll (du musst eventuell für deine verwendeten objekte eine dll einbinden)
using directive--> dll ist zwar eingebunden, aber es fehlt die using clausel der dll (am anfang der Klasse)


Besten Dank für das Feedback. Mal ne blöde Frage:

Wie genau kann ich denn diese beiden Dinge "einbinden"?

Greetz
Felix
dark-destination1988
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 178
Erhaltene Danke: 21



BeitragVerfasst: Mo 15.08.11 14:50 
assembly --> im Projekt-Mappen-Explorer Rechtsklick auf Verweise: Verweis hinzufügen->dll aussuchen "Ok"
using dirictive

wie gesagt oben in der klasse
ausblenden C#-Quelltext
1:
using deinedll;					
Felix2000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124



BeitragVerfasst: Mo 15.08.11 15:02 
Alles klar, danke schön !!
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4798
Erhaltene Danke: 1059

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Mo 15.08.11 16:10 
Ergänzend möchte ich hinzufügen, daß man bei der using-Klausel nicht den Namen der DLL angibt, sondern den Namensbereich (auch wenn diese meistens übereinstimmen).