We would 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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.