开发者

Is there a way to change the FileVersion of the *.vshost.exe file?

开发者 https://www.devze.com 2023-03-15 12:41 出处:网络
My title pretty much says it all, but a colleague has written a component that utilizes the the System.Diagnostic namespace to check the version of the running Process against a database of supported

My title pretty much says it all, but a colleague has written a component that utilizes the the System.Diagnostic namespace to check the version of the running Process against a database of supported versions to determine whether or not the running version is valid.

My problem is that when I run in debug mode, the code is hoste开发者_StackOverflowd by the compiled vshost.exe rather than my "true" exe. I know how to control the versioning on the primary EXE, but, I'm not having much luck finding a way to control it on the *.vshost.exe. Is there a way to do that, or should I just look for another approach?


If you don't find a way to change the file version, here's a workaround that someone might find usefull.

Consider disabling the hosting process for your project. You can uncheck the 'Enable the Visual Studio hosting process' option in your Project Properties's Debug tab.

Edit: Added link to what the hosting process does for you.

0

精彩评论

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