문제

I am using Unity 2.0 with Silverlight 4 and RIA Services. Is xml configuration not supported in the web project of a Silverlight Business Application? The only way I can get the resolve method of the container to work is if I register my types at runtime vs design time in the xml config file.

도움이 되었습니까?

해결책

Not at this time - Silverlight doesn't have System.Configuration, which is the library that runs the app.config / web.config file. It would take a LOT of duplicated code to get the existing config syntax working in Silverlight.

There was a project on Codeplex to provide a XAML-based configuration system for Silverlight apps using Unity.

Update: found it - http://sonicnet.codeplex.com - I guess I had a bad link when looking before.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top