I am building a .net webapi backend for a project I'm working on, and need to use the MySql .NET Connector. My boss does not want me to use NuGet for the MySql .NET connector, due to concerns with not being able to verify the file checksums. I was able to download it from the MySql website and verify the checksums. I can't figure out how to reference it in my project so I can use it in my code. Can anyone help me figure this out? I am using VS Code
Asked
Active
Viewed 46 times
0
-
2"I was able to download the windows version of the connector and verify the checksums" as in the DLL file that nuget would have done for you? Yes, that's the manual way to install a third party library. – gunr2171 Feb 25 '23 at 03:36
-
And nuget can do content hashing if you enable [lock files](https://devblogs.microsoft.com/nuget/enable-repeatable-package-restores-using-a-lock-file/) – gunr2171 Feb 25 '23 at 03:40
-
Thank you for the info on lock files I will dig into this and talk to my boss. I'm newer to working in .NET and we have some pretty strict rules about what we can use. I installed the connector, but can't seem to use it in the project I'm working on. What do I need to do to add a reference to it in the project? – greel87 Feb 25 '23 at 03:48
-
Does this answer your question? [How do I add a reference to the MySQL connector for .NET?](https://stackoverflow.com/questions/1102281/how-do-i-add-a-reference-to-the-mysql-connector-for-net) – gunr2171 Feb 25 '23 at 03:53
-
Unfortunately those instructions seem to be for Visual Studio not VS Code. I don't think there is an option in vs code to add reference by right clicking. – greel87 Feb 25 '23 at 04:03
-
Tell your boss: if he wants results, he needs to stop being cheap and buy you VS and secondly the 80s called: they want their dll hell back. *smh – Fildor Feb 25 '23 at 07:08
-
any chance you will be able to use 3rd party tools like https://www.sqlshack.com/visual-studio-code-for-mysql-and-mariadb-development/ – Allanckw Feb 25 '23 at 10:04