Jump to content

does not find the file MySql.Data.resources.dll


Recommended Posts

Posted (edited)

Hello rage mp community, I want to develop my server on the rage engine, now I'm trying to connect the database, I have already written all the code, but it gives such an error - it does not find MySql.Data.resources.dll. Maybe someone knows how to solve this problem? Help me please.

https://imgur.com/TGcXzUY

Edited by kiboo
Posted

Wrong section!

Check your project, you should have Mysql.Data.Resource in the build folder if not you need to check the copy to output proberty on your Solution if yes copy all needed Libaries from build folder to SERVER/dotnet/runtime 

  • Like 1
Posted (edited)
On 8/2/2022 at 8:19 PM, kiboo said:

There is no such file in the build folder. 

This is why you're having that problem. You need to install the MySQL package into your project. 

 

If you want to do it automatically (assuming you're using VSCode), open the package manager and type 

Quote

Install-Package MySql.Data -Version 8.0.30

Or you can simply open the terminal in VSCode and type:

Quote

dotnet add package MySql.Data --version 8.0.30

Both of these commands do the same thing through different platforms, it will automatically install the package for you in your project (I emphasize "for your project" because most beginners don't realize that packages are project-dependent). 

This process can be done manually if you want to learn what's actually happening to your project.

Useful link: https://stackoverflow.com/questions/40675162/install-a-nuget-package-in-visual-studio-code

Edited by Heathen
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...