如何改变项目计划中的语言 [英] how to change language in project program

查看:61
本文介绍了如何改变项目计划中的语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net编码语言中更改语言,如c#vb php

how to change in language in asp.net coding language like c# vb php

推荐答案

要更改现有项目的语言,您必须转换它。

要在同一个开发中使用不同的语言,您可以在主解决方案中添加不同语言的项目 - 但是,不能在同一个项目中添加使用不同的语言。
To change the language of an existing project you will have to convert it.
To use different languages in the same development you may add projects of different language to the main solution - you can not add use different languages in the same project, however.


原则上,每个Web页面的服务器端代码可以使用不同的语言编写,甚至可以使用不同的服务器端技术,但这与使用Visual StudioWeb站点项目模板非常尴尬。原则上,您可以为实现站点页面的某些子集的不同技术创建不同的项目,并单独部署它们,以便将文件合并到同一部署站点中。我不建议这样做,因为你会获得更多的支持麻烦而不是福利。



此外,一旦你切换,比方说, VB.NET到PHP,你的项目将抓住一个ASP.NET项目。 :-)有一个排除:有一个PHP for .NET的产品,你可以用它来进行ASP.NET开发:

http://en.wikipedia.org/wiki/Phalanger_%28compiler%29 [ ^ ],

http://www.php-compiler.net/ [ ^ ]。



这个版本的PHP编译器不仅针对.NET,它还拥有出色的Visual Studio扩展模块。



但是,我担心这不是你的意思。如果你只是想用PHP开发,你需要切换到PHP,至少对于网站的某些页面,我试图在上面描述。在这种情况下,它与ASP.NET无关。你应该明白PHP是一种非常基本和丑陋的语言,特别是如果你将它与.NET语言进行比较( http://en.wikipedia .org / wiki / List_of_CLI_languages [ ^ ])。 PHP有一个直接的好处:即使最便宜(甚至免费)的Web托管计划通常支持PHP这些天。 ASP.NET托管通常更昂贵,更难找到。但是,如果你真的需要将ASP.NET与PHP混合或执行一些逐步迁移,这个好处对你来说不会有太大作用...... :-)



-SA
In principle, each Web page's server-side code behind can be written in a different language and even using different server-side technologies, but this is quite awkward to do with Visual Studio "Web site" project template. In principle, you can have different projects for different technologies implementing some sub-sets of the site pages and deploy them separately, so the files would be merged in the same deploy site. I would not recommend to go in this way, as it you would "gain" more support troubles than benefits.

Besides, as soon as you switch from, say, VB.NET to PHP, your project will seize to be an ASP.NET project. :-) With one exclusion: there is such product as PHP for .NET, which you could use for ASP.NET development:
http://en.wikipedia.org/wiki/Phalanger_%28compiler%29[^],
http://www.php-compiler.net/[^].

Not only this version of PHP compiler targets .NET, it has excellent Visual Studio extension module.

However, I'm afraid this is not what you meant. If you simply want to develop in PHP, you need to switch to PHP, at least for some pages of the site, as I tried to describe above. In this case, it won't have anything to do with ASP.NET. You should understand that PHP is a very rudimentary and ugly language, especially if you compare it with .NET languages (http://en.wikipedia.org/wiki/List_of_CLI_languages[^]). PHP has one immediate benefits though: even the cheapest (or even free-of-charge) Web hosting plans usually support PHP these days. ASP.NET hosting is typically more expensive and harder to find. However, if you really need to mix ASP.NET with PHP or perform some step-by-step migration, this benefit wouldn't do much for you… :-)

—SA


从C#到VB的转换工具:



http://www.developerfusion.com/tools/convert/csharp-to-vb/ [<一个href =http://www.developerfusion.com/tools/convert/csharp-to-vb/\"target =_ blanktitle =新窗口> ^ ]
A conversion tool from C# to VB:

http://www.developerfusion.com/tools/convert/csharp-to-vb/[^]


这篇关于如何改变项目计划中的语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆