可选包

Optional Package

是否可以在可选包中包含c#代码?还是仅限于本机代码?大多数博客都建议将其限制为本机代码。但是我需要为我的项目实现 c# 代码。

Is it possible to have c# code in optional package?

目前,由于 .Net 限制,无法在可选包中包含 C# 代码。

更多细节可以参考@Sandeep George写的博客Extend your application using Optional Packages

"All Store apps are compiled via .Net Native and hence is the default build chain when you build your app locally in release mode – see https://msdn.microsoft.com/en-us/library/dn584397(v=vs.110).aspx. Since the app is precompiled, all the referenced dlls must be available at compile time and are statically linked. Optional packages by design can have dlls that are only loaded at run time, hence we have this issue. We are working with the .NET teams to have a solution for this problem."