-
-
Notifications
You must be signed in to change notification settings - Fork 909
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
Xenko cant install bec of visual studio ERROR 1 #653
Comments
Please look at the documentation:
Also, in the video ti is clear that you are preventing the installer to complete its work. MSBuild Tools is part of the requirements, so you need to let it install or update necessary files. |
Before installing xenko. I'm using xenko 3.1 and visual studio 2019 community |
This isn't working for me too since a long time - I tried installing Xenko 3.1 throughout the last year and today, and it never worked on multiple PC installs here. I'm using VS2019 Enterprise 16.6 Preview 3 with Workloads ".NET desktop development", "Desktop development with C++" and ".NET Core cross-platform development", and I also tried it with older stable 2019 Community versions back in the days. Whenever the Xenko launcher tries to install something with the VS installer, the VS installer aborts with the log message
and error log message
so there seems to be something wrong in the installation process of Xenko 3.1. Btw, the VS installer logs to have been started with
After that, the Xenko launcher message "The installation of Visual Studio returned with code 1. Do you want to try it again?" appears (retrying does not help, it just repeats the issue above). It also logs:
I tried to manually install the VS2019 Build Tools as stated on https://doc.xenko.com/latest/en/manual/troubleshooting/xenko-doesnt-run.html (which is also outdated as the build tools are now listed under "Tools for Visual Studio 2019" on https://visualstudio.microsoft.com/downloads/ and not under "Other Tools and Frameworks" anymore) but it doesn't fix it either. Xenko 3.0 does not seem to have this problem (it doesn't open a VS installer at all), though I can't really see staying with an almost 2 year old version should be the solution :( |
@RayKoopa, The VS Preview versions are not been detected by the Stride Launcher, see issue #11. Having the Preview version installed in your machine might be the cause of those exceptions. |
@xwellingtonx I'll try that, though by now I may just wait for the Stride 4 Beta since I don't really want two VS installations right now. |
Just adding to this. I have the exact same problem, I already have VS2019 community installed that I am using with Unity 2019.3. Unity has been giving me some challenges and I saw Stride and thought that might be the C# orientated language that would work for me. No chance to install though. When you initially install it first asks if you want to install the latest version of the engine. It then asks if you want to install the latest version of the VS integrations and recommends you do this. I chose yes the first time and saw this error. Uninstalled the launcher and tried again, same issue. Then uninstalled and tried again this time selecting NO to installing the VS part. The VS launcher was still called anyway and the same error happened. |
Your issue should be resolved by starting the VS installer manually so it can update itself, according to your error message. |
The new launcher is supposed to give much more info by fetching them from the log. However, the most common reason is that Visual Studio Installer needs to self-update as well. |
Thanks everyone for helping but I just updated VS 2017 by accident and it somehow works. |
Guys, we need to at least write a friendly message when such a problem occurs. For example, if I download the installer from a link from an error, it will crash during the upgrade process, as it tries to start the package installer without command line arguments. I had to download the installer from the official MS website, completely remove the outdated version of VS, reinstall. Only after that I solved this problem. I think a link to KB or at least this issue will greatly help other users who have encountered a similar problem. |
Agree, it's important to replace this with a much better error message now that we start to know the various causes (i.e. list of likely reasons and possibly ask user to run/download VS Installer with a Yes/No dialog box) |
I had similar problem yesterday. |
my vs Version:Microsoft Visual Studio Enterprise 2019 16.6.2 Error code 1 while running install package process
[C:\Users\super\.nuget\packages\stride.gamestudio/4.0.0.1-beta04-1193\tools\packageinstall.exe]
Error: System.InvalidOperationException: Visual Studio 2019 install failed with error 1 在
Stride.PackageInstall.Program.CheckVisualStudioAndBuildTools() 位置
C:\BuildAgent\work\b5f46e3c4829a09e\sources\tools\Stride.PackageInstall\Program.cs:行号 154 在
Stride.PackageInstall.Program.Main(String[] args) 位置
C:\BuildAgent\work\b5f46e3c4829a09e\sources\tools\Stride.PackageInstall\Program.cs:行号 53
at Stride.Core.Packages.NugetStore.RunPackageInstall(String packageInstall, String arguments, ProgressReport progress) at
Stride.Core.Packages.NugetStore.OnPackageInstalled(Object sender, PackageOperationEventArgs args) at
Stride.Core.Packages.NugetStore.InstallPackage(String packageId, PackageVersion version, ProgressReport progress) at
Stride.LauncherApp.ViewModels.PackageVersionViewModel.<>cDisplayClass55_0.<<Download>b0>d.MoveNext() |
I had the same problem. Exception saying that there is already an installation running on the system. |
This issue seems widespread and hard to control/fix. |
This would still allow the targetting of .Net Framework for projects, correct? I'm all in favor of fixing this issue because it's plaguing adoption--and Stride has a good influx of developers weekly. I only fear that a change will impact some of the .Net Framework library stuff I use. |
Here's a workaround that was posted on discord: |
Worked brilliantly, thanks! Just had to time it right (as a temp work around I recommend this, hope the devs fix soon!) |
This is the only solution that worked for me. Thanks. |
@Jan-Jakub-Fleiser could you try to install Core 2.1 Developer tools in the visual studio installer? this solved it for me... |
|
that's the one. yes! :) |
I had the same issue as @Jan-Jakub-Fleiser. Turns out that Stride installer was invoking the VS installer and build tools incorrectly. This is fixed with #988 (commit 065b78b). |
when I try to install xenko, just after downloading all the needed files xenko ask for an administrator request access for visual studio it does that a couple of times intel it starts it after starting it immediately goes to the modify tap and after that it completely shuts down VS the and says something about error 1 in a VS massage there is a video to see https://youtu.be/hUsp1EyGASE
P.S. I have visual studio 2017, 2019 and it does opens the modify window and I don't have .NET thing in it bec it's huge, if I can manually install what xenko need's please tell me
The text was updated successfully, but these errors were encountered: