如下一个非常简单的c#程序,为什么在我的vs2005 中不能调试,不能点击调试按钮?
如何做到就像vc6.0 那样一个单独的程序也能调试和运行?谢谢
using System;namespace Wrox.ProCSharp.Basics
{
public class ScopeTest
{
public static int Main()
{
for (int i = 0; i < 10; i++)
{
Console.WriteLine(i);
} // i goes out of scope here // We can declare a variable named i again, because
// there's no other variable with that name in scope
for (int i = 9; i >= 0; i--)
{
Console.WriteLine(i);
} // i goes out of scope here
return 0;
}
如何做到就像vc6.0 那样一个单独的程序也能调试和运行?谢谢
using System;namespace Wrox.ProCSharp.Basics
{
public class ScopeTest
{
public static int Main()
{
for (int i = 0; i < 10; i++)
{
Console.WriteLine(i);
} // i goes out of scope here // We can declare a variable named i again, because
// there's no other variable with that name in scope
for (int i = 9; i >= 0; i--)
{
Console.WriteLine(i);
} // i goes out of scope here
return 0;
}
解决方案 »
- 【讨论】C#做透明加密的 思路 和方法【100分送】
- 动态加载TabPage
- 想找个师傅呀,嘿嘿!!!难道真的能自学成才???嘿嘿
- Asp.net 2.0 中把javaScript放在单独文件里面怎么调用??怎么总是出错??
- 如何将文本框设置成日期格式
- 如何在c#中实现可以拖动的菜单条
- 大家来讨论一下asp.net程序如何打包部署
- 用c#向access数据库插入一条新记录,提示“插入失败”,请教~~
- 几行简单那的代码不知道意思
- c# 调用c dll, 然后c 回调c#, 但是c# 这边变量被释放掉怎么办
- 分析 URI“http://www.baidu.com/”的 Cookie 标头时出错
- 简单传值的问题
为什么我的c#文件不能运行和调试,,我把.cs的文件打开后,vs2005 的调试按钮不能点击。
比如把下面这个文件,想执行出来他的结果,怎么办
using System;namespace Wrox.ProCSharp.Basics
{
public class ScopeTest
{
public static int Main()
{
for (int i = 0; i < 10; i++)
{
Console.WriteLine(i);
} // i goes out of scope here // We can declare a variable named i again, because
// there's no other variable with that name in scope
for (int i = 9; i >= 0; i--)
{
Console.WriteLine(i);
} // i goes out of scope here
return 0;
}
{
public static int Main()
{
for (int i = 0; i < 10; i++)
{
Console.WriteLine(i);
} // i goes out of scope here // We can declare a variable named i again, because
// there's no other variable with that name in scope
for (int i = 9; i >= 0; i--)
{
Console.WriteLine(i);
} // i goes out of scope here
return 0;然手生成、调试就应该都可以了。
还是用csc,简单的文件调试个什么劲