Unable to copy file, Access to the path is denied

Unable to copy file, Access to the path is denied
http://stackoverflow.com/questions/7130136/unable-to-copy-file-access-to-the-path-is-denied

MSB3061: Unable to delete file "binDebug<<DLLName>>". Access to the path '<<ReferencePNE>>' is denied.
http://social.msdn.microsoft.com/Forums/vstudio/en-US/40ed753e-47af-4638-8a72-1d607102a05c/msb3061-unable-to-delete-file-bindebugdllname-access-to-the-path-referencepne-is?forum=msbuild

Open the project file:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{0ACCB354-5358-4B4C-B9A8-5052716A1FE0}</ProjectGuid>
    <OutputType>WinExe</OutputType>
    <StartupObject>BidManager.GUI.My.MyApplication</StartupObject>
    <RootNamespace>BidManager.GUI</RootNamespace>
    <AssemblyName>BidManager.GUI</AssemblyName>
<GenerateResourceNeverLockTypeAssemblies>true</GenerateResourceNeverLockTypeAssemblies>
    <MyType>WindowsForms</MyType>
    <ApplicationIcon>ResourcesDomus.ico</ApplicationIcon>
    <OptionStrict>On</OptionStrict>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <DefineDebug>true</DefineDebug>
    <DefineTrace>true</DefineTrace>
    <OutputPath>binDebug</OutputPath>
    <DocumentationFile>BidManager.xml</DocumentationFile>
    <NoWarn>
    </NoWarn>
    <WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
  </PropertyGroup>

原文地址:https://www.cnblogs.com/sui84/p/6777097.html