Closed oleksandrp1 closed 2 years ago
Hi @oleksandrp1 , do you mean "edit and continue feature"?
I receive the following message.
Thanks for the report, I'll look into it
The error disappears if I remove and install the package again. But the error appears after the second launch of the Visual Studio,
I've found the cause of the issue, but can't figure how to fix it at the moment :(
Hi pamidur. After update to 2.5.0 version, the following warning message appears during debugging. The problem disappears if I remove the package. The bug is also available in 2.4.4 version and absents in 2.4.3.
hi @oleksandrp1 , do you use 'Edit&Continue' feature ? and if no, could you please provide a bit more information. maybe sample code?
Yes, I use 'Edit&Continue' feature.
The weird part that is should also fail in 2.4.3 then! And you're saying it doesn't. Very interesting! Is there any chance you could provide code sample and/or steps to reproduce?
Excuse me. I mixed 2 problems in one issue. The error with the "Edit" and "Stop" buttons appears in 2.4.3, 2.4.4, and 2.5.0 versions. The error about breakpoints appears in 2.4.4 and 2.5.0. It does not appear in 2.4.3.
In 2.4.4 I changed (fixed) the way debug data is handled. It seems like something isn't working as expected. Could you please create another issue and provide steps to reproduce and code sample (the method where you try to set breakpoint) if possible?
Example.zip This is an attachment for this problem, but the bug about the breakpoint is not reproduced here. It is a simplified version of my project, but now I did not find what causes the breakpoint problem. I will investigate it later.
Thanks for your report! The sample code will help a lot!
The problem with the breakpoints is not reproduced now at all. Maybe cleaning the project and update of other packages solved the problem.
well, it potentially could be a weird extension of Edit&Continue bug
A similar problem: https://github.com/AvaloniaUI/Avalonia/issues/5456
Hi @marbel82 , have tried 2.6.0-pre1 version?
In 2.6.0-pre1 it is possible to debug the code and to go to highest rows in the code, but after changing the code it shows the message
@oleksandrp1 , could you please provide a code-sample (or project-sample) so we can reproduce it?
Example.zip Hi, now the message does not appear, but I found that if I add changes to the code during debugging then they will not be applied to the code during the debugging. Open WebRefactorPage.cs and make a breakpoint on string 23 and on string 25. Run debugging a test in TS09General.cs file. If you change the "a" variable to "true" on string 23 then it will not be applied to the debugging mode and the step 25 will apply the previous "false" value.
Hi @oleksandrp1 , Thank you for detailed steps and sample code. I'll use it to reproduce and fix the bug!
Thank you for your product!
I've got the same error trying to change code in a Xamarin.Forms 5.0.0.2012 App using Edit & Continue with Visual Studio 2022 Preview 3.1:
CS7038 Failed to emit module 'XF.App': Changing the version of an assembly reference is not allowed during debugging: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' changed version to '2.1.0.0'.
I found the cause in my case. In all projects I have set TargetFramework to net5.0-windows
, but in one I had set net.5.0
. When I changed in this latest project to net5.0-windows
, the problem with inability to edit disappeared.
@JunkyXL86 , @marbel82 which version were you using, please?
@pamidur I use Visual Studio 16.11.3
An which version of AspectInjector? this is also important
:) I just wrote that I have similar problem. I'm not using AspectInjector.
oh, I got it, it does mean that issue could be somewhere else, thanks @marbel82
Seems fixed in 2.7.0
Hi, Thank you for your package. It is very useful, but after adding it to my project I cannot change my code during the debugging session. Each time I receive the following code after a change of at least one symbol: CS7038 Failed to emit module 'project name': Changing the version of an assembly reference is not allowed during debugging: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' changed version to '2.1.0.0'. The error disappears when I remove the package.