-
-
Notifications
You must be signed in to change notification settings - Fork 934
-
-
Notifications
You must be signed in to change notification settings - Fork 934
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
Game Studio crashes when loading HTTP abstractions #2445
Comments
On which project is this reference defined, is it on the executable project or on the library one? Does it fix it, if the mentioned library is explicitly referenced in the .csproj? |
I tried referencing it in all projects, it made no difference. It also crashes if the code snippet is inserted in any referenced project. The only case it does not hinder Stride Studio from loading is, when it is used in the platform specific projects like MyGame.Windows, but I need the code to be in an extra referenced project. |
This sounds similar to the CompilerApp + WPF reference issue a while back. Stumbling on this stackoverflow issue, it seems like a tough issue to solve. |
Ok, I think I discovered the very clunky workaround, as per https://learn.microsoft.com/en-us/dotnet/core/runtime-config/ Make sure to backup the json files before modifying them! For the Editor:
For the CompilerApp:
Note this one had Unfortunately you'll have to do this for every new version that comes out if you decide to update your Stride version. |
The fix with the Some interesting things about this problem. I can also use the (deprecated) NuGet version of the framework with It also makes a difference if it is And why does it happen, if that code is in some other referenced project (in the same solution)? |
I did before I posted, and tried again before posting this reply. Not sure why it's working for me but not yours. EDIT: maybe double check you also have a version 8 of Microsoft.AspNetCore.App installed in your |
Thanks, I got it to work, made a stupid mistake. Great workaround. It also seems to be only needed for the |
Release Type: Official Release installed with the Stride launcher
Version: 4.2.0.2188, but also older
Platform(s): Windows
Describe the bug
When the Game Studio opening a solution containing an async method returning
Task<IResult>
, it will crash.To Reproduce
Include this code somewhere in a Stride project and open the solution with the Game Studio:
The project might also require a framework reference
<FrameworkReference Include="Microsoft.AspNetCore.App"/>
.Screenshots
Log and callstacks
Due to another bug, I can not copy the content from the log window.
The text was updated successfully, but these errors were encountered: