-
Notifications
You must be signed in to change notification settings - Fork 0
Unable to remove nuget directory with test project in solution #2
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
Comments
Hi, I’m trying to reproduce this issue, but so far without success. I created four projects:
None of them exhibit the problem you described. You can find my attempt to reproduce the issue in this temporary repo: NuJet-Consumers-With-Test-Projects. Could you take a look and let me know how your setup differs? I suspect there’s something else in your environment or setup that differs and might be causing the issue. |
Thank you, and sorry for not updating the post! Since the above, I have worked more on my NuJet-consuming package, and I went from including a custom task to purely supplying build targets. I have not had the above issue since. But I got the issue to resurface now by re-adding a simple task to the NuJet-consumer that runs on build for consumers of the package: SetupTetstTask.cs
build/package.props
build/package.targets
Package.csproj
EffectIn short, any project adding a reference to my package now gets "MESSAGE" printed on its build. Once that happens, I can not rebuild the package as above. I assume something under the hood of Visual Studio keeps the custom task assembly loaded? Also: Just want to take the opportunity to thank you for NuJet. It's been very useful! |
Hi @Vectovox , I'm glad you like NuJet. Any feedback, appreciation, issue or anything else is very welcome to improve the project. Thank you. Anyway, I will investigate your situation calmly, for now I haven't been able to reproduce the error on my machine. I'm trying to imitate the contents you shared, but evidently I'm missing something to make everything work. |
I'm having an issue with NuJet failing to remove the installed nuget package when making updates to a package project. MSBuild has locked access to the .dll file as it's used in a test project.
Unable to remove directory [...] Access to the path '[...].dll' is denied.
It kind of makes sense, as the test project references the package project. But as such, my current workflow is to:
Is it expected in my situation or did I mess something up?
Solution
The text was updated successfully, but these errors were encountered: