34 Replies
please run a
dotnet --info
in the command lineit looks like you have the 32 bit version of .NET installed. youwant the 64 bit most likely
are you on windows?
Yes im on windows
open your environment variables and check your
PATH
do you know how to do that?got it open
Im in the System > Path > Edit Environment Variable
there should be a "PATH" variable for your user and the system
it should include the path to dotnet
ignore the NVIDIA
okay so yeah you have two dotnet's. the x86 one and the one on your W: drive
try moving the x86 to the bottom
Yep
so that the
Program Files\dotnet\
will be prefered
essentially we want it to use 64 bitAh
I don't know if this will fix your issue but I have seen similar issues with otheer VSC users
after you change the order do another
dotnet --info
Yep thats all working now and saying I have SDKs
and it should include the
Program Files
path (without the x86)
if it does, try restarting VSC and doing the same thingAny idea around this error?
Exception thrown while loading w:\noble\Downloads\X\X\X.csproj Microsoft.CodeAnalysis.MSBuild.Rpc.RemoteInvocationException: An exception of type System.AggregateException was thrown: A directory or directories in "msbuildSearchPaths" do not exist
I would probably have to see the code and try to replicate it to help with that one, but you are at least past your initial error it seems 🙂
keep in mind that Visual Studio is much more beginner friendly than VSC. VSC is decent once you know what you are doing, but it require extra manual crap (like the environment variables you just dealt with) and that makes it not beginner friendly
is your code open source?
No its from a friend im trynna help code wise, I just aint set up C# before lol
So should I just install Visual Studio instead?
very much yes. Visual Studio Community edition is free. Visual Studio is a fully featured IDE and much better than VSC for C# in general.
I still like using VSC personally, but it is just not on Visual Studio's level
Okay cool installing it now, lets see what happens IG lol
can you also share the
.csproj
file?okay... so...
that looks like a windows forms app
yes it is can vsc not run that
which you definitely need visual studio for
VSC doesn't have a windows forms designer at all
you need VS for it
Ah thats the issue then
also this looks like a .NET Framework project
.NET Framework is old and legacy now
we are using ".NET" now
Whats the difference and how easy is it to migrate from .NET framework -> .NET
It is easy to migrate, the difference is that ".NET Framework" was Windows only. ".NET" is more or less an entirely new version of .NET that is cross platform
Windows Forms apps are not cross platform, but ".NET" apps that don't use windows dependencies are cross platform
Oh ok Thank you
$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
also, when you install Visual Studio, be sure to select this workload to install:
you can adjust what workloads you have installed via the Visual Studio Installer. Just launcher it and choose "modify":