froxerbbq
froxerbbq
CC#
Created by froxerbbq on 12/16/2022 in #help
❔ When Vpn connectivity is off don't crash the app.
I have built this logic it does make a popup appear with a message about vpn not being connected if VPN looses connectivity(For example if i turn it off), best case scenario this didn't instantly happend and re attempted 3 times with a delay in between.
var interfaces = NetworkInterface.GetAllNetworkInterfaces();
foreach (var vpn in interfaces)
{

if (vpn.Description.StartsWith("qwerty"))
{
m_cxz.Merge(m_asd.GetData(Id, (showSomething) ? (int?)null : 1));
break;
}

MessageBox.Show("vpn is not connected");
}
var interfaces = NetworkInterface.GetAllNetworkInterfaces();
foreach (var vpn in interfaces)
{

if (vpn.Description.StartsWith("qwerty"))
{
m_cxz.Merge(m_asd.GetData(Id, (showSomething) ? (int?)null : 1));
break;
}

MessageBox.Show("vpn is not connected");
}
8 replies
CC#
Created by froxerbbq on 12/5/2022 in #help
After upgrading .net from 3.1 to 6.0 We are getting this error in the pipeline Create ef migrations
dotnet exec step seem to be targetting old frameworks, we have updated EF as well. 2022-12-02T16:31:10.8266249Z Build succeeded. 2022-12-02T16:31:10.8493102Z dotnet exec --depsfile /home/vsts/work/1/s/Api/bin/Debug/netcoreapp3.1/zxy.zxy.zxy.Api.deps.json --additionalprobingpath /home/vsts/.nuget/packages --runtimeconfig /home/vsts/work/1/s/Api/bin/Debug/netcoreapp3.1/zxy.zxy.zxy.Api.runtimeconfig.json /home/vsts/.dotnet/tools/.store/dotnet-ef/6.0.4/dotnet-ef/6.0.4/tools/netcoreapp3.1/any/tools/netcoreapp2.0/any/ef.dll migrations script --context DBContext --output /home/vsts/work/1/a/migrations/DBContext.sql --idempotent --assembly /home/vsts/work/1/s/Api/bin/Debug/netcoreapp3.1/zxy.zxy.zxy.Api.dll --project /home/vsts/work/1/s/Api/zxy.zxy.zxy.Api.csproj --startup-assembly /home/vsts/work/1/s/Api/bin/Debug/netcoreapp3.1/zxy.zxy.zxy.Api.dll --startup-project /home/vsts/work/1/s/Api/zxy.zxy.zxy.Api.csproj --project-dir /home/vsts/work/1/s/Api/ --root-namespace zxy.zxy.zxy.Api --language C# --framework netcoreapp3.1 --working-dir /home/vsts/work/1/s --verbose
5 replies
CC#
Created by froxerbbq on 11/30/2022 in #help
❔ Upgrading a solution from .net core 3.1 to .net 6.0
Hi guys, I am upgrading a old solution from .net core 3.1 to 6.0 and I am facing some issues, not sure if I am going about it in the right way. I have changed the TargetFramework in the projects of the solution to <TargetFramework>netcoreapp6.0</TargetFramework> and <TargetFramework>netstandard6.0</TargetFramework> I have about 21 errors right now in the solution similar to this: Error NU1201 Project projectName is not compatible with net6.0 (.NETCoreApp,Version=v6.0). Project projectName supports: netstandard6.0 (.NETStandard,Version=v6.0) projectName D:\dev\projectName.FunctionalTest.csproj Best Regards
5 replies
CC#
Created by froxerbbq on 11/28/2022 in #help
ErrorTS2792(TS) Cannot find module '.lib'
11 replies
CC#
Created by froxerbbq on 11/28/2022 in #help
ToastElement
Hello guys, I am going through a project and found some things not working, this is one of the errors that I could not solve easily by myself as typescript is a greener area for me Error TS2722 (TS) Cannot invoke an object which is possibly 'undefined'. D:\asd\Web\ClientApp\tsconfig.json
D:\asd\ToastElement.spec.tsx beforeEach(() => { wrapper.find(Toast).props().onClose(); });
This is occuring in a ToastElement.spec.tsx file Best Regards
65 replies
CC#
Created by froxerbbq on 11/28/2022 in #help
npm version error
Hi guys, An old project running core 3.1 is using 11.15.0 of npm, I have previously a installation of 18.12.0. I have tried to change this with nvm to match the version of the build: So it is failing when I am trying to build and saying that I am still using 18.12.0. Best regards
35 replies
CC#
Created by froxerbbq on 10/31/2022 in #help
Communicating with a Minimal API built with .net 6 from a React app
Hello friends, I am learning more about React and decided to play around with a tutorial, from there I wanted to add onto it by sending for example state changes from our TicTacToe game to a minimal API built in .net 6. Currently, I am stuck with sending a MapPost to the minimal API, it seem to be working as intended in the network when I am testing the React app, but I am not getting anything on the minimal api side. https://github.com/rogerertas/LearningReact https://github.com/rogerertas/LearningMinimalApi Thanks for reading!
268 replies