-
Notifications
You must be signed in to change notification settings - Fork 286
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
Changed some netframework projects to use .net sdk style csprojs #744
Conversation
Did a quick test and seems that the winforms designer is now working in visual studio. |
Looks good, judging from just looking at the changes. Don't have the time for a full checkout and test right now, but maybe @SirePi can jump in, so we can ensure it's been tested on at least two machines? Stuff to look out for (maybe verify on your machine as well @Barsonax, in case any points are missing):
|
@SirePi since this PR changes some csprojs visual studio can get confused. Clean everything before testing (running
Yes
Yes, output is the same.
No, have to check this but iam probably simply missing some entries for this in the csproj/launcherconfig.
Since we are still using nuspecs this has not really changed alot except for some paths. I did some tests with our new template but I will check it again after fixing the previous point. One of the next steps we could do is generating the nuget packages from the csprojs directly since all csprojs are now net sdk projects. It will be much cleaner as we no longer need to have duplicate references and versions etc. We do have to modify the versionupdater and nightlybuilder for this though. I think this is something we should look into after v4 is released. #790 |
So how I do it now is to copy the sample stuff over myself. This is the same as it was before right? I don't see any entries in the csproj that copies over all the content before we switched to net sdk style projects. @ilexp I don't think it will be possible to launch the sample project directly. Else we will run into the same problem that caused us to add a gamelauncher and gameditor project to the duality template. Maybe it will work again when we switch to .net core. This is not really a big deal in this case though as you can just set the dualityeditor project as the start project. |
Before, you could run it directly. This was achieved by (I think, it changed one or two times) setting the working directory for debug sessions to the sample folder where its
I'd argue that it kinda is though! Maybe not a big deal, but something that would be not great to lose. Using the editor would first require to create the entire "launch this, but use that working dir" setup, right? And to do that, you'd have to know that's a possibility and get the settings right, look up relative folder paths, be careful not to commit that, and so on. From a developer usability side, it was super easy to just run and debug any sample from the IDE, and I regularly did this to verify more critical core changes, using the samples as extended test cases. If it becomes an inconvenient thing to do, it might diminish the cases where you'd typically rely on this as a diagnostic tool. It also makes sample development more difficult if there is no longer an established / documented way to test them. But yeah, like you said:
Seems we can't do anything about it though at this point - closest to getting there would be to manually change the working directory of the editor project, and explicitly selecting the editor application to run. Maybe we can at least add a "sample launcher" project that is pre-configured to run the editor application from |
Agreed I will add something like a EDIT: another possible option would be to make the paths that duality uses to find plugins configurable instead of hardcoded. This would allow us to keep the csproj's clean, make it possible to load multiple samples and give more freedom to endusers in how to structure their project. Not for this PR though. |
Added a sample runner project that by default has its |
Tried it, it appears to be working properly: compiles, the runner runs.. everything looks good. |
It's not just about plugins, but also the
Probably nothing to do with this PR like you said, but that still is weird. If you manage to reproduce this, maybe create a new issue to investigate. Could have something to do with input detection.
Neat! Thanks 👍 Approving this PR. Might make sense for @SirePi to do a second review before merge, since this one is a bit bigger and six eyes see more than four. |
Migrated our remaining netframework projects to sdk style projects.
Tests are green and the generated nuget packages seem to be working in the template. I think its also good to test a bit more with some samples.
Hope this is the last PR with thousands of changes for a while :)
Changes:
Completes #737