Code Monkey home page Code Monkey logo

Comments (3)

bottledlactose avatar bottledlactose commented on June 17, 2024

"Simply" changing the version to 4.1.0 does not seem to work. The project will build successfully, but is unable to run. It throws the following exception:

Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'DSharpPlus, Version=4.1.0.930, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'DSharpPlus, Version=4.1.0.930, Culture=neutral, PublicKeyToken=null'
   at DevExchangeBot.Program.MainAsync()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at DevExchangeBot.Program.MainAsync()
   at DevExchangeBot.Program.Main() in /home/delightedcat/Repositories/DevExchangeBot/src/Program.cs:line 35

I've already looked at this one last night without being able to make much sense of it. I tried to remove my local cache files with another dotnet restore hoping this would resolve the issue, without any luck.

@JustAeris Would you be able to look into this one, as you originally added the nightly sources to the project?

from devexchangebot.

JustAeris avatar JustAeris commented on June 17, 2024

You can try removing the IDoEverything.DSharpPlus.SlashCommands package and replacing it with the new one simply called DSharpPlus.SclashCommands, since the latter is the official integration

from devexchangebot.

bottledlactose avatar bottledlactose commented on June 17, 2024

Thank you for your reply, it seems to be that the new slash commands module is only available under the latest nightly build of version 4.2.0 of DSharpPlus. An attempt to install the nightly package led me to discover the --prerelease parameter in the dotnet add package command that allows the correct packages to be installed.

Because of this, the bot is now able to run again. I'm not expecting breaking changes of a minor version bump (4.1.0 to 4.2.0) but I'll test the bot for a bit to ensure it's working as intended. I'll merge my update branch once I did so!

EDIT: To clarify, this still means we'll use nightly builds. but this seems to be the only way to keep the bot up-to-date and to pull in the new slash commands package. It might mean more breaking API changes (according to the documentation), though.

from devexchangebot.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.