Autor Beitrag
Ivy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 228



BeitragVerfasst: Mo 04.07.11 10:47 
hallo zusammen,
ich habe ein problem. Ich habe eine anwendung im CS format die ich gerne in die toolbox von meinem Visual studio einbinden möchte. Klar easy mit ner DLL über Toolboxelemente auswählen, hat mans sofort drin, jedoch find ich nirgendwo nen ansatz wie ich eine CS datei einbinden kann.
Vielleicht weiß ja jemand dadrüber bescheid...
Danke
Ivy
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4807
Erhaltene Danke: 1061

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Mo 04.07.11 10:57 
Hallo Ivy,

man kann selbstverständlich nur eine ausführbare Datei (Assembly), d.h. EXE oder DLL der ToolBox hinzufügen...
Meinst du, es wird dann einfach vorher die Datei entsprechend kompiliert (und mit welchen Compilereinstellungen :nixweiss:)?
Ivy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 228



BeitragVerfasst: Mo 04.07.11 11:00 
hm ok, schonmal gut zu wissen.
wie generiere ich eine dll aus meiner cs datei??
Th69
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Moderator
Beiträge: 4807
Erhaltene Danke: 1061

Win10
C#, C++ (VS 2017/19/22)
BeitragVerfasst: Mo 04.07.11 11:58 
Hallo,

einfach ein neues Projekt mit deiner CS-Datei anlegen und dort dann bei den Projekteinstellungen unter "Ausgabetyp" den Eintrag "Klassenbibliothek" auswählen.
Und im Ordner "Release/Bin" liegt dann die DLL welche du in der ToolBox dann referenzieren mußt.
Ivy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 228



BeitragVerfasst: Mo 04.07.11 13:22 
super, hat geklappt, vielen dank :)

EDIT: hab jetzt auch herausgefunden wie es ohne dll geht.

man muss einfach die .cs datei ins hauptverzeichnis der anwendung kopieren. dann kann man über den projektmappenexplorer -> Hinzufügen -> vorhandenes element die .cs datei auswählen. anschließen wieder im projektmappenexplorer auf neuerstellen. dann wird das tool in die tooolbox hinzugefügt^^