Autor Beitrag
syox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22

WinXP, Debian GNU/Linux mit 2.6.13er Kernel
Visual Studio 6 (C/C++), , Borland Delphi 2005 Prof. (Delphi), Quanta+ (Perl, HTML, CSS)
BeitragVerfasst: Di 06.12.05 17:03 
Hi Zusammen,

habe eben mal ein Assembly (santa_asm.dll) per "gacutil /i santa_asm.dll" in den Gac installiert.

Nun möchte ich gerne dieses Assembly aus dem GAC in mein neues Delphiprojekt einbinden.
Dazu klicke ich mit der rechten Maustaste auf "Referenzen->Referenz hinzufügen". Da müsste jetzt
unter den .NET-Assemblies die santa_asm auftauchen.. leider ist dies nicht der Fall.
Es tauchen nur die Assemblies auf die zum Zeitpunkt der Borland Delphi 2005 Installation bereits
im GAC waren.
Alle nachträglich installierten Assemblies stehen nicht drin...

AssemblyInfo:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
[assembly: AssemblyTitle('Santa')]
[assembly: AssemblyDescription('desc')]
[assembly: AssemblyConfiguration('')]
[assembly: AssemblyCompany('this')]
[assembly: AssemblyProduct('')]
[assembly: AssemblyCopyright('')]
[assembly: AssemblyTrademark('')]
[assembly: AssemblyCulture('')]

[assembly: AssemblyVersion('1.0.0.1')]

[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile('santa_asm.key')]
[assembly: AssemblyKeyName('')]


is das normal?
Marauder
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 72



BeitragVerfasst: Do 08.12.05 00:04 
Hast Du dass Assembly als Package erstellt?
Ist es richtig signiert? Sieht ja auf den ersten Blick so aus...

ausblenden Delphi-Quelltext
1:
[assembly: AssemblyKeyFile('santa_asm.key')]					


Wie hast Du das Keyfile erstellt?
syox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22

WinXP, Debian GNU/Linux mit 2.6.13er Kernel
Visual Studio 6 (C/C++), , Borland Delphi 2005 Prof. (Delphi), Quanta+ (Perl, HTML, CSS)
BeitragVerfasst: Do 08.12.05 12:05 
Hab ne Delphi für .NET Bibliothek (DLL) erstellt.

Keypaar mit "sn -k santa_asm.key" erstellt.

Im Explorer unter %WINDIR%\Assembly wird mir das Assembly auch angezeigt.

Im Delphi 2005 wird das Assembly aufgelistet wenn Komponente->Komponente importieren->.NET Assemblierung wählt.
Möchte man eine Referenz zum Projekt hinzufügen .NET Assemblierungen steht es nicht. Das ist misteriös...
Möchte die Assembly gerne als Referenz einbinden und später in den USES stehen haben.

*kopfsenk*
Marauder
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 72



BeitragVerfasst: Do 08.12.05 12:21 
Erstell mal das selbe Projekt, aber als Package. Signier es genauso mit dem Key, dann sollte
es laufen.

Libraries taugen (anscheinend) nur zur Verwendung mit Visual Studio oder zum Einbinden in
Win32 App's.
syox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22

WinXP, Debian GNU/Linux mit 2.6.13er Kernel
Visual Studio 6 (C/C++), , Borland Delphi 2005 Prof. (Delphi), Quanta+ (Perl, HTML, CSS)
BeitragVerfasst: Di 13.12.05 12:21 
Nun hab ich das ganze mit einem Delphi .NET Package probiert.

Habe das Assembly wieder signiert und mit "gacutil /i <assembly>" dem GAC hinzugefügt.
Leider wird das Assembly nicht unter "Referenz hinzufügen" .NET Assemblierungen angezeigt..

Das Projekt habe ich nun gepackt und an den Beitrag angehängt.
Einloggen, um Attachments anzusehen!
Marauder
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 72



BeitragVerfasst: Do 15.12.05 01:31 
Lass mir noch ein paar Tage Zeit, ich probier das mal über's Wochenende aus,
hab diese Woche noch ein paar wichtige geschäftliche Termine.