Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How can I resolve Error Running the Selected Code Generator when adding scaffolded item

$
0
0

I have looked at all the questions about this issue and cannot seem to resolve it.

Visual Studio 2022. .Net 6.0.15. Blazor.

enter image description here

I am trying to scaffold identity to one of my projects (Server) in the solution. I will also scaffold the WASM project but can't get the Server done. I haven't tried the WASM yet. I downgraded from 6.0.16 to 6.0.15 to match the Microsoft.VisualStudio.Web.CodeGeneration (max version available is 6.0.15) packages but that didn't help. I tried upgrading to 6.0.20 with no joy. I posted all the packages in case someone can see a conflict. I'm not sure it is a package problem but it will not let me scaffold identity which I think is a fairly basic scaffolding operation.

This error pops up it appears as soon as the Microsoft.EntityFramework.Tools begins to execute.

Project Packages:

API:

<PropertyGroup><TargetFramework>net6.0</TargetFramework><Nullable>enable</Nullable><ImplicitUsings>enable</ImplicitUsings></PropertyGroup><ItemGroup><PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" /><PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" /></ItemGroup>

Business:

<PropertyGroup><TargetFramework>net6.0</TargetFramework><ImplicitUsings>enable</ImplicitUsings><Nullable>enable</Nullable></PropertyGroup><ItemGroup><PackageReference Include="AutoMapper" Version="12.0.1" /><PackageReference Include="Blazor.Bootstrap" Version="1.7.3" /><PackageReference Include="System.Diagnostics.EventLog" Version="7.0.0" /></ItemGroup>

DataAccess:

<PropertyGroup><TargetFramework>net6.0</TargetFramework><ImplicitUsings>enable</ImplicitUsings><Nullable>enable</Nullable></PropertyGroup><ItemGroup><PackageReference Include="AutoMapper" Version="12.0.1" /><PackageReference Include="Blazor.Bootstrap" Version="1.7.3" /><PackageReference Include="Microsoft.AspNetCore.Authorization" Version="6.0.15" /><PackageReference Include="Microsoft.AspNetCore.Components" Version="6.0.15" /><PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.15" /><PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.15"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference><PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.15" /><PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.15"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference><PackageReference Include="System.Diagnostics.EventLog" Version="7.0.0" /></ItemGroup>

Models:

<PropertyGroup><TargetFramework>net6.0</TargetFramework><ImplicitUsings>enable</ImplicitUsings><Nullable>enable</Nullable></PropertyGroup><ItemGroup><PackageReference Include="Blazor.Bootstrap" Version="1.7.3" /><PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.15"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference><PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.15" /><PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.15"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference><PackageReference Include="System.Diagnostics.EventLog" Version="7.0.0" /></ItemGroup>

Server:

<PropertyGroup><TargetFramework>net6.0</TargetFramework><Nullable>enable</Nullable><ImplicitUsings>enable</ImplicitUsings></PropertyGroup><ItemGroup><PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" /><PackageReference Include="BitMiracle.Docotic.Pdf" Version="8.8.14015" /><PackageReference Include="Blazor.Bootstrap" Version="1.7.3" /><PackageReference Include="Microsoft.AspNetCore.Authentication.Negotiate" Version="6.0.15" /><PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.15" /><PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.15"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference><PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.20" /><PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.15"><PrivateAssets>all</PrivateAssets><IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets></PackageReference><PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration" Version="6.0.15" /><PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="6.0.15" /><PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Utils" Version="6.0.15" /><PackageReference Include="PSC.Blazor.Components.BrowserDetect" Version="1.0.11" /><PackageReference Include="System.Diagnostics.EventLog" Version="7.0.0" /></ItemGroup>

WASM:

<PropertyGroup><TargetFramework>net6.0</TargetFramework><Nullable>enable</Nullable><ImplicitUsings>enable</ImplicitUsings></PropertyGroup><ItemGroup><PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.15" /><PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.15" PrivateAssets="all" /><PackageReference Include="Newtonsoft.Json" Version="13.0.3" /></ItemGroup>

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>