Page 1 of 1

migrate Silverlight program to HTML5 problem

Posted: Thu Dec 27, 2018 6:35 am
by willy8249
I tried to migrate Silverlight program to HTML5. When I followed the webpage: “Main steps for migrating a Silverlight/WPF application of the Silverlight Migration Guide” document (http://www.cshtml5.com/links/migrating- ... light.aspx), I encountered an error message. The details are the following.
Since there is an Update: a "Silverlight Migration Wizard" is now available to help you create the projects and copy the files. It can be launched from the Tools menu of Visual Studio, I clicked directly at the “Migrate Silverlight project(s) to CSHTML5…” under TOOLS as shown in Figure1 that is provided in the “Migration Guide” webpage.
https://imgur.com/o4kHPxQ
Figure1
The "Silverlight Migration Wizard" indeed showed up in the Figure2
https://imgur.com/5i9mnOR
Figure 2
After I (1) clicked at the “Browse…” button (circled in red), (2) selected the directory of the project I wanted to migrate, selected the "ExpanderControl.csproj" that is in the contents of that directory, and (3) clicked at “open” button (circled in blue) (in Figure2), an error message showed up (in Figure3).


https://imgur.com/1xQtQXe
Figure 3,
There are two Chinese sentences that I translate to English to help you to understand what went wrong.
https://imgur.com/HByzkjL
Can not find the import project.

https://imgur.com/1xQtQXe
(the Chinese sentence with a red underline)
Please ensure that path declared in the <import> is correct and the file exists in the disk.

We do not really know where the referred <import> is and what it means.
I would like to ask if anyone knows how to solve this problem.
Thanks a lot for your help in advance.

Re: migrate Silverlight program to HTML5 problem

Posted: Fri Dec 28, 2018 6:33 am
by JS-Support @Userware
Hi,

The error message says the following file could not be found on your machine:

C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets

This is due to the fact that your project was created with Silverlight version 3, but the Silverlight 3 SDK is not installed.

To solve the issue, please download and install the Silverlight 3 SDK from:

https://www.microsoft.com/en-us/download/details.aspx?id=16011

Regards

PS: by the way, you may be interested to know that we have a team dedicated to the migration of Silverlight applications. The team is very experienced and has already successfully migrated many applications. If you are interested, we can analyse your code (under NDA) and send you an evaluation of the level of effort and the cost that you would incur if you had us do the migration. The analysis is free of charge (for up to 100,000 lines of code). If you are interested, free to contact us at: sales@cshtml5.com

Re: migrate Silverlight program to HTML5 problem

Posted: Fri Jan 04, 2019 3:56 am
by JS-Support @Userware
Hi,

Did the proposed solution fix the issue?

Thanks.
Regards

Re: migrate Silverlight program to HTML5 problem

Posted: Mon Jan 07, 2019 5:59 am
by willy8249
After we followed the instructions you gave, the migration process worked well.
The three projects were translated to CSHTML5 and the corresponding codes were generated as shown in figure 1.
https://imgur.com/WU7oJhi
(figure1)
After we completed the migration, the solution can be compiled successfully.
But when we executed the solution, it still showed the same alert message as shown in figure 2.
https://imgur.com/5b0TRuz
(figure2 It showed “install Microsoft sliverlight”.)
How can we solve this problem? In our opinion, the migration process is supposed to convert all the sliverlight stuff to CSHTML5. The words“Install Microsoft sliverlight” are not supposed to be displayed. It seems to us that the web server still somehow detected the sliverlight did not exist in either server side or client side and generated such a message as a result. Do we have any misunderstanding?
Thanks a lot.

Re: migrate Silverlight program to HTML5 problem

Posted: Mon Jan 07, 2019 7:26 am
by JS-Support @Userware
Hi,
When you execute the CSHTML5 project, does the Simulator window appear?

Re: migrate Silverlight program to HTML5 problem

Posted: Thu Jan 17, 2019 8:05 pm
by willy8249
1.We made use of ”Silverlight migration wizard” in Visual studio to migrate our silverlight project to cshtml5 project. When we clicked at browse button to migrate the project, the error message in figure 2 showed up。

https://imgur.com/q9sik7y
(Figure1)

https://imgur.com/SkaE3XT
(Figure2)

2. Then, we got the message from CSHTML forum that we did not install silverlight 3 SDK(as shown in figure 3). After we installed silverlight 3 SDK, we began to migrate our program that includes 4 projects. However, although the first three projects were migrated successfully, the fourth one still got the error message as shown in figure 2 that we encountered before。

We would greatly appreciate it if you could give us some suggestions to solve this problem.
Thank you very much for your help.

Re: migrate Silverlight program to HTML5 problem

Posted: Sat Jan 26, 2019 2:16 am
by willy8249
1.We made use of ”Silverlight migration wizard” in Visual studio to migrate our silverlight project to cshtml5 project. When we clicked at browse button to migrate the project, the error message in figure 2 showed up。

https://imgur.com/q9sik7y
(Figure1)

https://imgur.com/SkaE3XT
(Figure2)

2. Then, we got the message from CSHTML forum that we did not install silverlight 3 SDK(as shown in figure 3). After we installed silverlight 3 SDK, we began to migrate our program that includes 4 projects. However, although the first three projects were migrated successfully, the fourth one still got the error message as shown in figure 2 that we encountered before。

We would greatly appreciate it if you could give us some suggestions to solve this problem.
Thank you very much for your help.

Silverlight migrate to CSHTML5 problem

Posted: Sun Jan 27, 2019 10:11 pm
by samyuan31515
1.We made use of ”Silverlight migration wizard” in Visual studio to migrate our silverlight project to cshtml5 project. When we clicked at browse button to migrate the project, the error message in figure 2 showed up。

https://imgur.com/q9sik7y
(Figure1)

https://imgur.com/SkaE3XT
(Figure2)

2. Then, we got the message from CSHTML forum that we did not install silverlight 3 SDK(as shown in figure 3). After we installed silverlight 3 SDK, we began to migrate our program that includes 4 projects. However, although the first three projects were migrated successfully, the fourth one still got the error message as shown in figure 2 that we encountered before。

We would greatly appreciate it if you could give us some suggestions to solve this problem.
Thank you very much for your help.

Re: migrate Silverlight program to HTML5 problem

Posted: Mon Jan 28, 2019 3:00 am
by JS-Support @Userware
Hi,

I am glad that installing the Silverlight SDK has fixed the issue.

For the remaining project that still shown an exception, I would recommend the following workaround: instead of using the Migration Wizard, please manually create a new project of type:
- "CS XAML for HTML5" => "(Silverlight Migration Edition) Empty Application" if the project to migrate is the Silverlight application entry point
- or "CS XAML for HTML5" => "(Silverlight Migration Edition) Class Library" if the project to migrate is a Silverlight class library

and then copy/paste all your C# and XAML files from the Silverlight project to migrate into this new project that you just created.

The result will be very similar as if you had used the Migration Wizard.

Please let us know if you still encounter any issues.

Thanks.
Regards