stride: can't find MSBuild
I have downloaded MSBuild from Visual Studio. I asked ChatGPT to help me, and it suggested:
Select Workloads:
In the installer, select the workloads you need. For MSBuild, you can choose: .NET desktop development ASP.NET and web development Desktop development with C++
In following the path that MSBuild should be on. I see I have Program Files and Program Files (x86) and Program Files and Program Files. Which path is where the build should be?
Platform(s): Does the problem occur on Windows, Android…? Windows
Describe the bug Pushing the start 4.2.0.2149 button makes this message come up. Cannot advance past it.
Error message: Stride Game Studio 4.2.0.2149 (.NET 8.0.6)
Could not find a compatible version of MSBuild. Check that you have a valid installation with the required workloads, or go to www.visualstudio.com/downloads to install a new one. Also make sure you have the latest .NET 6 SDK System.InvalidOperationException: Failed to find all versions of .NET Core MSBuild. Call to hostfxrresolvesdk2. There may be more details in stderr. at Microsoft.Build.Locator.DotNetSdkLocationHelper.GetSdkFromGlobalSettings(String workingDirectory) at Microsoft.Build.Locator.DotNetSdkLocationHelper.GetDotNetBasePaths(String workingDirectory)+MoveNext() at Microsoft.Build.Locator.DotNetSdkLocationHelper.GetInstances(String workingDirectory)+MoveNext() at Microsoft.Build.Locator.MSBuildLocator.GetInstances(VisualStudioInstanceQueryOptions options)+MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable1 source, Func2 predicate, Boolean& found) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func`2 predicate) at Stride.Core.Assets.PackageSessionPublicHelper.FindAndSetMSBuildVersion() in C:\BuildAgent\work\b5f46e3c4829a09e\sources\assets\Stride.Core.Assets\PackageSessionPublicHelper.cs:line 40 at Stride.GameStudio.Program.Startup(UFile initialSessionPath) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\editor\Stride.GameStudio\Program.cs:line 221
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 60 (6 by maintainers)
EVERY 🥇 SINGLE 🥇ONE 🥇 OF 🥇 YOU 🥇 ARE 🥇 GENIUSES.
Thank you.
Ok, so I am gonna name something in my game after every one of you. It may be 10 years from now when you see it, but remember this moment!
I gonna go cry with happiness now.
screenshot would be best as always
also why is there a x86 path in there at all
can you reopen the window and show how its currently?
y0,ou have exactly t0ha issue https://github.com/dotnet/sdk/issues/22508#issuecomment-963494604 the x86 dotnet comes first and AFTER that normal dotnet comes => x32 dotnet gets called and for that you have 0 sdks
you have for x64 which is in C:\Program Files\dotnet\ but its below x86 path
now the mystery why you cant edit the environment variables…
Can you try the steps here and see if it gives you Edit access?
https://superuser.com/a/1467834
run in powershell
$env:PATH -split ';'( its very weird that you cant edit the system variables as admin )
there is also an official windows discord to help with windows problems and i dont know how to resolve that issue
https://superuser.com/questions/1467734/i-am-admin-but-i-cannot-edit-system-variables-windows-10 maybe that one? i dont have windows home
uhhhhhhhhhhhhhh thats new 🤣 that is maybe also the reason why the install doesnt work…
do you have stride still open or VS ? something that may lock that thing?
maybe make a restart and go straight to that? there seems something horrible wrong there are you the admin of that pc? if not … why arent you
if dotnet cant set the system variable then ye… it aint gonna find anything
it has to open a second window with all values separated
that one
it wont open if you didnt close the other window from before when you opened user path variable
you double clicked on the top path, you need to double click on path in the bottom panel
you mean environment variables? can you share your path environment variables
can you check this too https://github.com/dotnet/sdk/issues/22508#issuecomment-963494604
does this path contain the sdk , run that
ls 'C:\Program Files\dotnet\sdk'does the command now list it?
should output something like this
I was just about to ask the same if we could have an output of that 😃
what happens when you run in powershell
dotnet --list-sdksCan you restart your PC after the installation and try opening Stride again?
The error message is out of date and will likely be changed in a future update to reflect the new requirements.
Not sure if this helps. …
I have MSBuild in this location. It wasn’t added to PATH be default. I usually refer just the whole path…
The “ASP.NET and web development” workload is not needed for Stride and MSBuild isn’t either for Stride 4.1+.
Have you downloaded the latest .NET 8.0 SDK?
https://dotnet.microsoft.com/en-us/download/dotnet/8.0