MSB3061

I'm running the Feb CTP, including Orcas. Nearly any time I try to rebuild an application I receive the warning in the subject and the message "Cannot delete the project output: is the file read-only?" This is, despite the warning, a build failure. The file that can't be deleted is MyApp.vshost.exe.

You know what, I just figured out what it is. Orcas locks this file if you have any XAML files open (assuming for the designer?). Is this a known bug? Is there a workaround other than closing XAML files?

[531 byte] By [wekempf] at [2008-2-4]
# 1

I'm sorry for the delayed response. This is a known limitation in the current state of the product, we have it as a future work item to implement better handling of locked files and the like. The workaround is just as you discovered, to close the designer.

chad

chadr-msft at 2007-9-8 > top of Msdn Tech,Visual Studio Orcas,WPF Designer (Cider)...

Visual Studio Orcas

Site Classified