开发者

Silverlight in asp.net?

开发者 https://www.devze.com 2023-01-10 10:39 出处:网络
开发者_如何学编程If I need to build a silverlight application and have it work under my asp.net application!
开发者_如何学编程

If I need to build a silverlight application and have it work under my asp.net application!

Does that mean I have to create two different vs projects?

One for silverlight the other my asp.net application? Or I can have one in 1? What do I do?

Sorry if this is a silly question..

Thanks


Yes, you need a separate project for the Silverlight app. At least in VS2010, you can go to ASP.NET's project's properties, Silverlight Applications tab, and select "Add..." to add a Silverlight project with all the plumbing hooked up.


You will need to create a separate project for the Silverlight code. But, you will be able to incorporate that application into an existing ASP.Net project. You will want them both in the same solution, of course.

In the project properties of the Silverlight project there is an option to choose the ASP.Net project to incorporate the Silverlight app into. That's why you want them in the same solution.


the silverlight app is technically a class library project. So a separate project would be required.

0

精彩评论

暂无评论...
验证码 换一张
取 消