|
MisterZimbu posted:Ugh, there's a longstanding bug in Visual Studio/.NET (?) that's been the bane of my existence for about a year. We had that too a while ago and I can't remember how we got round it, probably using binding redirects. I'm sure there were a bunch of nuget packages which all had references to different versions of Newtonsoft.Json but one of them was = instead of => that version which was causing it. It annoyed me as much as one period when out of the box an MVC web project would have hard coded version number requirement on X whilst some other package demanded >X+1 of some other package.
|
# ¿ Mar 11, 2017 13:46 |
|
|
# ¿ May 20, 2024 23:41 |
|
GameCube posted:I'm working on a library that we publish internally as a nuget to use in a few Xamarin apps. Every time I want to test a change to my library, I build the library, package the nuget, save it to my local nuget source, then upgrade my app's solution to that nuget. For some reason though, upgrading that nuget from the VS package manager takes literally forever (meaning, like, five minutes). Is it normal for a package update to take so long? And if so, is there a better way to do what I'm doing? This code->build->package->upgrade->build->debug cycle is killing me. What's in the library? We have a pile of nuget packages we deal with in a similar manner and all are really quick apart from one. That one instead of installing a single dll+bits installs hundreds of resources/images so it goes through and deletes the old version then adds each new one before finally sorting out which ones didn't change and fixing the settings for being Content/copy of newer or whatever.
|
# ¿ Aug 9, 2017 17:20 |
|
I’ve used Ibex to generate PDFs. Its libraries are .Net Framework and there’s a prototype in .Net Core available now. https://www.xmlpdf.com you write in xsl-fo and then use xslt to transform into pdfs. So a bit different to writing the document in c# against a library but you can ship the libraries with your application. The support is pretty incredible though. I was working on upgrading our version to one where they changed their svg engine and was submitting bug reports and they’d deploy a fix within 24hrs most of the time.
|
# ¿ May 28, 2019 23:42 |
|
You can assign a namespace to a resx file so can programatically reference the text without using a string as a key. So from memory it’s something like namespace.class.key treating it as a pseudo-static value if you use a namespace vs a mechanism to call as GetResource(“key”) if you don’t with the first obviously being preferred. I say pseudo-static, because if you do go down the route of translating the test you can use the UI thread culture to pick up the appropriate text from file.resx, file.fr.resx, file.de.resx or whatever. If you didn’t assign a namespace I can’t remember if you have to do something like GetResource(“key”, lang-code)
|
# ¿ Aug 21, 2019 08:40 |
|
Hammerite posted:are you asking me specifically, or posing a question to a hypothetical reader who might upgrade? Same, had a bunch of white screens of death just from interacting with c# projects. A great boost of confidence before they completely change how the .net ecosystem works in less than 2 months.
|
# ¿ Oct 2, 2020 11:11 |
|
|
# ¿ May 20, 2024 23:41 |
|
Probably not what is being looked for, but I have used Ibex for years https://www.xmlpdf.com/. That old app is still on Framework so can't speak for the newer .Net Core/.Net versions of the lib though. You use XSLT to transform XML into XSL-FO then onto PDF (or html/rtf/whatever). A bunch of times I hit an issue, usually with localisation, or when they rewrote their own SVG engine at a major version jump, I'd submit a bug with a sample. Come in the next day to an email to download the new version with a fix. Never had an external library owner be so responsive. Now working on a Java app where we use apache fop to transform json using thymeleaf templates which is definitely a lot simpler. From a quick search it looks like there's a dead attempt to convert that to .net too, which is interesting, wonder how much effort is involved in that kind of thing https://www.nuget.org/packages/crispin.fop
|
# ¿ Jan 11, 2024 17:11 |