无法在现有应用程序中添加新代码 [英] Not able to add new code in existing application

查看:78
本文介绍了无法在现有应用程序中添加新代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在c#.net中开发了一个Windows应用程序.
由于某些问题,我格式化了电脑并重新安装了.Net 3.5.

现在,我已经打开了相同的项目并尝试进行开发.
但是在调试时,编译器不会执行我的新代码.

我已经尝试过工具>选项>调试>一般>需要源文件...
它不起作用.

I had developed one windows application in c#.net.
Due to some problem I have formatted my pc and re-installed .Net 3.5.

Now i have opened the same project and trying to develop it.
but at the time of debugging the compiler does not executes my new code.

I have tried Tools > Option > Debugging > General > Require source file......
its not working.

Please help me !

推荐答案

单击调试"(在VS上)会发生什么?
What happen when you click the Debug (on VS)?


新建项目并复制所有项目文件(excpet .sln和.csproj文件),然后尝试运行它
Make new project and copy all files(excpet .sln and .csproj file) in it then try running it


@CodingLover

@CodingLover

switch (tvPurchase.SelectedNode.Text)
{ 
    case "Orders":
        ...
        ...
        break;
    case "Vendors":
        ...
        ...
        break;
}



我的第一种情况是我的旧代码...
第二个是我添加的新代码.
断点出现在第二种情况下,但不执行...



my first case is my old code...
second one is new code that i added..
breakpoint comes on the second case but do not executes...


这篇关于无法在现有应用程序中添加新代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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