Closed archanox closed 1 year ago
@archanox This looks like a duplicate of #23268, which will be released in 5.0.1 and is already in the 6.0 daily builds. However, it looks like you tested against an older daily build. Can you make sure you are using the "dotnet6" feed (https://github.com/dotnet/efcore/blob/main/docs/DailyBuilds.md#package-source-for-ef-core-60) and try again with the most recent build?
I've installed version 6.0.0-alpha.1.20601.1
and have run the same scaffolding PS command as above, and I am now getting;
Build started... Build succeeded. Missing required argument '\
'.
Even when omitting the final parameter, and just calling Scaffold-DbContext 'Data Source=C:\Temp\veekun-pokedex.sqlite'
then providing Microsoft.EntityFrameworkCore.Sqlite
when prompted for a Provider yields the same result.
@archanox Can you post the csproj file?
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.0-alpha.1.20580.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.0-alpha.1.20580.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.0-alpha.1.20580.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>
As you can see there, the version is one below the one I mentioned previously in the comment this morning. It still yields the same results. I haven't tried using the dotnet command outside of visual studio, and I haven't traversed all the versions until it is functional again. I'll report back here if I have any discoveries.
PS C:\temp\VeekunDatabase> dotnet tool update --global dotnet-ef --add-source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json --version 6.0.0-alpha.1.20577.1
Tool 'dotnet-ef' was successfully updated from version '5.0.0' to version '6.0.0-alpha.1.20577.1'.
PS C:\temp\VeekunDatabase> dotnet ef dbcontext scaffold "Data Source=C:\temp\veekun-pokedex.sqlite" Microsoft.EntityFrameworkCore.Sqlite
Build started...
Build succeeded.
Missing required argument '<PROVIDER>'.
PS C:\temp\VeekunDatabase>
I was able to try this with the dotnet tool, but unfortunately, same issue...
@archanox Unfortunately, I still can't reproduce this. I used the exact project file you posted and it didn't run into any issues.
@bricelam Any ideas here?
Very strange...
@archanox Can you post verbose output from running the command in the PMC?
When scaffolding a 3rd party sqlite database (obtainable here https://veekun.com/static/pokedex/downloads/veekun-pokedex.sqlite.gz) I'm encountering the below issues. I thought it had something do with the quoted identifiers that use "Order" as a column name, but I was able to convert these to "Ordinal" in my local, but yielded the same issues. I don't know if this issue is isolated to Sqlite specifically, or EFCore as a whole.
Microsoft.Data.Sqlite version: 6.0.0-alpha.1.20417.8 (and 5.0.0) Microsoft.EntityFrameworkCore.Design version: 6.0.0-alpha.1.20417.8 Microsoft.EntityFrameworkCore.Sqlite version: 6.0.0-alpha.1.20417.8 Microsoft.EntityFrameworkCore.Tools version: 6.0.0-alpha.1.20417.8 Target framework:. .NET 5.0 Operating system: Windows 10 2004