-
-
Notifications
You must be signed in to change notification settings - Fork 962
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
Fix extension #2064
Fix extension #2064
Conversation
I may need some help on this, I got the whole project building with .NET 8 but for some reason the same issue persists where it cannot restore Stride.VisualStudio.Commands 4.2.0.X. I cant seem to properly debug this to step through the code so I dont know how to se why the restore is failing.
|
Ok so I found one of my issues. It was using the cached VSIX extension rather than actually rebuilding it. I added Now my issue is the app cant startup due to not finding some .NET packages
|
Do VSIX support net8 TFM? Quick look online said only net472 and netstandard2.0 |
ah, well that could explain a lot.. I was wondering why Interfaces was targeting both sdks. Ok I may have to scrap this and try again then, I dont understand how it was working at all before if it never supported .NET 6. |
I think i read somewhere that this code is shared (so .net 6 is for stride engine; .net framework is for VSIX). |
gotcha, that makes sense. I will do some playing around then with either framework or standard and see what happens. |
You were both very right! the issue was with the nuget resolver no the actual library framework. One more error seems to be within the thread of the proxy runner as it throws a broken pipe error when running |
so I think its back to working the way it was before the 4.2 update. The final error is one I cant really get around when debugging because there are multiple applications accessing the Interfaces project so it happens all of the time. If someone has another idea of how to get around this then please let me know but otherwise I think this PR should be good to review. |
sources/tools/Stride.VisualStudio.Package/Commands/StrideCommandsProxy.cs
Outdated
Show resolved
Hide resolved
Shouldn't it target |
That's not necessary. VSPackage is compiled as net471 (required for VS). That way we can implement/improve/fix/version most VSPackage commands inside Stride release itself without having to release VSPackage every time. |
As per this file Note that I think the proper fix is to revert the commit that changed all nugets packages that put the exes in the lib folder instead of the tools folder, because there's a .net issue where if you |
It was finding the executable last I tried Ill give it another test tomorrow to double check. The issue I had with it not finding the exe was due to the missing -windows postfix in the search values. 8bf024a The last thing I am running into was that it was accessing an already in use DLL but it made sense since it was being used by VS2022 in debug mode. I couldnt get around it to test further but the original error is fixed. |
…ore while the engine is starting up
There is still one remaining issue in that the extension locks the nuget file This can be reproduced by having the extension installed and enabled in VS, doing a full rebuild of the engine then running the game studio, here's the exception:
The merge below kills that executable if nuget fails to restore, but another solution may be to load the extension assemblies without locking the file, maybe through |
Bump version and kill extension when NuGet fails
LGTM, thanks! |
@xen2, have you managed to test it? |
I just tried and i got this when opening a stride game project in visual studio:
|
FindStrideSdkDir this was the original issue in 4.2.0.2043. If I understand how it works to get the correct Stride.VisualStudio.Commands version we need to have the new version released. if you run the source code you should not have this but it has a different error due to the debugging configuration. |
PR Details
Currently Shader key files are not being generatedsince the 4.2 release. The original error was due to an incompability from net 8 to net472.
Description
This fully moves the extension over to .NET 8 and attempts to fix the errors causing many headaches while writing shaders.
Related Issue
None
Motivation and Context
If this gets fixed shaders will be easier to work with.
Types of changes
Checklist