惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Vercel News
Vercel News
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
IT之家
IT之家
B
Blog
博客园_首页
量子位
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
J
Java Code Geeks
H
Help Net Security
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
D
DataBreaches.Net
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News

博客园 - 维生素C.NET

[ie8特性1] 6个conection per domain的设计 asp.net 3.5 extensions readme Vista上无法使用WCF的处理方法 SQL Server 2005 Management Studio假死的情况 Internal .Net Framework Data Provider error 6 查找含有特定字符的存储过程 firefox, IE6, IE7在CSS hack上的入口点 不知道多少人存在这个误解: Google Reader/Google Notebook使用以前的英文界面的办法 IronRuby博客中文版-- IronRuby: a promising start IronRuby的下载 http的基础知识帮助减少代码量和复杂度的一个Demo - 维生素C.NET - 博客园 关于SQL Server的两个细节 为LINQ提速的i4o和增强功能的SLINQ 在Longhorn Server上无法安装SQL Server 2008 (Katmai) 设置Longhorn Server中的图片缩略图显示 关于控件部分的看法--读Programming ASP.NET中文版 分享一本入门级好书:Programming ASP.NET中文版 555,又丢了一辆自行车
编译IronRuby项目和修复其中的一些bugs
维生素C.NET · 2007-08-05 · via 博客园 - 维生素C.NET

编译:

1.下载了源代码,并且安装了.net framework

2.因为.net framework安装时的bug,所以一定要检查一下%frameworkdir%,%frameworkversion%这两个环境变量的位置,我直接修改的build.cmd文件,使用了msbuild的绝对位置:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\msbuild.exe /p:Configuration=Release /t:Rebuild IronRuby.sln

3.保存Build.cmd,在console下运行它,不出意外的话将成功编译。

测试一个bug:

1 a="fanweixiao"
2 "fanweixiao"
3 b=" 维生素C.net"
4 " 维生素C.net"
5 c=a+b
6 "fanweixiao 维生素C.net"
7 a
8 "fanweixiao 维生素C.net"

大家可以看到变量a也变成a+b了

修复这个bug

找到Ruby\Builtins\MutableStrings.cs的Concatenate(MutableString self, MutableString other)方法:

很明显self.Append(other)会导致self自己发生改变,那么我们改写这个方法:

再次编译运行rbx.exe,已经被修复了。

其他:

正如大家看到的一样,这只是一个Pre-Alpha版本,有许许多多的细节还不完善,不过如果想将其尽快应用上,有些文章能派上用场:

FePy对math方面的修复和扩展

WPF Sample in IronRuby talking via C# to Wesabe

IronRuby with .Net 3.x and Windows Presentation Foundation (WPF)