Xamarin 怎么设置在自己手机上测试

wudi_vv 2021-03-25 11:44:00
原先是用模拟器上测试的,现在想在自己手机上测试,开发模式开了,设备管理器里面找不到我手机,

附上官网教程 https://dotnet.microsoft.com/learn/xamarin/hello-world-tutorial/devicesetup
...全文
388 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
wudi_vv 2021-03-26
  • 打赏
  • 举报
回复
谢谢各位了qwq
wudi_vv 2021-03-26
  • 打赏
  • 举报
回复
解决了,是我调用文件的位置变了所以报错
jhonsonzhang 2021-03-26
  • 打赏
  • 举报
回复
把那几个APP的基础文件,在文件资源管理器打开,然后右下选择unicode编码,就解决了。我记不太清了,以前我也遇到过,大致就是这样就好了。
Sqsdhc 2021-03-26
  • 打赏
  • 举报
回复
手机打开usb调试然后用usb链接电脑vs上面的启动那里就会有你手机的型号了
wudi_vv 2021-03-26
  • 打赏
  • 举报
回复
 public int InsertData(int id, string name) 
{
object[] results = this.Invoke("InsertData", new object[] {id,name});
return ((int)(results[0]));
}

编码是这部分,昨天刚开始测试的时候还没问题,不知道哪里错了 = =、
jhonsonzhang 2021-03-26
  • 打赏
  • 举报
回复
应该是你手机电脑驱动没安装配置好。报错那个是编码问题。改为unicode就好了。
wudi_vv 2021-03-25
  • 打赏
  • 举报
回复
调试问题已解决 是开发模式没设置好
wudi_vv 2021-03-25
  • 打赏
  • 举报
回复
System.InvalidOperationException
Message=Not supported Content-Type in the response: 'text/html'
Response error message:
--
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<title>500 - �ڲ�����������</title>
<style type="text/css">
<!--
body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
fieldset{padding:0 15px 10px 15px;}
h1{font-size:2.4em;margin:0;color:#FFF;}
h2{font-size:1.7em;margin:0;color:#CC0000;}
h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
background-color:#555555;}
#content{margin:0 0 0 2%;position:relative;}
.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
-->
</style>
</head>
<body>
<div id="header"><h1>Server Error</h1></div>
<div id="content">
<div class="content-container"><fieldset>
<h2>500 - Internal server error.</h2>
<h3>There is a problem with the resource you are looking for, and it cannot be displayed.</h3>
</fieldset></div>
</div>
</body>
</html>



手机调试的时候报错,,,这个是啥

110,537

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧