ASP.NET 3.5 Web アプリケーションの既定の "ジェネリック ハンドラー" コードがクラスに属性を追加するのに、正しい名前空間参照を追加しないのはなぜですか。これは、すぐに使用できるテンプレートです。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Handler1
{
/// <summary>
/// Summary description for $codebehindclassname$
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class People : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
context.Response.Write("Hello World");
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
上部に行がないのはなぜですか。
using System.Web.Services;
これは Microsoft のデフォルト テンプレートのバグですか? 何か不足していますか?