Closed JohnyBro closed 7 months ago
This is caused by a bug in simplified output paths;
Work around this issue by updating Directory.Build.props and disabling simplified output paths:
<!-- See https://aka.ms/dotnet/msbuild/customize for more details on customizing your build -->
<Project>
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- <ArtifactsPath>$(MSBuildThisFileDirectory)artifacts</ArtifactsPath> -->
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
Thank you for your answer, all good now.
Describe the bug When I try to create a new migration I have the following error.
To Reproduce Steps to reproduce the behavior:
TodoItem
classdotnet ef migrations add "SampleMigration" --project src\Infrastructure --startup-project src\Web --output-dir Data\Migrations
Expected behavior Add a migration to the Data/Migrations folder