Comments (15)
#1102 seems to be the only relevant change in this release, so this might be related to Cecil.
from fody.
@ltrzesniewski @SimonCropp Can anyone reproduce this? I got this in several projects.
Seems like these are the only changes related to .pdb:
jbevain/cecil@79b43e8
jbevain/cecil@8b593d5
@vitek-karas any idea why this is now broken?
from fody.
After changing DebugType
to portable
it works again. @vitek-karas @jbevain maybe the latest changes regarding pdb writing are not applicable when using embedded pdbs?
from fody.
@tom-englert i hvant noticed. do u want me to revert for now and re-deploy?
from fody.
The issue doesn't reproduce under Rider 2022.2 EAP 4 (after updating Fody to v6.6.2 in your project).
I can repro this is VS though.
from fody.
In the unit tests we use System.Reflection.PortableExecutable.PEReader
, that seems to have also no problem.
from fody.
Should we revert then? And is this a bug of VS or Cecil?
from fody.
6.6.3 deployed
from fody.
Sorry for the late reply on this. I'm busy with other things, so didn't have a chance to spend too much time on this. I can repro it with the project provided by @tom-englert (thanks!). But it seems that it's not a wide-spread problem. For example the dotnet/linker uses Cecil to read->write assemblies as well and using an embedded PDB I could not repro the problem there.
So it's either something special about some code pattern, or it's something special about Fody's usage of Cecil.
from fody.
@vitek-karas it's not specific to Fody:
from fody.
I'm using Fody 6.6.4 and debug is still broken for me. Removing Fody package allows the app to be debugged again.
Quote from the link below
So our target _CollectPdbFiles is not finding the myMowasat.Android.pdb in the bin/Debug/ directory. This is why it is not being deployed.
Looking a the log in more detail and it seems that Fody.targets is reassigning the DebugType property from portable to embedded.
https://github.com/Fody/Fody/blob/master/FodyHelpers/build/FodyHelpers.props#L4
I'm not sure why its doing that but it might stop our debugger from working. I'm not sure the mono soft debugger works with embedded symbols afaik.
Are you using Fody for anything? If not it might be worth removing the package reference if you are not really using it.
https://developercommunity.visualstudio.com/t/Unable-to-debug-Android-app/10220577#T-ND10226714
from fody.
@mohibsheth with which version did it stop?
from fody.
Not sure but in our project, previously it was 4.0.2 and I recently upgraded it directly to 6.6.4
Removing FodyHelpers NuGet fixes my debug issue.
from fody.
Removing FodyHelpers NuGet fixes my debug issue.
You are not supposed to reference the FodyHelpers
package, unless you are developing a Fody weaver. If you want to use Fody, you should reference the Fody
package + the weavers you need.
from fody.
Ah ok, thanks for the clarification. As I mentioned above, the project is quite old and I was upgrading everything to the latest. I guess in older versions FodyHelpers nuget was also required but now it's not.
Thanks.
from fody.
Related Issues (20)
- .NET hot reload issue with fody HOT 5
- Why could I not load a file or assembly or one of its dependencies? The system cannot find the file specified for Costura Fody and Xceed toolkit. HOT 2
- No warning when "PrivateAssets=All" is missing in package reference HOT 1
- AccessViolationException in Fody.WeavingTask (Build Failure MSB4166) HOT 4
- Visual Studio 2022 for Mac Preview 5 HOT 1
- Cleaned library references are not removed from the deps.json file HOT 5
- Add PrivateAssets="All" to any weaver package WinUI 3 packaged app will fail to build. HOT 2
- Fody Weaving skipped when Clean build initiated using msbuild HOT 2
- Allow yearly contribution HOT 2
- Update Cecil HOT 5
- FodyWeavers.xml in solution directory is not found/used HOT 7
- PropertyChanged.Fody can not run in .net 7 readytorun or aot. HOT 1
- FodyHelpers incorrect reference Mono.Cecil version. HOT 6
- FileNotFoundException when trying to use a type from another assemblu HOT 2
- "The assembly has already been processed by Fody" in nuke HOT 20
- Update Cecil
- Pdb reference in generated dll/exe not using PathMap rules HOT 4
- release Avalonia fody HOT 2
- fody is missing NuGet package README file HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fody.