Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:21
    elinor-fung edited #26305
  • 00:03
    fadimounir commented #25708
  • Aug 21 23:59
    fadimounir synchronize #26262
  • Aug 21 23:57
    josalem commented #26241
  • Aug 21 23:50
    CarolEidt commented #26286
  • Aug 21 23:48
    CarolEidt commented #26286
  • Aug 21 23:40
    jeffschwMSFT labeled #22893
  • Aug 21 23:40
    jeffschwMSFT labeled #22897
  • Aug 21 23:39
    jeffschwMSFT edited #22907
  • Aug 21 23:38
    jeffschwMSFT edited #23378
  • Aug 21 23:37
    jeffschwMSFT labeled #23465
  • Aug 21 23:37
    jeffschwMSFT edited #23919
  • Aug 21 23:36
    jeffschwMSFT edited #24414
  • Aug 21 23:35
    jeffschwMSFT labeled #24506
  • Aug 21 23:34
    jeffschwMSFT labeled #24926
  • Aug 21 23:23
    jeffschwMSFT edited #25467
  • Aug 21 23:22
    jeffschwMSFT labeled #25550
  • Aug 21 23:18
    jeffschwMSFT labeled #25553
  • Aug 21 23:18
    jeffschwMSFT edited #25586
  • Aug 21 23:18
    jeffschwMSFT labeled #25586
Michał Zegan
@webczat
or othervise not sure how you open files in unix, unless you do it indirectly via a native shim
Michał Zegan
@webczat
btw, all the time when I am reading api reference I wonder if the documentation could be improved in one area, that is all this cross platform stuff. there are tons of seemingly windows specific apis that do work on unix, even sometimes without too much emulation, and they are not even documented as working on unix. or another way around, things not declared not to work on unix, while they possibly could. My fawourite is GetLastWin32Error that probably works on unix.
Michał Zegan
@webczat
well. actually I was tempted to report this one.
Would it be possible to obsolete GetLastWin32Error and make a GetLastError instead? just curious if it makes sense to report such things. still this method is confusing, especially when you realize it works on non win32...
but it would probably break compat...
Robin Sue
@Suchiman
the best you could reasonably do would be introducing GetLastError in addition and that would probably not meat the bar
Michał Zegan
@webczat
yeah. what about the obsoleting part? would adding [Obsolete] attribute on GetLastWin32Error in this case be painful or not really?
Robin Sue
@Suchiman
adding [Obsolete] introduces a warning, that is a breaking change as far as the .NET team is concerned
(because WarningAsErrors)
(the roslyn team hasn't added new warnings to existing language features for this exact reason)
Michał Zegan
@webczat
mhm... so for such methods that have replacement but are there for compat, you don't mark them obsolete, just maybe say in docs that you should use this better one?
new warnings to existing language features? what do you mean?
Robin Sue
@Suchiman
@webczat well there have been edge cases discovered where the C# compiler could warn you "this is nonsense, this comparison will always be false" but adding such a warning would be a breaking change
Michał Zegan
@webczat
I would actually like something like the applies to heading that also show operating systems where the class is implemented/works.
Robin Sue
@Suchiman
that means they can only introduce warnings and compiler errors together with new features, once those features are out in the wild and being used, one could have already written code that could be subject to a future warning whose introduction would be a breaking change
the compat bar for the C# compiler is ridiculously high
but it looks like warning waves are comming soon which would mean you can opt into new warnings
Joe4evr
@Joe4evr
they're also working on a new system to improve API deprecation: https://github.com/dotnet/designs/pull/62/files
Michał Zegan
@webczat
Returning to things from yesterday, is reliability contract/criticalfinalizer actually usable in dotnet core?
Wraith2
@Wraith2
no. the removal of threadabort meant that a lot of assiciated work coudl also be simplified or removed. there is no longer a need to setup for critical failures in arbitrary locations because they can't be intterupted anymore.
so while they types are still there the runtime behaviour is probably simpler and close to "normal"
Michał Zegan
@webczat
close to normal, but... not quite normal? or maybe for example (random guess) assembly context unloading triggers this?
Michał Zegan
@webczat
well probably not? you cannot force unload contexts...
Michał Zegan
@webczat
what about things like out of memory/etc?
Joseph Musser
@jnm2
@webczat That depends on whether the method has [HandleProcessStateCorruptedExceptions] or whatever it's called.
Michał Zegan
@webczat
well, this one is also handled by this? I thought it is only access violation
TeBeCo
@tebeco

anybody have recommendation to find Types at startup time in an app
it seems that if i create 1 classlib and 1 console app referencing the classlib "discovery" (using AssemblyLoadContext) wont find the libs types

once i interact with a type from the classlib like var foo = new TypeFromLib it does find it

i guess there it's kinda logic not to load stuff (lazy loading like)

we are trying to find "all" protobuf generated types in order to register them (we wrote a Signalr IHubProtocol) but we do need to have the list of known message that we will need to deserialize
any recommandation ?
Joseph Musser
@jnm2
@webczat I'm pretty sure it handles OutOfMemoryException and StackOverflowException, but I could be wrong. I'm not finding a list.
Robin Sue
@Suchiman
TIL something new about exception handling in .NET https://stackoverflow.com/a/57544409/1086121
Joe4evr
@Joe4evr
:eyes:
Wraith2
@Wraith2
what does that emoji mean?
Marco Rossignoli
@MarcoRossignoli
:smile:
well simple...eyes :sweat_smile:
Joe4evr
@Joe4evr
@Wraith2 it means a kind of mild surprise like this:
Wraith2
@Wraith2
ah, thanks :smile:
Joseph Musser
@jnm2
I also had to ask @Joe4evr what it meant
I have a feeling it may not be universally understood
No idea if it's closer to 80% or 8% :P
Filip Navara
@filipnavara
It is understood in my part of the world... which is still far from representative.
(and it is one of the few emoticons supported as GitHub reactions)
Joe4evr
@Joe4evr

I have a feeling it may not be universally understood

well, it's not like the definitions are set in stone either

Joe4evr
@Joe4evr
for another example of a very broadly-defined emoji: https://blog.emojipedia.org/emojiology-upside-down-face/
masonwheeler
@masonwheeler
Well I feel very 🙃 about that!
Joseph Musser
@jnm2
The funniest is people using 💩 to indicate chocolate
I may or may not be distantly related to some of these people
Aelindgard
@Aelindgard
Hi all, apologies, anyone familiar with using .NET c# to manipulate VISIO files without calling the VISIO application. There is a tutorial on manipulating the VISIO file as an XML, https://docs.microsoft.com/en-us/office/client-developer/visio/how-to-manipulate-the-visio-file-format-programmatically but it doesn't cover insertion. Use case is a batch process in a server that will add a watermark/classification image to the files eg, "DRAFT" , "SAMPLE" , "APPROVED". Thank you.
migz123
@migz123
Hello everyone