开发者

Read projects settings from code

We wou开发者_如何学Pythonld like to know if it is possible to read values from the projectfile.vbproj.user file or use it to compile values into the binaries.


The vbproj.user file contains preferences for Visual Studio and doesn't form part of the compiled application.

If you want to extract values from it in this way, you need to parse it during the build and generate a file that is included in your application.

You could consider using a T4 template to parse the file and generate a VB class for you.

But consider if it's the right thing to do in the first place. The intent of the file is to persist development-time settings, not runtime ones.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜