Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Application.dll could not be found on Release mode #4628


User avatar
0
fguo created

I am working on Core+Angular v5.0.6. It works fine on DEBUG mode. While I publish the Core part, or just build it on Release mode, it pops up errors as following. I searched the files, and found the Application\bin\Release\net461\ and Web.Core\bin\Release\net461\ folders are empty. What did I miss?

Severity Code Description Project File Line Suppression State Error CS0006 Metadata file 'C:\Project\aspnet-core\src\Project.Application\bin\Release\net461\Project.Application.dll' could not be found Project.Web.Core C:\Project\aspnet-core\src\Project.Web.Core\CSC 1 Active Error CS0006 Metadata file 'C:\Project\aspnet-core\src\Project.Application\bin\Release\net461\Project.Application.dll' could not be found Project.Tests C:\Project\aspnet-core\test\Project.Tests\CSC 1 Active Error CS0006 Metadata file 'C:\Project\aspnet-core\src\Project.Application\bin\Release\net461\Project.Application.dll' could not be found Project.Web.Host C:\Project\aspnet-core\src\Project.Web.Host\CSC 1 Active Error CS0006 Metadata file 'C:\Project\aspnet-core\src\Project.Web.Core\bin\Release\net461\Project.Web.Core.dll' could not be found Project.Web.Host C:\Project\aspnet-core\src\Project.Web.Host\CSC 1 Active Error CS0006 Metadata file 'C:\Project\aspnet-core\src\Project.Application\bin\Release\net461\Project.Application.dll' could not be found Project.Web.Public C:\Project\aspnet-core\src\Project.Web.Public\CSC 1 Active Error CS0006 Metadata file 'C:\Project\aspnet-core\src\Project.Web.Core\bin\Release\net461\Project.Web.Core.dll' could not be found Project.Web.Public C:\Project\aspnet-core\src\Project.Web.Public\CSC 1 Active


1 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team
    1. Clean the solution.
    2. Delete all bin and obj folders.
    3. Restart VS (and the computer).
    4. Build the solution.