kiboo Posted August 2, 2022 Posted August 2, 2022 (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 August 2, 2022 by kiboo
DaNeo Posted August 2, 2022 Posted August 2, 2022 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 1
kiboo Posted August 2, 2022 Author Posted August 2, 2022 (edited) There is no such file in the build folder. Edited August 2, 2022 by kiboo
Heathen Posted August 10, 2022 Posted August 10, 2022 (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 August 10, 2022 by Heathen 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now