开发者

Compiling Issue. C#

Got an issue.

When I recompile my code, non of the changes take effect. I've tried to add MessageBoxes, chang开发者_开发问答e labels, the color of text .. everything. When I recompile nothing changes, it seems to load old code.

Any idea what's going on? Is there a cache or anything?


I've had this issue when I had a GAC'd version of the same DLL that I tried to debug. During load, the runtime would pick up the version from the GAC rather than the one I just compiled.


Are you sure you are running the same code you changed? Try single steppings through the app rather than run.


Open up your application directory, delete the debug folder.


You may need to clean your build output. Right-click on the Solution (or Project) icon in the solution browser and select 'clean'.


Try opening the "Modules" window (from the Debug->Windows menu). This will show you where the runtime is loading your assemblies from.


Build -> Rebuild Solution. This will do clean up and build for your.


And very rarely, delete the .suo file associated with the project.. Which will force rebuilding..


Try to create new project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜