Is it possible to change the target framework to .net 4.0 in an application originally started in Silverlight 3? I have upgraded the Silverlight target to Silverlight 4 with no problem, but it seems that I am stuck with using the .net framework 3.5 in my actual C# code. (I’m trying to use threading tasks if that is any help)
I am using the most up to date version of Visual Studio 2010. I can’t seem to find an explicit way to set the framework of the Silverlight (the target framework for the companion website is easy to find)
Thanks everyone.
Silverlight integration in VS2010 isn’t that smooth yet. The build tools are still in beta. The “.NET Framework Target” setting has no effect and they forgot to disable it. Silverlight runs on its own CLR version. You normally get prompted for the Silverlight runtime version when you create a new project. You can change it afterward with Project + Properties, Silverlight tab, “Target Silverlight Version” combobox.
You won’t find 4.0 in this combobox if you didn’t install it yet. That’s done separate, after you install VS2010. Download location is here.