我正在尝试关注WP7开发的这个教程:http: //mobile.tutsplus.com/tutorials/windows/introduction-to-windows-mobile-7-development/
它正在谈论使用XElements,它需要System.Xml.Linq库,但我找不到将它添加到项目引用的方法.当我去添加引用时,.NET列表是空的,它说它被过滤到Windows Phone 7.
该教程可能已过时.该库甚至可用于WP7吗?是否有不同的方法在平台上读取XML?
我怎样才能让它运转起来?
编辑:
这里描述了同样的问题:http:
//forums.netduino.com/index.php?/ topic/1207-add-reference-net-tab-empty /
建议的修复程序对我不起作用.
编辑:
显然这是Silverlight 4工具中的一个错误:https: //connect.microsoft.com/VisualStudio/feedback/details/529718/empty-net-tab-when-adding-a-reference
我在Steam API方法中搜索发送Steam优惠并且无法找到.它可能与API或你知道其他方法吗?我想在PHP/Symfony中使用它.
我正在和别人的代码一起工作,所以我不知道整个画面,我甚至不知道MVC那么好,但问题在于......
在Site.Master中有一个
<%= Html.IncludeJs("ProductPartial")%>
Run Code Online (Sandbox Code Playgroud)
在最终加价中产生这条线
<script type="text/javascript" src="/Scripts/release/ProductPartial.js"></script>
Run Code Online (Sandbox Code Playgroud)
我在JS文件中做了一些更改,但旧版本显然是由浏览器缓存的,因此在用户刷新之前不会显示更改.通常的解决方法是在脚本源路径的末尾添加一个版本标记,但我不知道在这种情况下如何做到这一点.
有什么建议?
using System;
using System.Net;
using System.Xml.Linq;
namespace PhoneApp1
{
public class ABC
{
//constructor
public ABC()
{
}
void abc()
{
String url = "";
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse resp = (HttpWebResponse)req.GetRepsonse(); //why a wiggly line here?
XDocument Xmldoc = XDocument.Load(url);
}
Run Code Online (Sandbox Code Playgroud)
我没有得到GetResponse()这个req对象.为什么会这样?
这个链接和许多链接说它应该是可能的.