craftsman: Bootstrapping new project with yaml file fails with unhelpful error (missing directory)
Wanted to try this out and followed the tutorial. Wrote this yaml file:
SolutionName: SoftThornApi
DbContext:
ContextName: SoftThornDbContext
DatabaseName: SoftThorn
Provider: SqlServer
Entities:
- Name: Product
Properties:
- Name: ProductId
IsPrimaryKey: true
Type: int
CanFilter: true
CanSort: true
- Name: Name
Type: string
CanFilter: true
CanSort: true
- Name: ProductImageId
IsPrimaryKey: false
Type: int?
CanFilter: true
CanSort: false
- Name: ProductImage
Properties:
- Name: ProductImageId
IsPrimaryKey: true
Type: int
CanFilter: true
CanSort: true
- Name: Image
Type: byte[]
CanFilter: false
CanSort: false
Environments:
- EnvironmentName: Production
ConnectionString: "Data Source=myprodserver;Initial Catalog=CarbonKitchen;Integrated Security=True;Encrypt=True;TrustServerCertificate=True;"
ProfileName: Prod
- EnvironmentName: Qa
ConnectionString: "Data Source=myqaserver;Initial Catalog=CarbonKitchen;Integrated Security=True;Encrypt=True;TrustServerCertificate=True;"
ProfileName: Qa
SwaggerConfig:
Title: SoftThorn
Description: Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at carbonkitchen.com/dev/docs
ApiContact:
Name: SoftThorn
Email: support@SoftThorn.com
Url: localhost
Steps to reproduce
- install the tool
- install template
- update tool
- update template
- write yaml file
- run
craftsman new:api D:\Drop\Desktop\SoftThorn.yaml
- somehow missing template?
cli output:
An unhandled exception occurred when running the API command.
The error details are:
The `E:\Code\SoftThorn\SoftThornApi\Domain\Entities` directory could not be found.
When creating that folder manually, it complains that the folder already exists.
Further technical details
Craftsman version (dotnet tool list -g
): craftsman 0.4.2 craftsman
Foundation version (dotnet new -u
): wasnt isntalled for some reason
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (8 by maintainers)
Thx! Its rather late here tho, so i gonna check that out tomorow evening.
Aaaaand my powershell instance just never rendered the latest output… nvm me. it seems to be working