当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - Visual Studio Modifications to a Project not Updating the .exe File in \bin

问题描述:

I am quite new to Visual Studio (Express). I made a project and then put a shortcut on my Desktop to the .exe file. Later I made some changes to the project which are all visible when I run the project in Visual Studio using CTRL + F5. However, the .exe file that is pointed to by my Desktop shortcut still runs the old version.

Any advice is appreciated.

Regards.

网友答案:

You may need to use the "Rebuild" action instead of "Build". Sometimes .NET compiler gets confused what has changed - "Rebuild forces a recompile of the solution instead of just the "changed" files.

网友答案:

by rightclicking on your project in solution explorer, going to properties and then going to the build tab you can choose your output path. bin\Debug\ is the default which is probably where your newly built .exe is going

网友答案:

There can be many reasons for the issue. What I did was removing the .exe files present in the /bin/Debug directory. The rebuild will automatically generate the .exe file again.

分享给朋友:
您可能感兴趣的文章:
随机阅读: