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代码如下:

None.gif <% @ Page Language = " C# "  AutoEventWireup = " true "  CodeBehind = " Default.aspx.cs "  Inherits = " WebApplication1._Default "   %>
None.gif
None.gif
<! DOCTYPE html PUBLIC  " -//W3C//DTD XHTML 1.0 Transitional//EN "   " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd " >
None.gif
None.gif
< script runat = " server " >
None.gif
None.gif    
protected   void  Button1_Click( object  sender, EventArgs e)
ExpandedBlockStart.gifContractedBlock.gif    
dot.gif {
InBlock.gif
ExpandedBlockEnd.gif    }

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

而使用英文VS2005版本正确的效果应该是在CS代码中自动增加事件响应函数定义,CS代码如下:
None.gif using  System;
None.gif
using  System.Data;
None.gif
using  System.Configuration;
None.gif
using  System.Collections;
None.gif
using  System.Web;
None.gif
using  System.Web.Security;
None.gif
using  System.Web.UI;
None.gif
using  System.Web.UI.WebControls;
None.gif
using  System.Web.UI.WebControls.WebParts;
None.gif
using  System.Web.UI.HtmlControls;
None.gif
None.gif
namespace  WebApp1
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
InBlock.gif    
public partial class _Default : System.Web.UI.Page
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
InBlock.gif        
protected void Page_Load(object sender, EventArgs e)
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif
ExpandedSubBlockEnd.gif        }

InBlock.gif
InBlock.gif        
protected void Button1_Click(object sender, EventArgs e)
ExpandedSubBlockStart.gifContractedSubBlock.gif        
dot.gif{
InBlock.gif
ExpandedSubBlockEnd.gif        }

ExpandedSubBlockEnd.gif    }

ExpandedBlockEnd.gif}

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

转载于:https://www.cnblogs.com/pcmax/archive/2006/06/26/435577.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值