-
Notifications
You must be signed in to change notification settings - Fork 11
Update "Create a Package" article for Bonsai 2.9 #151
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
base: main
Are you sure you want to change the base?
Conversation
Also edits to grammar and clarity
Edited text for grammar and clarity Added notes on potential stumbling blocks
@banchan86 thanks for taking a stab at this. I also struggled conceptually with the different options. I feel these days the CLI is making a comeback, and perhaps it would not be so strange to simply replace all the visual steps entirely with command-line instructions. One advantage is it makes things much easier to change as only text needs to be updated across versions. Also people can then feel free to choose between any editor they like. I feel there are two targets here:
For both 1. and 2. I feel we might not need the VS extensions In the case of 1. they will likely be using VS Code already and we could guide them to creating a project there. Also in the case of 2. it might be enough to point them at the dependencies and a template project. Alternatively, we could also recommend the new Bonsai Package template, or have template snippets directly in the code as well for project items. Anyway will review in more detail and investigate a few options. |
I agree with all the points you made, and I think replacing the Visual Studio steps and screenshots with just the command-line instructions might be better! I can go ahead and revise the article or sit on it for a while if you'd like to consider various options first. |
Thanks a lot for the update. It clarified things a lot! What remained a bit confusing for me:
I'm clearly in the 1st user category and I don't think the visual studio part was helping much. It was great when everything worked but as soon as there is an issue I was lost as I had no clue which files contains which info. At least now I can look at the dry-run of the template to see what has been created and debug the issue. |
Hi @ablot, apologies for the delay in replying.
Thanks for all the feedback by the way, I will see if I can address the points you raised in the next revision! |
@banchan86 the I am very curious to learn under which conditions this one manifests (is it specific build settings?), as it might be a bug somewhere. An empty string is probably valid too, so we could change the template to just have the empty string if easier. |
@glopesdev I didn't get an error, just a warning CS8625. If I just do Restore complete (0.5s)
test net472 succeeded with 1 warning(s) (0.3s) → artifacts\bin\test\debug_net472\test.dll
[pathtodirectory]\test\src\test\Properties\AssemblyInfo.cs(6,53): warning CS8625: Cannot convert null literal to non-nullable reference type.
Build succeeded with 1 warning(s) in 1.1s @banchan86 thanks for the reply. Regarding 2, the need for bonsai system, I don't manage to reproduce, so you must be right and I had a dependency in one of my transform that I had not noticed. My bet is that I got confused between dependencies of the |
Part of #107.
This revision updates the "Create a Package" with the updated
Bonsai.Templates
introduced in bonsai-rx/bonsai#2306.I struggled a bit with this article. Initially, I considered just updating the point-and-click instructions for Visual Studio and adding a separate section for the command-line interface commands. However, I realized that some of the steps had to be performed using the command line or were cumbersome and required additional steps when done through Visual Studio. This included:
In the end, I opted to sprinkle them throughout the existing article, but I am not sure if that is the right approach or if it clutters the article. One thing I also considered was whether it would be helpful to include a table of command-line commands at the end of the article, but I was unsure if it would be redundant.
Online Preview