C
C#6mo ago
forkt

ProcessStartInfo error with ArgumentList

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