Calling directly into Win API to get current process exe
authorHenric Müller <hemuller@microsoft.com>
Thu, 6 Oct 2016 12:46:53 +0000 (14:46 +0200)
committerHenric Müller <hemuller@microsoft.com>
Fri, 7 Oct 2016 12:23:23 +0000 (14:23 +0200)
commit33263bd79021813da710906efa1b455d91fd461d
treeda42e95a798590fc389cb7ddd86045b37575d92a
parent629da62c52b08f28185a4cd98a76ea84acb7eeaf
Calling directly into Win API to get current process exe

On Windows the MonoToolsLocator tries to determine which mono.exe
to use by looking at the current process. Due to problems with
AppDomains and shadow copying (which happens in System.Web) we
could not use this approach. Instead we now call GetModuleFileName
directly using p-invoke to get the exe file of the running process.
This is only used when running on Windows.
mcs/class/System.Web/System.Web.dll.sources
mcs/class/System.Windows.Forms/System.Windows.Forms.dll.sources
mcs/class/System/System.dll.sources
mcs/class/System/System/MonoExeLocator.cs [deleted file]
mcs/class/System/System/MonoToolsLocator.cs [new file with mode: 0755]