如何为便携式类库构建目标包? [英] How can I build a targetting pack for Portable Class Libraries?

查看:159
本文介绍了如何为便携式类库构建目标包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用这些便携式类库构建一些代码

I'm building some code with these portable class libraries at present.

我希望以完整的.Net,WinRT Metro,Windows Phone等为目标,然后是MonoTouch和MonoDroid.我今天的实验表明这可以正常工作- http://slodge.blogspot.co.uk/2012/04/experiments-with-portable-class.html

I'm looking to target full .Net, WinRT Metro, Windows Phone, ... and then MonoTouch and MonoDroid. My experiments today show this can work - http://slodge.blogspot.co.uk/2012/04/experiments-with-portable-class.html

但是,我遇到了一个相当大的问题-MonoTouch和MonoDroid当前支持这些库,因为您可以将PCL作为二进制程序集使用,但它们不允许在项目文件之间进行链接

However, I have hit a fairly significant problem - MonoTouch and MonoDroid currently support these libraries in that you can consume PCLs as binary assemblies, but they don't allow linking between project files

  • 例如我可以从MonoDroid项目中引用MyLib.dll,但不能引用MyLib.csproj.

这是一个问题,因为这意味着自动(重新整理)重构不起作用-我的大部分工作似乎都依赖于此!

This is a problem as it means automated (resharper) refactoring doesn't work - and I seem to rely on this for most of my work!

我已经看到Microsoft发布了允许您扩展类库的目标包,但是我还没有弄清楚它们的安装位置或它们的修改内容.

I've seen that Microsoft publish targetting packs that allow you to extend class libraries, but I've not worked out where these install to or what they modify.

以下是当前的Microsoft列表: http://msdn.microsoft.com/en -us/hh487282.aspx

Here's the current Microsoft list: http://msdn.microsoft.com/en-us/hh487282.aspx

有人对这些包装盒包含什么或有人如何制作自己的包装盒有任何了解吗?如果它们不太复杂,那么我想尝试为MonoTouch和/或MonoDroid生产一个.

Does anyone have any knowledge about what these packs contain or how someone might make their own pack? If they're not too overly complex, then I would like to have a go at producing one for MonoTouch and/or MonoDroid.

推荐答案

最近发生了几次,所以我写了一篇博客文章,该文章应该做您想要做的事情:

This has come up a few times recently, so I wrote a blog post that should do what you want:

http://jpobst.blogspot. com/2012/04/mono-for-android-portable-libraries-in.html

请让我知道是否有任何问题!

Please let me know if have any issues!

这篇关于如何为便携式类库构建目标包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆