42 Replies
i was following a tutorial online and for some reason it works for him but not me
What's the error?
What version of .NET are you using?
latest i think
That is latest .NET Framework, yes
Not the latest .NET
.ArgumentList
is supported from .NET Standard 2.0 onwards
There is no support in .NET Framework
(also, you should not be making anything with Framework anyway, just use .NET 8)oh
how can i switch
to .net 8 then?
sdk or runtime?
SDK
Though VS 2022 should have it by default
As long as it's up to date, at least
yeah it does
so how would i switch it to .NET 8 then
Change the target framework in csproj
How would I do that
im kinda new to all this
1. Close VS
2. Open the
.csproj
file in a text editor
3. Edit it and save
4. Reopen VSYeah i tried doing that
didnt work
I changed this to v8
it was v4.8 before
net8.0
I'd just make a new project, then, and copy the code over
If you don't have much code yet, it's the easiest way
$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
oki thanks
its been stuck on this for a while
ok nvm i fixed it
my ui looks very different
from it was before
@ZZZZZZZZZZZZZZZZZZZZZZZZZ u know a fix for this?
Just... change the styling of those element?
how would i do that
cus it worked before i transferred it from .net framework to .net
thats the thing it was using before for the button
Looks fine. The foreground is white, the background is blue
Looks like the screenshot is exactly how it should look
oh no
Or do you mean that the first screenshot is the after?
thats the screenshot of what it looked like before
yeah
the first is the after
Right
Does it look this way in the designer?
Did you try running the app, does it look correct then?
tried running it
and it looks the same
Huh
I'll be honest, my WPF experience is close to none
You might have some luck asking in #gui
okayy thanks