Why is the STAThread attribute ignored?

against strange behavior http://cs317916.userapi.com/v317916959/bd9/KMttLQEIbDs.jpg

Hi all!

Can someone explain to me how this could be?

Thanks, Alex.

+3
source share
2 answers

I still think that the linked answer is a bit complicated, especially because the OP confirmed that it doesn’t , in fact, have a DLL with the same name as the EXE. I also cannot reproduce it.

, , , Fusion - , . Fuslogvw.exe, "Log all binds". , DLL, EXE, . :

LOG: Attempting download of new URL file:///C:/projects/ConsoleApplication3/bin/Debug/ConsoleApplication3.DLL.
LOG: Attempting download of new URL file:///C:/projects/ConsoleApplication3/bin/Debug/ConsoleApplication3/ConsoleApplication3.DLL.
LOG: Attempting download of new URL file:///C:/projects/ConsoleApplication3/bin/Debug/ConsoleApplication3.EXE.
LOG: Assembly download was successful. Attempting setup of file: C:\projects\ConsoleApplication3\bin\Debug\ConsoleApplication3.exe
LOG: Entering run-from-source setup phase.

, , DLL. , . DLL Hell . CLR [STAThread]. " " Connect, Fusion Windows Microsoft, DevDiv.

Anyhoo, , . Project + Properties, Build, .

+4

, , , , Visual Studio, ( ),

, , , Visual Studio - MTA.

Debug.Write .

0

All Articles