dotnet-starter-kit icon indicating copy to clipboard operation
dotnet-starter-kit copied to clipboard

Migrations after project structure change, and Masstransit

Open kallievz opened this issue 2 years ago • 2 comments

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

kallievz avatar Jul 26 '24 22:07 kallievz

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/

nbhariyani avatar Jul 27 '24 09:07 nbhariyani

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

kallievz avatar Jul 27 '24 10:07 kallievz