note 108899 deleted from class.dotnet by danbrown

From: Date: Sun, 03 Jun 2012 15:35:23 +0000
Subject: note 108899 deleted from class.dotnet by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-188385@lists.php.net to get a copy of this message
Note Submitter: dpchiesa at hotmail dot com ---- Someone previously said that you cannot instantiate a .NET assembly from PHP if the assembly has not been strongly named. This is not quite correct. You can instantiate an assembly that is not strongly named, but you need to put it in a place where PHP can find it. Putting an assembly into the GAC is one way to allow any application to find it, including PHP. .NET says that you must strongly-name an assembly before putting it into the GAC. So, if you want to instantiate your assembly from the GAC using PHP, then you must strongly name it. On the other hand if you don't want to bother with strong naming or the GAC, you can just copy your assembly into the directory that contains php.exe. See http://stackoverflow.com/a/10867678/48082 for more details.

« previous php.notes (#188385) next »