• /r/csharp
  • EF Core .NET Command Line Tools vrs EF Migrations tools in ASP.net Core

    So I am working through this excellent Asp.net Core 2 book https://www.littleasp.net/book and finding that the EF Core .NET Command Line Tools don’t work. So Update-Database works, but dotnet ef database update doesn’t. Why are there two systems, and why doesn’t one work? Cheers edit: I have added this to the csproj file. <ItemGroup> <DotNetCliToolReference […]

  • /r/csharp
  • String Splitting

    Hello all, I’m trying to parse a long string and get the host names from it, here is an example; [rtsp://admin:admin@192.168.1.4:88/videoMain][rtsp://admin:admin@192.168.1.41:554/axis-media/media.amp?videocodec=h264&streamprofile=Quality][rtmp://192.168.1.9/public/ButterStream][rtsp://admin:admin@192.168.1.55:88/videoMain] I’ve done various things using .Split(‘[‘); however, it seems like there must be a better way to break this down into 4 strings which I then pass to Uri myUri = new Uri(URL); host […]