ivi
C# programs cause 1.9KB of network traffic despite no online functionality
https://cdn.discordapp.com/attachments/1006281886089363456/1194881087076306984/image.png?ex=65b1f6ba&is=659f81ba&hm=c987805b307220451872a5bf49770e81f7218e5c03a7a3ead1076b9f10e1740e&
How come? Seems to happen with various C#-based tools I'm using, all the same 1.9KB. Is there some kind of standard telemetry? Can I disable it?
2 replies
❔ How to show users a message if missing NET Core Runtime?
My mostly-console application requires .NET 7. Unfortunately, when users don't have it, it just silently exits and they don't get the opportunity to read a helpful error message, if it even exists. Can I somehow change this and show a meaningful error popup if users are missing prerequisites?
7 replies
❔ Net 7 console app insta-closes for users without runtime instead of notifying of missing runtime
How to change this?
https://github.com/ividyon/WitchyBND
8 replies
✅ MVVM: Are models observable?
I never quite understood what the Model is in MVVM.
My assumption is that this is any data you feed into the application, from any source, and can be swapped out for any other, and viewmodels have to support that.
Yet it seems very convenient to put Observable collections/properties in your Model to make the rest of the code work. But would you be able to even expect that from the model you put in?
Or is the Model a bespoke part of your application which in turn grabs & stores that external data, and therefore is free to be designed with Observability?
12 replies
❔ Find common substring at start of every string in list
I have a list of Windows path strings and I want to determine the common beginning shared by all of them, if such a thing exists.
So, a list like:
would output the string
C:\User\
.
How to smoothly accomplish such a thing?2 replies
❔ ASP.NET Core default template app fails with Electron.NET - I don't understand the ports
I'm making my first excursion in C# apps using ASP.NET Core and Electron.NET. I have a net6 project.
I have created a basic NET6 ASP.NET Core app from the templates, and followed Electron.NET instructions to add support for it. I have changed nothing else about the example app.
The example comes with a
weatherforecast/
URL which calls a controller to return some weather forecast info. However, the app says:
Error occurred while trying to proxy: localhost:44408/weatherforecast
I seem to have the following various bits of info:
- launchSettings.json iisSettings
: applicationUrl localhost:15555
and sslPort 44342
- launchSettings.json ProjectNameHere
profile: applicationUrl localhost:7092;localhost:5140
- app terminal says Use Electron Port: 8000
- app terminal says ASP.NET Core Watch Port: 8001
- app terminal says Now listening on: http://localhost:8001
- app terminal says stdout: warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect.
- .env.development says PORT=44408
- spa.proxy.json
says PORT=44408
- csproj file says <SpaProxyServerUrl>https://localhost:44408</SpaProxyServerUrl>
I am launching the app via electronize start /watch
.
So... what the heck are these 50000 different ports in my application? I need 1 port for my JavaScript Electron output, and 1 port for the .NET API server. What are those other ones? How can I fix the issue and remove this superfluous information?
Let me know if you need additional info.5 replies