fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
https://fullstackhero.net/dotnet-webapi-boilerplate/
MIT License
5.04k stars 1.5k forks source link

Migrations after project structure change, and Masstransit #977

Closed kallievz closed 1 month ago

kallievz commented 1 month ago

Hi.

I am trying adding my own new module, running migration from server, i am getting below output :

PS C:\Source\src\api\server> dotnet ef migrations add Initial --project ..././Migrators/Migrators.MSSQL/ --context IntegrationMunsoftDbContext -o Migrations/IntegrationMunsoft MSBUILD : error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file. Unable to retrieve project metadata. Ensure it's an SDK-style project. If you're using a custom BaseIntermediateOutputPath or MSBuildProjectExtensionsPath values, Use the --msbuildprojectextensionspath option.

Also, comms between modules, how to? you mentioned using Masstransit and RabbitMQ, is this still in pipeline for now?

Kind Regards

nbhariyani commented 1 month ago

With new project structure and SRC folder changes, If you check your project physical folder... it will look like "src\api\migrations\MSSQL"

So, here you need to pass param as below.

--project .././migrations/MSSQL/

kallievz commented 1 month ago

mmm, PEPKAC error.... thanks for the swift pointing out of my stupid mistake... feel like a dodo now.... Thanks