Skip to content
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

Fixed msbuild holding dll lock during AttributeProcessor task #267

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

thormme
Copy link
Contributor

@thormme thormme commented Oct 20, 2023

For some reason, on my machine, building the solution failed while running the AttributeProcessor MSBuild task. The issue being that msbuild.exe held a reference to the MultiplayerMod.Original.dll file after opening with ModuleDefMD.Load(). It would then fail to delete the file during cleanup. I've simply changed it to open a stream and close it after reading the file. I figured I couldn't be the only one this is affecting. Though in all probability it's something to do with my build environment. Figured I'd throw this up here in case you're interested.

VS2022
x64
Windows 10

Love the mod!

Copy link
Member

@polycone polycone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, many thanks for this! It happened couple of times for me as well, but wasn't that critical (thus not prioritized).

@thormme thormme requested a review from polycone October 20, 2023 23:13
Copy link
Member

@polycone polycone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing this up, I actually thought it was locked by Roslyn😅 That's why there is an intermediate file.

@polycone polycone merged commit 60c506a into onimp:main Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants