Visual Studio executes something when i try to build it. How do i find out the code that stays behind this?

三世轮回 提交于 2019-12-13 13:29:55

问题


As in title, I downloaded a program from github, but when i try to build it, it says:

The command ""E:\LoLNotes\LoLNotes\Properties\GitExport.exe" "E:\LoLNotes\" "E:\LoLNotes\LoLNotes\"" exited with code 2.

GitExport.exe doesn't work because i have no git installed. But i want to know, how do i find a place in program sources, where that code is being executed? Simple ctrl-f and searching through solution doesn't work, so i think it is hidden somewhere in the configuration files maybe? Does anyone have any idea where it could be?


回答1:


It could also be part of a customization to a project file (similar to what nuget does). In order to find out exactly where it is being fired, turn on project build output verbosity to Diagnostic in Tools\Options\Projects and Solutions\Build and Run. Then rebuild and search the output for GitExport.exe. This should give you a better context as to where it is happening.




回答2:


It's probably a Post or Pre Build Event.

In the project, open "Properties", and look in the Build Events tab.




回答3:


In Solution Explorer, right click on the Project and choose Properties. It is then in the Build Events section.



来源:https://stackoverflow.com/questions/13463205/visual-studio-executes-something-when-i-try-to-build-it-how-do-i-find-out-the-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!