Web Application Project插件的安装问题

最近在学习VS.Net 2005,安装了一个中文版本的,在编写Web.Site的时候积极的不适应,查了一些资料听别人介绍有个Web Application Project的插件可以使编写Web程序像VS2003一样,结果下来装了下,很不幸报错了,后来在查阅相关资料说微软将在今年夏天推出,fanit。后来又想到求助我敬仰的微软兄弟们,回复邮件如下:

Issue 9 - Installing on non-English Locales
Web Application Projects are shipped in two parts: a Visual Studio 2005 addin which adds Web Application Projects and a GDR which makes small changes to Visual Studio 2005 to allow the Web Application Projects addin to work better.

The GDR contains a check to make sure you are installing on an English locale version of Visual Studio 2005. If you are running Visual Studio 2005 in another locale the install will fail. The addin has a check to make sure the GDR is installed.

The following workaround should allow you to install an English version of Web Application Projects on your localized version of Visual Studio 2005. Please note this is not a tested scenario and is only provided for testing purposes on your localized system.

Please note you will have to have an English version of Visual Studio 2005 installed on your localized version of Windows. You can run different localized versions of Visual Studio 2005 side-by-side.

1. Under Tools/Options/International Settings in Visual Studio 2005, set the language to "English"

2. Install the Web Application Projects GDR -- http://go.microsoft.com/fwlink/?LinkId=63636

3. Install the Web Application Projects Addin -- http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx

4. Under Tools/Options/International Settings, set the language back to your normal language.

自己试过了,好像中文版本里面只有两项选择:中文 和 microsoft window相同。这方法肯定是在中文版本上行不同,其它语言版本未试。

后来自己又查到一怪招,说是先安装英文VS2005版本,随后把Web Application Project安装上,再卸载英文VS2005版本,再随后把中文VS2005安装上去,这样Web Application Project果真出现在中文VS2005版本里面了。

不过使用结果还是出现新的问题,在设计服务器控件事件时自动增加事件响应函数直接定义在aspx页面文件中了,aspx代码如下:

<% @ Page Language = " C# "  AutoEventWireup = " true "  CodeBehind = " Default.aspx.cs "  Inherits = " WebApplication1._Default "   %>

<! DOCTYPE html PUBLIC  " -//W3C//DTD XHTML 1.0 Transitional//EN "   " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >

< script runat = " server " >

    
protected   void  Button1_Click( object  sender, EventArgs e)
    
{

    }

</ script >

< html xmlns = " http://www.w3.org/1999/xhtml "   >
< head runat = " server " >
    
< title > Untitled Page </ title >
</ head >
< body >
    
< form id = " form1 "  runat = " server " >
    
< div >
        
< asp:Button ID = " Button1 "  runat = " server "  OnClick = " Button1_Click "  Text = " Button "   /></ div >
    
</ form >
</ body >
</ html >

而使用英文VS2005版本正确的效果应该是在CS代码中自动增加事件响应函数定义,CS代码如下:
using  System;
using  System.Data;
using  System.Configuration;
using  System.Collections;
using  System.Web;
using  System.Web.Security;
using  System.Web.UI;
using  System.Web.UI.WebControls;
using  System.Web.UI.WebControls.WebParts;
using  System.Web.UI.HtmlControls;

namespace  WebApp1
{
    
public partial class _Default : System.Web.UI.Page
    
{
        
protected void Page_Load(object sender, EventArgs e)
        
{

        }


        
protected void Button1_Click(object sender, EventArgs e)
        
{

        }

    }

}

唉,总之折腾了半天还是没有在VS2005的中文版上安装成功Web Application Project,看来真的只有等待夏天发布了(不过夏天已经来了,这几天长沙都热醉了),苦苦等待。。。。。

你可能感兴趣的:(application)