-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Trouble adding a new entity to an existing project #97
Comments
Hey, thanks! The |
FYI, updating error messages to be better here |
The command worked this time when I ran it from the boundary folder and seems to have generated the expected files. The first time I ran it, it was from the same folder as the .sln file (see the "ls" console output above for the directories and files in the current folder). The boundary folder doesn't have the .sln file, so the new error message is still a bit misleading. Maybe some clarity in the tutorial will help. However, I ran into another issue. It rendered the new feature classes with a typo in the using namespaces. For example, ShoppingListItemsController.cs was generated with a using statement declared as "using recipemanagement.Wrappers;" where it should be "using RecipeManagement.Wrappers;" Seems like a typo across most or all the files that were generated which created a bunch of errors. But I figured out why that happened. When I entered the folder using "cd recipemanagement" Powershell brought me to a correct, but lowercased version of the correct directory "C:\dev\src\wrapt\carbonkitchen\recipemanagement". Weird! That's when the generator fails. It leads me to believe you're sourcing the namespace from the directory name at the time the command is run. So I blew away the entire solution and ran it again. I navigated to the boundary folder, but this time with the correct casing "cd RecipeManagement", and it generated everything properly. I did the whole thing one more time with a lower cased directory name and I was able to reproduce the problem. I reckon others might run into this. I can send you some screenshots later if you want. Great tool though man, very impressive. |
here is the console output to show you what I mean by the strange lowercase directory issue: PS C:\dev\src\wrapt\CarbonKitchen> cd .\RecipeManagement Directory: C:\dev\src\wrapt\CarbonKitchen\RecipeManagement PS C:\dev\src\wrapt\CarbonKitchen\RecipeManagement> cd .. Directory: C:\dev\src\wrapt\CarbonKitchen\recipemanagement |
Ooo, that is interesting. Never seen that one before, but your hunch sounds right. Appreciate the insight and the kind words!! |
np -- good luck! |
I am following your tutorial. All went well until I hit the step to add the ShoppingListEntity. It's saying it can't find the .sln file even though it's there. Nice project! Good conversation today! -wpereira
Steps to reproduce
Here is the output from the console:
$ craftsman add entity ShoppingListEntity.yaml
Error: A solution file was not found in your current durectory. Please make sure you are in the solution directory for
your project.
$ ls
CarbonKitchen.sln README.md RecipeManagement SharedKernel ShoppingListEntity.yaml docker-compose.yaml
The text was updated successfully, but these errors were encountered: