-
Notifications
You must be signed in to change notification settings - Fork 156
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
Restructuring to Eliminate "ChapterMain()" #16
Comments
Everything should be completed as you requested. I ran the tests and get the same results pre vs post restructuring, so I'm hoping I put it back together correctly. I'm going to sleep on it before submitting the pull request, but its current state is on my fork https://github.com/nlundby/EssentialCSharp/tree/v7.0 |
Wow Neal... that was fast. Thanks! Can you please identify what tests are failing for you. On Windows, all the tests are passing for me. Thanks! |
Pull request submitted. These two tests were failing for me on both Mac and Windows: Listing15.14.Tests.cs(31,57): error CS1501: No overload for method 'ExpectLike' takes 3 arguments [./EssentialCSharp/src/Chapter15.Tests/Chapter15.Tests.csproj] A fix was submitted in my pull request. |
Is it possible that you haven't updated your sub modules so you have and old version of test too,s by chance? (Or, alternatively, I didn't update the sub module pointer to point to the most recent TestTools perhaps?) |
Bingo! All is well. Yes, I believe the submodule pointer does not point to the most recent TestTools. I added some steps to the Readme to ensure the latest are downloaded. Unfortunately this did not resolve the mac(and now verified linux) test fail on listing08.16. My 15.14 and 14.12 changes have been retracted in the pull request. |
From the comments and looking at the current state of the code it sounds like a PR was made against this and these changes are live. |
Somewhere in the conversion, each listing was changed so that:
ChapterMain
rather thanMain
SharedCode
rather than just linking to the necessary files in the Shared folder when requiredAt the time this was done (during
project.json
), I suspect it wasnt possible to have two static
Mainmethods and be able to disambiguate which ones to use as the entry point via the
StartupObject` property element. Going forward, this is not a satisfactory solution, however.I would like to request a restructuring as follows:
SharedCode
projectShared
directoryShared
directory as needed (i.e. PI Calculator in the threading listings.<PropertyGroup> <StartupObject>AddisonWesley.Michaelis.EssentialCSharp.Shared.Program</StartupObject> </PropertyGroup>
It is acceptable if this is done one project at a time rather than with a PowerShell/batch file just as long as it is clearly recorded which projects are done and which need work.
Thoughts? Questions? Volunteers? :)
The text was updated successfully, but these errors were encountered: