note 108899 added to class.dotnet

From: Date: Sun, 03 Jun 2012 03:39:31 +0000
Subject: note 108899 added to class.dotnet
Groups: php.notes 
Request: Send a blank email to php-notes+get-188374@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 71.197.182.145 ---- Manual Page -- http://www.php.net/manual/en/class.dotnet.php Edit -- https://master.php.net/note/edit/108899 Del: integrated -- https://master.php.net/note/delete/108899/integrated Del: useless -- https://master.php.net/note/delete/108899/useless Del: bad code -- https://master.php.net/note/delete/108899/bad+code Del: spam -- https://master.php.net/note/delete/108899/spam Del: non-english -- https://master.php.net/note/delete/108899/non-english Del: in docs -- https://master.php.net/note/delete/108899/in+docs Del: other reasons-- https://master.php.net/note/delete/108899 Reject -- https://master.php.net/note/reject/108899 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188374) next »