note 93662 added to class.dotnet
| From: | mholmesatwindowlogicdotcomdotau at osu1 dot php dot net | Date: | Tue, 22 Sep 2009 04:31:21 +0000 |
| Subject: | note 93662 added to class.dotnet | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-160913@lists.php.net to get a copy of this message | ||
For strongly-named NET assemblies that are registered in the GAC, you can just use the assembly name
e.g: $x = new DOTNET ("myAssembly", "myClass");
For strongly-named NET assemblies that aren't registered in the GAC, you need to use the full
assembly string
e.g. $x = new DOTNET('myAssembly, Version=X.X.X.X, Culture=neutral,
PublicKeyToken=ZZZZZZZZZZZZ', 'myClass');
You can't instantiate assemblies that haven't been strongly named.
"Strongly named" means that the assembly has a public key. To strongly name your own
classes in Visual Studio, go to the Signing tab in the project properties and click the 'sign
the assembly' box and choose a key file name.
To register an assembly in the GAC, there are various tools around to do that, but the easiest
method is to drag-and-drop the compiled assembly into c:\windows\assembly using windows explorer (a
shell extension is installed by default that handles registering dragged files).
----
Server IP: 208.69.120.35
Probable Submitter: 203.161.69.40
----
Manual Page -- http://www.php.net/manual/en/class.dotnet.php
Edit -- https://master.php.net/note/edit/93662
Del: integrated -- https://master.php.net/note/delete/93662/integrated
Del: useless -- https://master.php.net/note/delete/93662/useless
Del: bad code -- https://master.php.net/note/delete/93662/bad+code
Del: spam -- https://master.php.net/note/delete/93662/spam
Del: non-english -- https://master.php.net/note/delete/93662/non-english
Del: in docs -- https://master.php.net/note/delete/93662/in+docs
Del: other reasons-- https://master.php.net/note/delete/93662
Reject -- https://master.php.net/note/reject/93662
Search -- https://master.php.net/manage/user-notes.php