-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project build is not 'deterministic' #308
Comments
I can't speak for Simon, he might very well know more about this. But I'd be willing to look at this in case you can provide a repro. For my personal notes: |
I uploaded a test solution under my account: https://github.com/clcdrn/TestRepo/tree/master/Fody.PropertyChanged.Deterministic
Expected result: All binaries are the same in the two builds Note: I've noticed the .pdb are also deterministic since only recently (one of the latest VS2017 updates must have included this). Aside from yours, I had been following some links myself for this new 'deterministic' flag (the last one may be relevant to this case in particular) dotnet/roslyn#372 |
Same issue here, but with ModuleInit. Maybe this should be moved to the parent project? |
TBH i had not heard of Deterministic builds. AFAIK Fody does nothing explicit that would cause Deterministic builds to stop working. but i could be missing something in my ignorance. But i guess the underlying question is "does Cecil support Deterministic builds"? perhaps @jbevain knows or can give us some pointers |
I'm sorry but I'm new to GitHub and I'm not clear on how to correctly link this issue from here to the Cecil repository. Or should I create a separate issue there? |
Doing a search for 'Deterministic' under the Cecil repository (https://github.com/jbevain/cecil/search?q=deterministic&type=Issues&utf8=%E2%9C%93) shows that they discussed this previously and jbevain/cecil#76 is indeed relevant to follow. I see that just by linking it here, there is a mention in that thread about this issue here. Hopefully that is enough. |
seeing as this seems to be an underlying cecil issue i will close this. happy to re-open if more info becomes avaliable |
I'm using
<Deterministic>True</Deterministic>
in the .csproj file (targeting .NET 4.6.2 using the latest VS2017 build with .NET 4.7.1 under Windows 10) and it seems there is s small difference near the end of the binary file produced by the PropertyChanged task. I have not investigated it further because it's a little outside of my skill set. I'm also not clear if this is related to 'PropertyChanged' or the parent 'Fody' project. I remember reading somewhere recently that 'Fody' should be now deterministic but I can't seem to find that particular issue anymore to link it here. Is this a known issue? Should the build be 'deterministic' in the first place? Do you also need a sample project to verify this? (If yes, I'll try creating a small schema and a console project).The text was updated successfully, but these errors were encountered: