Modifying the AssemblyVersion Project Stop Compilation

Having a very strange error while compiling my solution.

I have a solution with about 19 projects, we control AssemblyVersion and AssemblyFileVersion using a shared AssemblyInfo.cs that keeps our entire version inline when we build the release. This has been working great for the last two years, but today I changed both AssemblyVersion and AssemblyFileVersion and one project started giving me the following error:

delete [DLL Obj Folder Path] Access to the path '[DLL Obj Folder Path]' is denied. [DLL Obj Folder Path]

      

If we only change the AssemblyFileVersion, then the project will compile.

Can't find anything on this, thanks for any help.

Edit:

Just to add a little more information, I looked at the build output and got the following

6>MSBUILD : OpenAccess Enhancer warning 0: Could not copy back original file. Access to the path '[DLL Obj Folder Path]' is denied.
6>[DLL Obj Folder Path](-1,-1): OpenAccess Enhancer error 0: delete [DLL Obj Folder Path] Access to the path '[DLL Obj Folder Path]' is denied.

      

+3


source to share


1 answer


Ok Managed to fix this by recreating the project.

Created a new projection, Added all classes using Add existing items, Compiled all works. Then I added a new project to the main solution, replacing the old project and everything compiles fine.



No idea what caused the problem, but I'm glad we got rid of the problem now

thank

0


source







All Articles