Web-Development-with-Blazor-Second-Edition icon indicating copy to clipboard operation
Web-Development-with-Blazor-Second-Edition copied to clipboard

Path to the Data folder

Open CopperBeardy opened this issue 2 years ago • 1 comments

In the book you have the path in Program.cs set to

options.DataPath = @"..\..\..\Data\";

which works if you are using the repository solutions to follow along.

but if your not then the path will be incorrect, I was scratching my head for a little while till I realised this, so if you do like me created a fresh solution to follow along and the create a folder in the solution directory for the example data you will need to modify the path to

options.DataPath = @"..\{YourFolderName}\";

CopperBeardy avatar May 21 '23 10:05 CopperBeardy

Thanks for the report, I'll keep this one open so readers can find it :)

EngstromJimmy avatar May 21 '23 10:05 EngstromJimmy