- 允许通过Build Toolbar选择"Debug" or "Relese"设置
"工具" -> "选项..." -> 选择"显示所有设置" -> "项目和解决方案" ->选择"显示高级生成配置"
- 在VS2k5 Express工程中使用NUnit-GUI测试(以Visual C# 2005 Express为例)
- 创建一个新的类库工程。

- 添加NUnit框架引用。
- 编写测试代码。
using System;
using NUnit.Framework;
namespace NUnitTest
{
[TestFixture]
public class Class1
{
[Test]
public void Test1()
{
int a = 1;
int b = 2;
int sum = a + b;
Assert.AreEqual(sum, 3);
}
}
}
- 使用NUnit-GUI测试。这一步需要修改.csproj文件,加入下面代码:
<PropertyGroup>
<Nunit_Path Condition="'$(NUNIT_PATH)' == ''">C:\Program Files\NUnit 2.4.2</Nunit_Path>
<StartAction>Program</StartAction>
<StartProgram>$(NUNIT_PATH)\bin\nunit.exe</StartProgram>
<StartArguments>/run $(TargetFileName)</StartArguments>
<!--.csproj.user overwrites those values!-->
</PropertyGroup>
重新加载工程,F5
原来一直在Ubuntu 7.04下使用MonoDevelop 0.12,今天偶然发现MonoDevelop已经升级到0.14了。马上升级!!
http://www.getdeb.net/search.php?keywords=monodevelop