문제

I have very simple project in WPF (PropertyChanged)- one view, one view model and one model. In this project I use package PropertyChanged.Fody. When I want to build this project after 10 second I get two error message:

  1. Could not copy "obj\Debug\PropertyChanged.exe" to "bin\Debug\PropertyChanged.exe".Exceeded retry count of 10. Failed.
  2. Unable to copy file "obj\Debug\PropertyChanged.exe" to "bin\Debug\PropertyChanged.exe". The process cannot access the file 'bin\Debug\PropertyChanged.exe' because it is being used by another process.

The only solution is:

  • unload project
  • delete folders bin and obj
  • reload project

It is very unconfortable, but I relly want to use PropertyChanged.Fody

도움이 되었습니까?

해결책

Sometimes the Visual Studio Hosting Process causes troubles. Go to the project Properties > Debug > Enable the Visual Studio Hosting Process and un-check it.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top