C
C#12mo ago
forkt

ProcessStartInfo error with ArgumentList

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