The integration to Visual Studio is performed during dotConnect for PostgreSQL installation. If you installed Visual Studio 2017 after this, our provider won't be integrated into it. You need to reinstall dotConnect for PostgreSQL to have it integrated into a new Visual Studio.
Please note, that Visual Studio 2017 is supported starting from dotConnect for PostgreSQL 7.8.862. For more information, please refer to
https://www.devart.com/dotconnect/postg ... story.html. Thus you will not have dotConnect for PostgreSQL Licence wizard with dotConnect for PostgreSQL 7.4.616 even if you reinstall the provider.
With Visual Studio 2017, you need to use dotConnect for PostgreSQL 7.8.862 or higher. However, you can use Visual Studio 2017 even with dotConnect for PostgreSQL of a version older than 7.8.862. In this case you have to compile license resources manually.
The license resource can be compiled in the following way:
1) Create a text file named licenses.licx and enter the following text inside the licenses.licx file:
Devart.Data.PostgreSql.PgSqlConnection, Devart.Data.PostgreSql
2) Generate the license resource file using the following command line:
"%Compiler Path%\lc.exe /target:MyApplication.exe /complist:licenses.licx /i:"%Assembly Path%\Devart.Data.PostgreSql.dll"
Where:
- %Compiler Path% is the path to the appropriate lc.exe file (for example, C:\Program Files\Microsoft.NET\SDK\v2.0\Bin);
- MyApplication.exe is the name of your target executable file. If you want to compile a license resource for a class library project, specify MyApplication.dll instead of MyApplication.exe, where MyApplication.dll is the name of the class library.
- licenses.licx is your licenses.licx file. Place licenses.config file in the same folder as the licenses.licx file for a class library project;
- %Assembly Path% is the Devart.Data.PostgreSql.dll assembly location.
3) The License compiler will generate the 'MyApplication.exe.licenses' ('MyApplication.dll.licenses' for class library project) resource file;
4) Add this file to your project as an embedded resource.
For more information, please refer to
https://www.devart.com/dotconnect/postg ... ml#compile