Why does this Albacore msbuild task not allow you to copy this assembly of a web project?

We use Rake with Albacore for our build and deployment process in TeamCity. But my last solution has compilation issues. When I run the task msbuild, I get this error:

C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v9.0 \ WebApplications \ Microsoft.WebApplication.targets (60.3): error MSB3021: cannot execute copy file "bin \ admin.web.dll" to " C: / src / Trunk / admin / output / _PublishedWebsites \ web \ bin \ admin.web.dll. " Could not find file 'bin \ admin.web. dll. "

The build exit path for the website project is set to bin\. And it copies perfectly when created in Visual Studio. But building through rake does not work. My file has a rubile file for compilation :outdir, installed in 'output/_PublishedWebsites', and it copies all my other solutions.

This is a regional case, but it hurts me - does anyone have any ideas?

+3
source share
2 answers

Thanks for helping everyone, but this is not something special for the msbuild task. There were 3 web projects in the solution, and one of them had the bin directory included in the VS solution. All that I needed to do was to exclude from the solution, and the assembly and publication are beautiful - more blocking.

+2
source

msbuild?

, .

/p:WebProjectOutputDir: /output
/p:OutDir: /output/bin

ms build , , albacore, ;)

? ?

+1

Source: https://habr.com/ru/post/1762614/


All Articles