System.Threading.Thread does not exist?

Asked

Viewed 193 times

0

I’m trying to learn how to use multithreading in C#, but all tutorials ask me to use the System.Threading.Thread class, but it seems that in my Visual Studio this class does not exist! A print for you to understand better:

inserir a descrição da imagem aqui

Am I forgetting something? Do I need to do some configuration? I’m kind of new in c#, but I used to mecher in Threads in java

  • What kind of application? Xaml? Windows Forms? If XAML try to import reference System.Threading.dll

  • I’m using a framework called Duality2d, for game development, which integrates Visual Studio direct (as in Unity), I don’t know exactly what kind of application :/

  • To use the resources of . Netframework you need to import the reference you need. But I don’t think that developing a 2D game like Unity needs the resources of the framework!

  • And then why not use Unity2d itself? It’s free and has the same features!

  • But a tip I recommend using Monodevelop for Unity and not Visual Studio 2015, for simply Monodevelop has much more resources to work at Unity

1 answer

1

The System.Threading.Thread is set in mscorlib which is a standard DLL for every project in . NET, but from what you said in the comments of the question, you are apparently not working on a project that makes use of the . NET framework.

If you are looking to learn about multi-threading using the System.Threading.Thread you will need to use another Visual Studio project template, such as console applications, Windows Forms and WPF, for example.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.