PCL配置文件冲突

时间:2016-07-11 01:26:28

标签: c# xamarin portable-class-library

我需要创建一个在我的Xamarin和ASP.NET MVC项目中使用的类库。但是我试图让这项工作成功。 我做的最后一件事是为Xamarin创建一个PCL(使用VS模板)构建并将其添加到我的项目中,但这并不重要,它总是说同样的事情:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head></head> <body> <!-- The form we don't want to submit --> <form name = "myForm" method = "POST"> <input name = "button" type="submit" value="I will not submit!"/> </form> <!-- The form we want to submit --> <form name = "myForm2" method = "POST"> <input name = "button2" type="submit" value="I will submit!"/> </form> <script type = "application/javascript"> // For the form we don't want to submit document.forms.myForm.onsubmit = function(e) { e = e || event; e.preventDefault(); } document.forms.myForm.button.onclick = function () { console.log("NOT Submitted!"); return false; } // For the form we want to submit document.forms.myForm2.button2.onclick = function () { console.log("Submitted!"); } </script> </body> </html>

我检查了两个csprojs(我的lib和xamarin项目),它们都是profile111。

PS:我知道这个&#34;应该&#34;工作,因为很多图书馆都这样做。一个例子是我在两个项目中引用的You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile111', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

修改

我尝试过的事情:

  • Profile24,Profile111和Profile259

我在这里缺少什么?

测试项目网址:http://s000.tinyupload.com/index.php?file_id=55538840394777983398

0 个答案:

没有答案