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)
-
0
- Clean the solution.
- Delete all bin and obj folders.
- Restart VS (and the computer).
- Build the solution.