Linqpad locking my assembly

I have Visual Studio open with my project and LinqPad open with a reference to an assembly from my project. I can't compile the project because Windows says the .dll file is locked by Linqpad.
What's the way to use both and not interfere with each other? Do I have to make a copy of the dll file and have Linqpad use it?


  • Options
    There's an option in Edit | Preferences | Advanced called "Do not shadow assembly references". Have you have checked this by mistake? Doing so will cause LINQPad to lock assemblies are you describe.

    The other thing that will cause LINQPad to lock DLLs is if your assemblies reside in the ProgramFiles directory. LINQPad then assumes the assemblies are part of an installed program and will lock them without copying them first.

Sign In or Register to comment.