Comments (8)
I'm facing the same issue.
Target framework: .NET 8.0
Operating system: Windows
IDE: Visual Studio 17.10.1
from scaffolding.
@Ksdmg: Do you found a solution? I have the same issuce in .NET 8.0
from scaffolding.
I ran into this issue today.
What is the precise cause?
Anyone got a solution/work around?
@Ksdmg @elbec
Using database provider 'Npgsql.EntityFrameworkCore.PostgreSQL'!
Value cannot be null. (Parameter 'path')
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
from scaffolding.
Hello, yes i found yesterday a workaround for me. It did not work for me directly in Visual Stuido. But when i run in project folder with cmd dotnet aspnet-codegenerator identity
. Then all files were created without an error!
from scaffolding.
I have a IDesignTimeDbContextFactory, that creates a DbContext. I have checked this by launching a debugger during scaffolding. When the IDesignTimeDbContextFactory returns the DbContext, I still get:
Using database provider 'Npgsql.EntityFrameworkCore.PostgreSQL'!
Value cannot be null. (Parameter 'path')
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
Is there any more information on this error? What is the Parameter 'path'?
from scaffolding.
In the very latest VS, with all updates, in my project I have tried:
- EF Migrations, and they work perfectly.
- RtClick > Add >New Scaffold Item > Razor Pages > Razor Pages using Entity Framwork (CRUD)
This works perfectly. - RtClick > Add >New Scaffold Item > Razor Component > Razor Components using Entity Framwork (CRUD)
I get the output:
Building project ...
Finding the generator 'blazor'...
Running the generator 'blazor'...
Attempting to figure out the EntityFramework metadata for the model and DbContext: 'RadProjectItem'Using database provider 'Npgsql.EntityFrameworkCore.PostgreSQL'!
Value cannot be null. (Parameter 'path')
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
There is no information anywhere to be found.
from scaffolding.
The App.razor file must exist in order for scaffolding to work. I am not using the App.razor file, therefore I removed it. Adding it back into the project makes the scaffolding operation complete without error.
from scaffolding.
For me it worked to add back the NavMenu. I looked up what got changed in a new project. Those were these files:
from scaffolding.
Related Issues (20)
- Question: How can one roll their own scaffolders based on this tooling?
- Latest 6.* and 7.* versions of Microsoft.VisualStudio.Web.CodeGeneration.Design result in vulnerable version of NuGet.Packaging being installed CVE-2024-0057. HOT 1
- Update the Blazor Identity scaffolder to exclude scaffolded pages from interactive routing when targeting .NET 9
- Update Blazor Identity scaffolder to use built-in AuthenticationStateProviders once available
- API Scaffolding Fails for ASP.Net Core Api Controller
- Make all projects nullable friendly
- Converge `Microsoft.DotNet.Scaffolding.Shared` and `Microsoft.DotNet.Scaffolding.Helpers`
- Identity (not `msidentity`) scaffolding doens't work with `InteractiveServer` render mode on Blazor server
- Blazor CRUD scaffolding updates HOT 17
- Lowercase the model path segment for the Edit component of the CRUD set HOT 1
- Scaffolding in Blazor is unaware of (implicit inheritance?)
- How do I override the default Blazor scaffolding template in Visual Studio 2022
- The error message is too vague
- Blazor CRUD scaffolder should dispose the created DbContext instances HOT 13
- Blazor Identity scaffolder should generate a DbContext with a unique name
- Add a README to all the shipping scaffolding packages HOT 1
- Add Microsoft Entra Auth
- Blazor CRUD scaffolding should include correct ARIA roles and attributes HOT 2
- Blazor and Razor Pages CRUD scaffolding should visually indicate which fields are required HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scaffolding.