We have a requirement to migrated the ASP .Net web app from .Net framework 3.5 to 4.6.2. I have migrated the application to frame work 4.6.2 and able to run the application.
problem comes here when publishing the code. I am getting an error:
Copying file obj\Debug\Project.dll to obj\Release\Package\PackageTmp\obj\Debug\Project.dll failed
in migrated (frame work 4.6.2) code, however i don't see any error when publishing the old code(frame work 3.5). i have tried many things:
- delete the Obj folder from the solution
- ran msbuild.exe command to publish (custom msbuild xml)
- restarted the IDE(VS2015)
- restarted machine
What else should i do?
Error When tried from VS : Publish
Error Copying file obj\Debug\Project.dll to obj\Release\Package\PackageTmp\obj\Debug\Project.dll failed. Could not find file 'obj\Debug\Project.dll'
When tried from custom msbuild
Build FAILED.
"\Build1.xml" (default target) (1) -> "project.csproj" (default target) (2) -> (_CopyWebApplicationLegacy target) -> C:\Program Files\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microso ft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "js\id le-timer.js" because it was not found.
C:\Program Files\MSBuild\Microsoft\VisualStudio\v14.0\WebApplications\Microso ft.WebApplication.targets(182,5): error MSB3030: Could not copy the file "js\jq uery-idleTimeout-iframes.min.js" because it was not found.
0 Warning(s) 2 Error(s)