|
I don't supoose this is any help: [^]
(I don't use VS, so can't test)
|
|
|
|
|
I just wish 2019 would stop crashing inexplicably...
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
Would you like it if it kept crashing explicably?
|
|
|
|
|
Okay, first of all. Get Visual Studio 2022, and uninstall Visual Studio 2019. There is a milestone difference between version of 2022 and 2019. 2022 is on another level of improvement.
Aside from Intellisense, it's now has another upgraded version called IntelliCode.
Download Visual Studio 2022: https://visualstudio.microsoft.com
Launch Event News:
https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/
Official Launch Video:
https://visualstudio.microsoft.com/launch/
Youtube Launch Event Video:
Welcome to Visual Studio 2022 – by Scott Hanselman and friends - YouTube[^]
|
|
|
|
|
I'm fully aware of Visual Studio 2022. While we will switch to it in due time, it's too early at this point.
Software Zen: delete this;
|
|
|
|
|
You can have both VS 2019 and VS 2022 installed side by side. So able to keep developing with 2019, but can then test drive 2022.
My biggest concern (working in gov't org with hundreds of developers) is that some people will start using some of the new features in C#10, and others will get compile errors running same code in VS 2019. Plus no idea whether our Azure DevOps CI/CD pipelines will work...
|
|
|
|
|
Just got the bill for 42 coffee...
I ordered 4 tea, 2 coffee
I'll get my coat, was on my way out anyway.
|
|
|
|
|
lol, speaking of coffee, we had some sort of drive thru coffee shop open near us. Now, I am NOT a coffee connoisseur at all. Give me a large mug of Dunkin Donuts coffee - hot, no sugar and milk (don't get happy with the milk). I like the bitterness, it tells me I'm drinking coffee. Anyway, wife and I decided to stop by and try their ice coffee (I was sucking up to the wife). Two small iced coffees, just cream please.
That will be $7.52
Yeah, screw that
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
If you can find French Market dark Roast you woulf love it.
Ed
|
|
|
|
|
|
So this customer's customer asked me if I can send a file to an API instead of through email.
Sure I can, no problem, just send me the API definition.
The API has a few fields of which file is the most important.
The curl example they sent me shows it's form data and the file parameter is a local file path.
I don't know what curl does, so I asked this guy "how do I send the file in .NET? Do you want a byte array, a base64 string, something else? I'm pretty sure sending my local file path won't do."
He replies "I don't know how that works in .NET, but you can read the curl documentation."
"Alright, let me rephrase that. I know how .NET works, but how do you want to receive the file, as a byte array, base64 string, something else?"
Apparently, this is a very difficult question as this guy had to send it to someone else who replies (literally) "You need to tell them that, you need to send through form-data, check the postman screenshot"
The screenshot is literally the curl request, including a local file path
At this point I just want to send them "C:\My Files\My file.pdf" and be done with it
I'm going to make a wild guess and mimic an HTML input type="file" form upload and see how far that gets me because I don't think I'm ever going to get the answer I'm looking for...
|
|
|
|
|
Curl do binary transfer...
The protocol of the connection is derived from the target url...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
If my experience is anything to go on, there's a good chance the data should be sent packaged up as a literal inside an XML document (the nodenames of which will not be documented anywhere).
Good luck...
|
|
|
|
|
That's my experience too, it's never what you'd expect (even when you expect the unexpected)
|
|
|
|
|
Postman will translate a curl to C# code for you. Very handy!
|
|
|
|
|
Why did I not know this!?
|
|
|
|
|
Sander Rossel wrote: Why did I not know this!?
Tradecraft. I had to be shown this a few years ago because I didn't know either.
|
|
|
|
|
Well ... the whole sentence was "You are pretty annoying", but I like to focus on the positive elements.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
pretty accurate?!
|
|
|
|
|
Reminds me of this[^]
The less you need, the more you have.
Even a blind squirrel gets a nut...occasionally.
JaxCoder.com
|
|
|
|
|
Wonderful stuff ... I need this every now and then when I drive ...
modified 7-Nov-21 12:11pm.
|
|
|
|
|
Pretty lucky it wasn't worse. Seems like everyone's a critic.
Unless it was your wife that said it. then you are probably in doo-doo land.
ed
|
|
|
|
|
|
|
There we go - that's my version of coffee.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|