migrate Silverlight program to HTML5 problem

Please post public support tickets here. Note: for private support tickets, please send an email to support@cshtml5.com instead.
willy8249
Posts: 4
Joined: Thu Dec 13, 2018 7:33 am

migrate Silverlight program to HTML5 problem

Postby willy8249 » Thu Dec 27, 2018 6:35 am

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.

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: migrate Silverlight program to HTML5 problem

Postby JS-Support @Userware » Fri Dec 28, 2018 6:33 am

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

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: migrate Silverlight program to HTML5 problem

Postby JS-Support @Userware » Fri Jan 04, 2019 3:56 am

Hi,

Did the proposed solution fix the issue?

Thanks.
Regards

willy8249
Posts: 4
Joined: Thu Dec 13, 2018 7:33 am

Re: migrate Silverlight program to HTML5 problem

Postby willy8249 » Mon Jan 07, 2019 5:59 am

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.

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: migrate Silverlight program to HTML5 problem

Postby JS-Support @Userware » Mon Jan 07, 2019 7:26 am

Hi,
When you execute the CSHTML5 project, does the Simulator window appear?

willy8249
Posts: 4
Joined: Thu Dec 13, 2018 7:33 am

Re: migrate Silverlight program to HTML5 problem

Postby willy8249 » Thu Jan 17, 2019 8:05 pm

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.

willy8249
Posts: 4
Joined: Thu Dec 13, 2018 7:33 am

Re: migrate Silverlight program to HTML5 problem

Postby willy8249 » Sat Jan 26, 2019 2:16 am

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.

samyuan31515
Posts: 2
Joined: Mon Dec 17, 2018 1:48 am

Silverlight migrate to CSHTML5 problem

Postby samyuan31515 » Sun Jan 27, 2019 10:11 pm

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.

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: migrate Silverlight program to HTML5 problem

Postby JS-Support @Userware » Mon Jan 28, 2019 3:00 am

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 35 guests

 

 

cron