The command "dotnet "C:\Users\0x90\.nuget\packages\microsoft.aspnetcore.blazor.build\0.4.0\targets\../tools/illink/illink.dll" -c link -u link -t --verbose -d "C:\Users\0x90\.nuget\packages\microsoft.aspnetcore.blazor.build\0.4.0\targets\../tools/mono/bcl/" -d "C:\Users\0x90\.nuget\packages\microsoft.aspnetcore.blazor.build\0.4.0\targets\../tools/mono/bcl/Facades/" -o "D:\DevStuff\VisualStudio2k17\WebApplication1\WebApplication1.Client\obj\Debug\netstandard2.0\blazor/linker/" -x "C:\Users\0x90\.nuget\packages\microsoft.aspnetcore.blazor.build\0.4.0\targets\BuiltInBclLinkerDescriptor.xml" -x "D:\DevStuff\VisualStudio2k17\WebApplication1\WebApplication1.Client\obj\Debug\netstandard2.0\blazor\linker.descriptor.xml" -a "C:\Users\0x90\.nuget\packages\microsoft.aspnetcore.blazor\0.4.0\lib\netstandard2.0\Microsoft.AspNetCore.Blazor.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.aspnetcore.blazor.browser\0.4.0\lib\netstandard2.0\Microsoft.AspNetCore.Blazor.Browser.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.csharp\4.5.0\lib\netstandard2.0\Microsoft.CSharp.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.entityframeworkcore\2.1.1\lib\netstandard2.0\Microsoft.EntityFrameworkCore.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.entityframeworkcore.abstractions\2.1.1\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Abstractions.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.entityframeworkcore.design\2.1.1\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Design.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.entityframeworkcore.relational\2.1.1\lib\netstandard2.0\Microsoft.EntityFrameworkCore.Relational.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.entityframeworkcore.relational.design\1.1.5\lib\netstandard1.3\Microsoft.EntityFrameworkCore.Relational.Design.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.entityframeworkcore.sqlserver\2.1.1\lib\netstandard2.0\Microsoft.EntityFrameworkCore.SqlServer.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.entityframeworkcore.sqlserver.design\1.1.5\lib\netstandard1.3\Microsoft.EntityFrameworkCore.SqlServer.Design.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.caching.abstractions\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Caching.Abstractions.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.caching.memory\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Caching.Memory.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.configuration\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.configuration.abstractions\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.Abstractions.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.configuration.binder\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Configuration.Binder.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.dependencyinjection\2.1.1\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.dependencyinjection.abstractions\2.1.1\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.logging\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.logging.abstractions\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Logging.Abstractions.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.options\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Options.dll" -a "C:\Users\0x90\.nuget\packages\microsoft.extensions.primitives\2.1.1\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.win32.registry\4.5.0\lib\netstandard2.0\Microsoft.Win32.Registry.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\remotion.linq\2.2.0\lib\netstandard1.0\Remotion.Linq.dll" -a "C:\Users\0x90\.nuget\packages\system.buffers\4.4.0\lib\netstandard2.0\System.Buffers.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.collections.immutable\1.5.0\lib\netstandard2.0\System.Collections.Immutable.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.componentmodel.annotations\4.5.0\lib\netstandard2.0\System.ComponentModel.Annotations.dll" -a "C:\Users\0x90\.nuget\packages\system.data.sqlclient\4.5.1\lib\netstandard2.0\System.Data.SqlClient.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.diagnostics.diagnosticsource\4.5.0\lib\netstandard1.3\System.Diagnostics.DiagnosticSource.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.interactive.async\3.1.1\lib\netstandard1.3\System.Interactive.Async.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.linq\4.1.0\lib\netstandard1.6\System.Linq.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.linq.expressions\4.1.0\lib\netstandard1.6\System.Linq.Expressions.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.linq.queryable\4.0.1\lib\netstandard1.3\System.Linq.Queryable.dll" -a "C:\Users\0x90\.nuget\packages\system.memory\4.5.1\lib\netstandard2.0\System.Memory.dll" -a "C:\Users\0x90\.nuget\packages\system.numerics.vectors\4.4.0\lib\netstandard2.0\System.Numerics.Vectors.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.objectmodel\4.0.12\lib\netstandard1.3\System.ObjectModel.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.reflection.emit\4.0.1\lib\netstandard1.3\System.Reflection.Emit.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.reflection.emit.ilgeneration\4.0.1\lib\netstandard1.3\System.Reflection.Emit.ILGeneration.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.reflection.emit.lightweight\4.0.1\lib\netstandard1.3\System.Reflection.Emit.Lightweight.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.reflection.typeextensions\4.1.0\lib\netstandard1.5\System.Reflection.TypeExtensions.dll" -a "C:\Users\0x90\.nuget\packages\system.runtime.compilerservices.unsafe\4.5.1\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.security.accesscontrol\4.5.0\lib\netstandard2.0\System.Security.AccessControl.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.security.principal.windows\4.5.0\lib\netstandard2.0\System.Security.Principal.Windows.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.text.encoding.codepages\4.5.0\lib\netstandard2.0\System.Text.Encoding.CodePages.dll" -a "C:\Program Files\dotnet\sdk\NuGetFallbackFolder\system.threading\4.0.11\lib\netstandard1.3\System.Threading.dll" -a "D:\DevStuff\VisualStudio2k17\WebApplication1\WebApplication1.Shared\bin\Debug\netstandard2.0\WebApplication1.Shared.dll" -a "D:\DevStuff\VisualStudio2k17\WebApplication1\WebApplication1.Client\obj\Debug\netstandard2.0\WebApplication1.Client.dll"" exited with code 1.
I'm clueless, I'm following a tutorial but I'm stuck here where I need to create the scaffolding to create the db models and stuff. I'm executing this command inside the Package Manager CLI
Where XXXX values are replaced with actual values from the user, database and respective data...
Additional Notes: I'm using the latest Blazor (0.4.0) with .NET Core 2.1 SDK (v2.1.300) and Visual Studio 2017 (15.7.3), along with the latest technologies and frameworks and toolsets, e.g. Install-Package Microsoft.EntityFrameworkCore.SqlServer & Install-Package Microsoft.EntityFrameworkCore.SqlServer.Design & Install-Package Microsoft.EntityFrameworkCore.Tools, I'm executing all these commands into the <projectName>.Shared project... I have checked and tried executing all of them even the scaffolding one (originally giving me the problems) into the <projectName>.Server and it executes just right, but at the time to create a controller, it doesn't let me select a DB Context. Another thing is that the tutorial was original made for the .NET Core 2.1 SDK (v2.1.300-preview2)
the problems) into the <projectName>.Server and it executes just right, but at the time to create a controller, it doesn't let me select a DB Context. Another thing is that the tutorial was original made for the .NET Core 2.1 SDK (v2.1.300-preview2)
Creating a Controller in <projectName>.Server gives me this error:
Sorry, I can't comment on what's needed to make EF scaffolding work. It's possible that the tutorial you're following is out-of-date. However,
If you're trying to do EF scaffolding into an ASP.NET Core server project, this should work and you should be able to follow up with the EF community on what's needed to make it work. This is totally unrelated to Blazor.
If you're trying to do EF scaffolding into a Blazor client app project, that should not be expected to work, because that runs on the client where you don't have direct access to a database. Your client project should make HTTP calls to a server backend for data access.
I'm clueless, I'm following a tutorial but I'm stuck here where I need to create the scaffolding to create the db models and stuff. I'm executing this command inside the Package Manager CLI
Scaffold-DbContext "Server= DESKTOP-QVLLPTI\SQLEXPRESS;user id= xxxx;password= xxxx;Database=xxxxxx;Trusted_Connection=True;MultipleActiveResultSets=true" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Models -Tables xxxxxxx
Where XXXX values are replaced with actual values from the user, database and respective data...
Additional Notes: I'm using the latest Blazor (0.4.0) with .NET Core 2.1 SDK (v2.1.300) and Visual Studio 2017 (15.7.3), along with the latest technologies and frameworks and toolsets, e.g.
Install-Package Microsoft.EntityFrameworkCore.SqlServer
&Install-Package Microsoft.EntityFrameworkCore.SqlServer.Design
&Install-Package Microsoft.EntityFrameworkCore.Tools
, I'm executing all these commands into the<projectName>.Shared
project... I have checked and tried executing all of them even the scaffolding one (originally giving me the problems) into the<projectName>.Server
and it executes just right, but at the time to create a controller, it doesn't let me select a DB Context. Another thing is that the tutorial was original made for the .NET Core 2.1 SDK (v2.1.300-preview2)the problems) into the
<projectName>.Server
and it executes just right, but at the time to create a controller, it doesn't let me select a DB Context. Another thing is that the tutorial was original made for the .NET Core 2.1 SDK (v2.1.300-preview2)Creating a Controller in
<projectName>.Server
gives me this error: