Assembly.GetCallingAssembly() when update .net 3.1 to .net8.0 get Anonymously Hosted DynamicMethods Assembly
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
Hello i'm updating the library from .net3.1 to .net8.0
[dotNetify-Elements-new.zip](https://github.com/user-attachments/files/16797248/dotNetify-Elements-new.zip)
how you can represent
change dotNetify-Elements version to netcore3.1
and
1. cd .\DevApp\
2. npm i --force
3. npm run dev
open in browser http://localhost:5173
after run project in debug mode
and set breakpoint in
DotNetifyLib.Elements\Markdown.cs:38
then open callstack and you can see if you use .net3.1 callstack is correctly
if use .net8.0 callstack not show previous stack
### Expected Behavior
stacktrace can see preview assembly
### Steps To Reproduce
change dotNetify-Elements version to netcore3.1
and
1. cd .\DevApp\
2. npm i --force
3. npm run dev
open in browser http://localhost:5173
after run project in debug mode
and set breakpoint in
DotNetifyLib.Elements\Markdown.cs:38
then open callstack and you can see if you use .net3.1 callstack is correctly
if use .net8.0 callstack not show previous stack
### Exceptions (if any)
_No response_
### .NET Version
8.0
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.