Can Silverlight OOB or WebHosted be built on the x64 platform?

I did a SL5 OOB test project and tried to build under the x64 platform, but I got a warning:

"Assembly assembly - The assembly link" CommonLanguageRuntimeLibrary "targets another processor."

and error:

Error 2 Failed to load the file or assembly: /// C: \ work \ TestSilverlightOOB \ TestSilverlightOOB \ obj \ x64 \ Debug \ TestSilverlightOOB.dll or one of its dependencies. An attempt was made to download a program with the wrong format. C: \ Program Files (x86) \ MSBuild \ Microsoft \ Silverlight \ v5.0 \ Microsoft.Silverlight.Common.targets 214 9 TestSilverlightOOB

The same goes for WebHosted with RIA enabled.

+6
source share
2 answers

Finally, the answer to the questions is no. Silverlight applications cannot be created as x64 applications.

The reason here is the links.

c: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework \ Silverlight \ v5.0

- x86, and for Silverlight 5 there is no x64 SDK

+1
source

Since it works correctly in 32-bit mode, and since I see that the error points to the SL library in 32-bit program files, when working in 64-bit mode, the most likely reason I see a conflict between the two platforms.

Please try to get Silverlight from here: https://www.microsoft.com/getsilverlight/Get-Started/Install/Default

, x64, , .

: https://social.msdn.microsoft.com/Forums/vstudio/en-US/20a742a1-b99c-4638-8590-9a9d6a95fb69/building-silverlight-project-using-msbuildexe?forum=msbuild

, .

0

All Articles