Closed etaxi341 closed 3 years ago
grrr this again, I am starting to wonder if it is not visual studio git module (if you are using it) which is locking the files randomly to check for modification from time to time. does it also happen when you try to build your sln with dotnet command and your IDE closed? I'll try to create file in a temp folder and copy them once done to see if it works better.
Tested it. Same error with "dotnet build"
My current solution is to try it a few times. This only fails like 3/4 times. So sometimes it works in Visual Studio and in "dotnet build"
And yes I am using the VS Git module. But then "dotnet build" should work i think, right?
An other possibility is that since File.Delete can return BEFORE the file is actually deleted, maybe the process try to recreate the file too soon. I will put some safeguard. That or the os search indexer or some antivirus is keeping the file open with a shared delete. Anyway a simple check should fix this problem for good :|
Can you try the version 0.7.4-beta1 if it helps :)?
Wow, I think it works! Took my time and built the project 20 times. Never failed. Looks like you fixed it :) Thank you very much!
Hello, I am actually still getting the same Error as in #39 I am on the newest Version.
This is my Errorlog
Somehow this only happens when building the whole solution! Building each project by its own works. Could you maybe check if such an error occurs and allow us to just ignore it? Or maybe you can find way to resolve the issue completely.
Thanks for all the hard work on this amazing project!