Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stride doesn't start #2329

Open
mgbdevp opened this issue Jun 15, 2024 · 7 comments
Open

Stride doesn't start #2329

mgbdevp opened this issue Jun 15, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@mgbdevp
Copy link

mgbdevp commented Jun 15, 2024

here is the screenshot:
image

note: i have installed .NET SDK 8.0 and Visual C++ 2015-2019 Redistributable 14.22, didn't installed Visual Studio, do i need Visual Studio for use Stride?

@mgbdevp mgbdevp added the bug Something isn't working label Jun 15, 2024
@IXLLEGACYIXL
Copy link
Collaborator

  1. run dotnet --list-sdks => needs to contain net8
  2. restart your pc

@MeharDT
Copy link
Contributor

MeharDT commented Jun 16, 2024

Visual Studio 2022 is needed to use Stride, I think you can get away with just Build Tools 2022 if you don't want to install VS proper.

@IXLLEGACYIXL
Copy link
Collaborator

Visual Studio 2022 is needed to use Stride, I think you can get away with just Build Tools 2022 if you don't want to install VS proper.

install of net8 and restart of pc is enough , VS2022 isnt required

@MeharDT
Copy link
Contributor

MeharDT commented Jun 16, 2024

install of net8 and restart of pc is enough , VS2022 isnt required

They do have the SDK installed, it could be deprecated legacy code but Stride checks for MSBuild before showing the above error so I think VS or Build Tools is still required.

MSBuildInstance = MSBuildLocator.QueryVisualStudioInstances().FirstOrDefault(x => isNETCore

@Jklawreszuk
Copy link
Collaborator

Jklawreszuk commented Jun 16, 2024

@MeharDT The method name can be confusing but in practice this method is looking for NET SDK paths, so no, VS is not required for developing games with Stride

@Jklawreszuk
Copy link
Collaborator

Jklawreszuk commented Jun 16, 2024

snippet:

public static IEnumerable<VisualStudioInstance> GetInstances(string workingDirectory)
    {
      foreach (string dotNetBasePath in DotNetSdkLocationHelper.GetDotNetBasePaths(workingDirectory))
      {
        VisualStudioInstance instance = DotNetSdkLocationHelper.GetInstance(dotNetBasePath);
        if (instance != null)
          yield return instance;
      }
try{
PackageSessionPublicHelper.FindAndSetMSBuildVersion();
Console.Write("Should not throw");//ok
}
//Note: I tested it on Fedora 39

@MeharDT
Copy link
Contributor

MeharDT commented Jun 17, 2024

snippet:

public static IEnumerable<VisualStudioInstance> GetInstances(string workingDirectory)
    {
      foreach (string dotNetBasePath in DotNetSdkLocationHelper.GetDotNetBasePaths(workingDirectory))
      {
        VisualStudioInstance instance = DotNetSdkLocationHelper.GetInstance(dotNetBasePath);
        if (instance != null)
          yield return instance;
      }
try{
PackageSessionPublicHelper.FindAndSetMSBuildVersion();
Console.Write("Should not throw");//ok
}
//Note: I tested it on Fedora 39

Fair enough, we can probably simplify the method if that's the case. I suspect much of it is probably deprecated legacy code.

@mgbdevp did a restart solve your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants