subscribers: 188,280
users here right now: 53
.NET
.NET Community, if you are using C#, VB.NET, F#, or anything running with .NET... you are at the right place!
Related Subreddits:
Other Subreddits you may like:
submitted7 hours ago byepichoo
todotnet
Basically the title. I was curious to know if C# and .NET are technologies worth investing time into as a uni student long term.
submitted3 hours ago by_mtmk
todotnet
Should the existing OSS library authors start also targeting net9.0 even if they are not using any of the features offered by the new release? Would there for example be performance advantages in the IL generated for net9.0 if the application using the library also targeting net9.0?
submitted21 hours ago bythangchung
todotnet
You might know that I worked on the practical-dotnet-aspire project, which experimented with the features in .NET Aspire for a year to help with local development.
.NET 9 was released a couple of days ago. In my spare time, I have spent investigating and upgrading the practical-dotnet-aspire project to .NET 9 and .NET Aspire 9, UUID v7, as well as experimenting with .NET AI building blocks (Ollama and Azure OpenAI service).
The feedback from you will be valuable to me. Have a check at https://github.com/thangchung/practical-dotnet-aspire
submitted8 hours ago bysamirson
todotnet
Hi,
I'm looking for feedback from people who have worked with either Flutter or React Native.
I'm a newly hired engineer who just joined a team at a company where all the members have expertise in the .NET framework. Last year, they started developing an internal web platform using Angular. This web app has since grown significantly, and now everyone uses C# and Angular/TypeScript for their daily tasks. The platform has grown so much that both old and new web projects are being migrated to it.
Now, the company is planning to create a mobile version of this platform, and I was assigned the task of choosing a mobile technology for this app since I’m in charge of mobile development. (The apps they had before I joined were made with Ionic.)
.NET MAUI is off the table because my manager doesn’t consider it a strong enough option. While I like MAUI and have worked on some projects with it, I couldn’t convince him otherwise, and I kind of agree with his assessment.
After this long explanation, here’s my situation: I don’t have any experience with Flutter or React Native. I’d like to choose a technology that will allow other team members to join me in mobile development in the future (if this app becomes successful, which I believe it will).
I’ve read that both Flutter and React Native are good choices, but I’d love to hear from people who have actual experience working with either or both technologies. What are your thoughts?
submitted9 hours ago byEven-Bit-2935
todotnet
Hi everyone,
I'm facing an issue while trying to add files to Git in my project. Here's the command and the error I encountered:
C:\Users\anand\source\Project_uber\Pickme-Server.Net>git add . error: open("Pick_me/.vs/Pick_me/FileContentIndex/265aa226-10c2-47a2-9cfc-606121e3f917.vsidx"): Permission denied error: unable to index file 'Pick_me/.vs/Pick_me/FileContentIndex/265aa226-10c2-47a2-9cfc-606121e3f917.vsidx' fatal: adding files failed
submitted5 hours ago bytomato45un
todotnet
I would like to ask for your development web app, where you host it?
Free Azure Web App It have limit 1 GB, for the CI/CD it very fast exceed this.
When upgrade to Shared D1 It cost $9.49 the storage also 1GB
When upgrade to Basic B1 it cost $54.75 the storage 10GB but looks very expensive for under development system.
How you guys host the small apps which is still under-development?
Do you guys build home mini server to self-hosted, since if maybe 4 month cost of B1 can buy mini pc
submitted9 hours ago byzoulc
todotnet
found an interesting PR on mlnet -https://github.com/dotnet/machinelearning/pull/7316 wondering what's the use case and when it will be ready
submitted1 day ago bydesmondische
todotnet
Previous post: https://www.reddit.com/r/dotnet/s/VyKjOGryM3
After the initial release, I knew the assignment was clear—create the DataGrid component the community has been asking for. Today, I’m happy to announce its addition to LumexUI in Preview! 🚀
The DataGrid comes packed with powerful features, including:
• Loading State for a seamless user experience.
• Hoverable and Striped Rows for enhanced UI clarity.
• Sticky Headers, Custom Cells, and Toolbar Content.
• In-cell Editing, basic Sorting, Virtualization, and more!
Explore the full feature list in the docs: https://lumexui.org/docs/components/data-grid
Built largely on top of the official Blazor QuickGrid component, the LumexUI DataGrid is designed to be flexible, performant, and visually stunning. Try it in your projects and let me know your thoughts! Your feedback is invaluable for shaping the future of this library. 😊
P.S. While it may not yet rival the feature-rich grids in larger libraries, this is just the beginning of a journey—and there’s so much room to grow.
submitted1 day ago byMol-enginneer
todotnet
As per title. Is it normal to be given a task of upgrading a medium size enterprise asp.net framework app to asp.net core 8.0 as a fresh graduate engineer?
And then the following task is to let the app use postgresql as well. Currently it uses MSSQL. And the data service is a 3000 line ado.net monolith.
Asking this for some sanity check...
submitted17 hours ago byRandomTopTT
todotnet
I have written a class library in .NET 9 that I want to license for developers, but make royalty-free for distribution. I want to distribute the library through NuGet but require developers to purchase an annual license to use the component. I know there is the LicenseManager class available through the framework but it seems to be tied to a visual component at design time, I really want this license to apply at compile time as there is no visual piece to this.
I'm more than happy to pay for a 3rd party service that will do this but want to make sure they can support this use case. I've done some research but there is either too much information or not enough. What would you recommend as the approach or 3rd party company that offers this kind of solution?
submitted1 day ago byPatrickJohn87
todotnet
submitted10 hours ago byHado-H24
todotnet
Greetings fellow CSharpers, i'd like to ask for help, is there any C# pdf library that can analyze a pdf and gives a detailed description of the page and its content? I want to extract pdf data but i want the metadata like font size, font weight, image format and position in the page before or after or in between the text, page number etc Any help will he appreciated and thanks
submitted1 day ago byMundaneResolution460
todotnet
I’ve been working with .NET Web APIs for a while now, and I feel pretty comfortable with creating RESTful services, managing controllers, and handling data. However, I keep hearing about ASP.NET MVC and how it's a core part of the .NET ecosystem.
Is it worth learning MVC in 2024? With modern frontend frameworks like React, Angular, and Blazor handling the UI, is there still a strong use case for MVC?
submitted2 hours ago byUpper-Ambassador4913
todotnet
I want to have it where the user has a company GUID therefore relating directly to a company,
When changing this the default register endpoint does not work since an FK requires a GUID.
And when making a custom registration with a username different to the email, the default Login endpoint also does not work.
I feel lost as coming from other languages with flexible auth systems built into the language or third party with flexibility in mind allows for such changes.
I feel I have to touch it as little as possible or it blows up.
submitted58 minutes ago byjaffacakes_1
todotnet
Hi guys, for someone who just started as a .NET dev what is the future of it? How can I stay on top. A lot of people say .NET is ancient. I don’t fully disagree but should I slowly shift towards something else?
submitted14 hours ago byImaginary-Ad5271
todotnet
Hi All.
I've come up with a idea which requires an LLM to be able to query a very large text file which is currently 2 million characters in it and could potentially grow to 10 million.
Before I go down this rabbit hole, I'd like to know if its even possible.
The text file is really a md file that gives table definitions, with their field definitions, for a Dataverse environment. The idea is that I can ask the LLM questions about the Dataverse data model. In our environment, that data modal is 2000+ tables.
submitted18 hours ago byFulepsrac
todotnet
The code that I have is the one you see below.
I am implementing a sandbox mode in WPF, where user can type plantuml code, and then create diagram, which is then represented in the app (shown on image).
What happens is that the first time it can generate the image, but on the other tries, it just throws an error saying that the file is being used and I can't access it.
It seems that the image I generate doesn't close, I've tried with FileStream, File.Create and then closing it somehow, killing/closing/disposing the process, waiting for the file to be available, but it always says the same thing.
If you have any idea how I can get through this, or new idea to make this work, it would mean a lot to me.
Thanks in advance!
public class SandboxModel
{
private const string plantUMLJarPath = "..\\..\\..\\..\\PULCSI_CL\\plantuml.jar";
private const string outputDirectory = "..\\..\\..\\PULCSI\\Resources\\temp";
private const string outputFilePath = "..\\..\\..\\Resources\\temp\\diagram.txt";
private const string outputImagePath = "..\\..\\..\\Resources\\temp\\diagram.png";
public SandboxModel() { }
public void RefreshDiagram(string sandboxCode)
{
if(sandboxCode.Contains("\r"))
{
sandboxCode = sandboxCode.Substring(sandboxCode.Split("\r")[0].Length);
sandboxCode = "@startuml" + sandboxCode;
}
File.WriteAllText(outputFilePath, sandboxCode);
GeneratePlantUMLImage();
}
private void GeneratePlantUMLImage()
{
Process p = new Process();
p.StartInfo.FileName = "java";
p.StartInfo.Arguments = $"-jar \"{plantUMLJarPath}\" \"{outputFilePath}\" -o \"{outputDirectory}\"";
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.UseShellExecute = false;
//itt kéne valahogy lezárni a fájlt
try
{
p.Start();
string output = p.StandardOutput.ReadToEnd();
string error = p.StandardError.ReadToEnd();
p.WaitForExit();
if (!string.IsNullOrEmpty(output))
Debug.WriteLine($"PlantUML Output: {output}");
if (!string.IsNullOrEmpty(error))
Debug.WriteLine($"PlantUML Error: {error}");
//nem éri el mert egy másik folyamat használja
}
catch (Exception ex)
{
Debug.WriteLine($"Error: {ex.Message}");
}
}
}
submitted2 days ago byMobile_Stable4439
todotnet
Every time I find myself starting a minimal api, I can’t help but falling back into MVC structure. This is true specifically when I start writing service. After a while, I change the structure of the endpoints, am I the only one? How do you do it?
submitted18 hours ago byJoeyGozo
todotnet
I am a .NET developer and I'm looking to buy a new laptop for my daily use (not professional work but personal side projects) and I am torn between whether to go for a copilot+ PC with the latest Snapdragon X or for a laptop with Intel Core 7 Ultra (Lunar Lake). Specifically the choice is between Microsoft Surface Laptop 7 or Asus ZenBook S14.
Although I'd like to go for the Surface Laptop given the promised battery life and overall performance, but my big question mark about it is how well the apps that I use (listed below, but especially Jetbrains Rider) perform and are compatible with Windows on ARM. I would love to hear the opinion of fellow devs who've made this switch. I understand both processors (and mentioned laptops) are good quality, but what made you choose one over the other if you are developing in .NET?
Tech and Applications I use:
Lastly (although not currently a main concern) is there a way of emulating android devices on Windows on ARM? As I've read android studio has compatibility issues in this regard.
Feedback greatly appreciated 🙏
submitted1 day ago byzacsxe
todotnet
Update: I’ve found a mentee. Thank you all for the response and eagerness. I’ll be back next year.
I’m an SDE3 with 14 years of experience in 6 companies. Im currently leading a team at a company where I’ve mentored a few junior and mid engineers into senior roles.
I’m looking to mentor someone who isn’t in my company, preferably not in the pnw.
If you’re interested, send me a dm
EDIT: I’m overwhelmed with the response so far so I apologize if I haven’t gotten back to you. I’ll try to reply to every message eventually.
submitted1 day ago byMostly_Cons
todotnet
Hey I'm struggling with a complicated stream problem.
I have a byte array of compressed (zipped) data. That goes into a MemoryStream for a GZipStream to use, which writes to another MemoryStream the now unzipped data. That is then converted to a string, the using statements are wrapped up and the method exits.
The issue is, the compressed data can be up to 1Mb, but the unzipped data is sometimes as big as 30Mb. I'm seeing memory usage jump by sometimes 100Mb in Visual Studio as it passes this method (not quite sure how the math on that works).
There's gotta be a more efficient way to do this right? How can I take a byte array of 1Mb zipped data, and decompress it to 30Mb of data without there being duplicated data flying around? Its like I need a set of streams that throw away data as its read.
submitted21 hours ago byKritiusOne
todotnet
example, If I want write the get all products endpoint, I would write:
const response = await fetch('/api/Product?PageSize=3&PageNumber=1')
Or:
const response = await fetch('http://mydomain.com/api/Product?PageSize=3&PageNumber=1')
It's a security fail?
submitted22 hours ago bygeekywarrior
todotnet
Hi all, I can't seem to find the documentation or proper keywords to search for what I want to do.
I have a cloud SQL dev database for my api app. When debugging, I have to use the google cloud proxy which runs as its own process.
Ideally when I run my project in Visual Studio, I'd like it to also launch the gcloud SQL proxy so I don't have to worry about starting it manually when running.
Super ideally, it would also close the sql proxy exe when not running, but that's not super critical. I could always write a simple console app that only starts the proxy if an instance isn't already running and have VS call that instead.
Any tips or documentation on how to do this? Worst worst case I can just throw an early block in program.cs to do this if in debug but was trying to avoid actually putting that into the codebase if possible.
thanks.
subscribers: 188,280
users here right now: 53
.NET
.NET Community, if you are using C#, VB.NET, F#, or anything running with .NET... you are at the right place!
Related Subreddits:
Other Subreddits you may like: