68 Replies
Close VS, delete
.bin
and .obj
folders in the project, open VS, rebuildstill the same
Show some more code then, I guess
this good?
That error usually a sign that you have your nuget references messed up. Can you show your csproj?
I guess it could also be related to this issue, but it's marked as solved: https://github.com/DSharpPlus/DSharpPlus/issues/1547
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/Oh no old-style csproj
Ooof
Is it a .NET Framework project?
Very much so
Microsoft, for fuck's sake, remove those templates already...
So
You will want to start a new project
$newproject
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework.
.NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended.
https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
Install all the nuggets there
And copy-paste your code there
This will be the simplest way to make up for Microsoft's mistake
can i just use my old code i already have?
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Also, and this is the likely cause of your actual error: you depend on at least 2 different versions of DSharpPlus
Both 4.4.6.0 and 3.0.198.0
You technically can upgrade to modern .NET, sure
But just making a new project and copying the code over will be the easiest, IMO
aight can you guys help me with creating a new project?
Here
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
I'm not sure what the HSNXT.* references are, but it looks abandoned
so WPF App is best?
No
For a discord app? Probably not
Your current project is a console app
So just use a console app
As long as it does not have the
(.NET Framework)
suffix it's fineowh
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
yea my previous one had
This is the web sdk
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
this one good?
TeBeCo
Quoted by
<@689473681302224947> from #System.TypeLoadException (click here)
React with ❌ to remove this embed.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
yea thats this one
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
aight thx
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
and how i do that
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
where do i see it (this is my first D#+ project)
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
TeBe is talking about the old, .NET Framework project
If you already made a new one, none of that will be there
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
i already made a new one
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
np
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
? dont know if ther is a api key in it
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
ill just delete all my old stuff
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
but now i got a lil problem with my old commands and code, they got a lot of errors
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
i could do that
or i could let chatgpt do it for me
ill try that first
this all kinda happened because i got mad. I wanted to make a command that gives the user a Modal that he/she can fill in and when submitted it shows the results as an embed
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
how do i commit?
$gitstarted
moved to
$git
$git
interactive teaching:
https://learngitbranching.js.org/
msft learn course:
https://learn.microsoft.com/en-us/training/modules/intro-to-git/
git init
initializes the repository
dotnet new gitignore
adds a .gitignore file
git add .
starts tracking all files
git commit -m "[message]"
creates a commit
git remote add origin [url]
adds a remote repository
git push -u origin main
first push, sets the remote as upstream
git push
all pushes after that can be just this
Git cheat sheethttps://github.com/jatochjoran/CBSBot
this good?
404, the repo is private probably
Probably
Ill take a look for u tomorrow gonna go to bed now, gotta get up early.
https://github.com/jatochjoran/CBSBot
now its public
GitHub
GitHub - jatochjoran/CBSBot
Contribute to jatochjoran/CBSBot development by creating an account on GitHub.
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
Np