You can however convert PHP to source code that can be compiled.
microsoft have a PHP to ASP.NET covnersion tool you can download.
http://www.asp.net/downloads/archived/migration-assistants/php-to-aspnet/
It isn't great, but it does the job.
The resutl is more like ASP than ASP.NET code.