cow
Prepend string to git commit messages via VS2022 git interface?
I want to prepend a string to each of my commits. Is this possible?
I've been searching and it looks like you can achieve it with "git hooks", but git hooks are not supported with Visual Studio?
My end goal is to have Jira ticket number prepended to each commit, but I need to start with just figuring how to prepend a basic string.
Thanks
18 replies
✅ How to Deserialize dd-MM-yyyy in System.Text.Json?
Hi guys. It seems I can happily deserialize a yyyy-MM-dd formatted date in C# using System.Text.Json
However, when I try with a dd-MM-yyyy formatted date, I get the error:
The JSON value could not be converted to System.DateTime
How can I accept both date formats in System.Text.Json?41 replies
From HttpClient, can I save/copy the request to share with someone?
Is there a way to copy raw request details?
For example, I'm looking for a similar output like:
- in Bruno you right-click a request and click "Generate Code"
- in Postman you click the "view code" button on a request
Thanks
25 replies
User-secrets per machine?
I have many solutions and projects that use the same sql connection string user/password.
Currently I use DotNet User Secrets like this:
Which works fine, but it's at project level so I need to do it for each individual project, and I have many solutions/projects. And each dev would need to set those for each project
Is there a way to set a global/machine-level User Secret?
It would be great if all project could just read a central "sql-dev-user"/"sql-dev-pass"
81 replies
Encrypted file/document storage options for asp.net core website?
Hi guys, I'm maintaining an asp.net core website and I've been told it's a requirement to encrypt stored documents "at rest".
Currently we generate pdf's and store on the server disk, and serve them via the asp.net website.
I'm very unfamiliar with modern document storage and looking for some suggestions to go research.
What do you guys use?
Could I just add bitlocker to the server drive and be done with it? Or does that come with big performance hit?
Cheers
38 replies
Can you still create a SPA app inside an asp.net website? Or is that obsolete?
I've inherited some oldish Angular projects and was looking at upgrade options, and what the latest Visual Studio Angular template is like.
It seems everything now is a Web API backend, and a separate Angular project for frontend?
My projects have the Angular app as a folder inside the asp.net project, and when you hit debug or publish, both the asp.net and angular launch/publish together.
I'm happy to abandon that old style of project if it's no longer recommended, i'm just struggling to find info about it
Thanks
11 replies
How to create/get a class instance progamatically? (Maybe it's called a Factory?)
Hi guys,
Based on string/switch, I want to get a class. I'm new to dependency injection and I'm struggling to find examples, probably because I'm searching for wrong keywords (maybe it's not called a factory?)
This is what I have so far:
Currently I'm getting the error
No service for type 'ThingOneReport' has been registered.
I set a breakpoint at services.AddTransient<IGenericReport, ThingOneReport>();
and I confirm it definitely hits that line, so it should be registered
Thanks6 replies