oke
oke
CC#
Created by oke on 7/21/2024 in #help
Trying to setup SQLite with EntityFramework (Discord Bot /w DSharpPlus)
I'm trying to setup SQLite for my discord bot, and to start the DB file, I tried using this command
PM> Add-Migration InitialCreate -Context LloydWarningSystem.Net.Entities.LloydContext
PM> Add-Migration InitialCreate -Context LloydWarningSystem.Net.Entities.LloydContext
LloydContext is my class that inherits DbContext. However, this command just builds my bot then runs it then gives an exception saying it cant find my service.
PM> Add-Migration InitialCreate -Context LloydWarningSystem.Net.Entities.LloydContext
Both Entity Framework Core and Entity Framework 6 are installed. The Entity Framework Core tools are running. Use 'EntityFramework6\Add-Migration' for Entity Framework 6.
Build started...
Build succeeded.
[!] Bot start @ 7/21/2024 2:46:06 PM (Debug build)
[2024-07-21 20:46:08 +00:00] [DSharpPlus.DiscordClient] [Info] DSharpPlus; version 5.0.0-nightly-02329+a9fe1468a51cabd82565a7f7e86d86ce1c428595
[!] Bot ready for commands.
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Timed out waiting for the entry point to build the IHost after 00:05:00. This timeout can be modified using the 'DOTNET_HOST_FACTORY_RESOLVER_DEFAULT_TIMEOUT_IN_SECONDS' environment variable.
Unable to create a 'DbContext' of type 'LloydWarningSystem.Net.Entities.LloydContext'. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[LloydWarningSystem.Net.Entities.LloydContext]' while attempting to activate 'LloydWarningSystem.Net.Entities.LloydContext'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
PM> Add-Migration InitialCreate -Context LloydWarningSystem.Net.Entities.LloydContext
Both Entity Framework Core and Entity Framework 6 are installed. The Entity Framework Core tools are running. Use 'EntityFramework6\Add-Migration' for Entity Framework 6.
Build started...
Build succeeded.
[!] Bot start @ 7/21/2024 2:46:06 PM (Debug build)
[2024-07-21 20:46:08 +00:00] [DSharpPlus.DiscordClient] [Info] DSharpPlus; version 5.0.0-nightly-02329+a9fe1468a51cabd82565a7f7e86d86ce1c428595
[!] Bot ready for commands.
An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Timed out waiting for the entry point to build the IHost after 00:05:00. This timeout can be modified using the 'DOTNET_HOST_FACTORY_RESOLVER_DEFAULT_TIMEOUT_IN_SECONDS' environment variable.
Unable to create a 'DbContext' of type 'LloydWarningSystem.Net.Entities.LloydContext'. The exception 'Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOptions`1[LloydWarningSystem.Net.Entities.LloydContext]' while attempting to activate 'LloydWarningSystem.Net.Entities.LloydContext'.' was thrown while attempting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
13 replies
CC#
Created by oke on 3/7/2024 in #help
Where can I find a working library for making a LLVM compiler?
I found this library (https://github.com/dotnet/LLVMSharp) that provides extern references for the LLVM lib, but it doesn't work and seems to be abandoned. Does anyone know of other C# libraries that would help with making an LLVM compiler? Even better if it natively supports Antlr ASTs. Thanks
2 replies
CC#
Created by oke on 3/2/2024 in #help
Drag-And-Drop Environment Like NeetCode Roadmap or Scratch
I'm incredibly new to WPF. I'm trying to make an app with WPF .NET Core, and want to make an "environment" in the bottom right section of a grid. The items are just boxes that look neat and will hold text information, maybe even an icon or two. At this stage in development, I'm aiming for a functioning app before I get into snapping on all four sides to create larger blocks and such. But this is tricky being so new to WPF as I don't know what to do. Is there an element that's already available to create this? Or would I need to create all elements on my own? Thanks ~~~ I found this repo for an actual Scratch clone, but with WPF: https://github.com/weihuajiang/WPF-Blockly it's just that it is an actual code maker. I'm going to go through it and see if there's anything I can use.
22 replies