tfsbuild - TFS Build can't find bin/Debug folder in MSDeploy task -


First of all, if I build the project using MSBuild through the command line then it works without any losses .

Am I able to determine that the source code is being generated for contentPath TFS is running.

  & lt; Target name = "deployRemote" & gt; ; & Lt; Exec WorkDirectory = "$ (MSDeployPath)" command = "msdeploy.exe -verb: sync - source: contentPath = & amp; quot; $ (MSBuildProjectDirectory) \ bin \ debug \ & amp; quot; ... & lt; / Goal & gt;   

TFS Errors:

  EXEC: FileOrFolderNotFound EXEC: type 'contentPath' and object of path 'C: \ one \ src \ MailChecker \ MailChecker \ bin \ debug \ 'can not be created. Exec: Could not find a part of the path? \\ \ C: \ a \ src \ MailChecker \ MailChecker \ bin \ debug \ EXEC: 1.   

Note: This target targets the creation of MSBuild post (which is initially commented in your csproj file) It is said within the

Is that TFS bin \ debug might be using a different production directory than in comparison? I am sure the output path in my project file was bin \ debug .. < / P>

@The Muffin

If this is your real name, then the reason for this is .

TFS outputs content to a simple bin directory, in which all your files can be skipped, with the exception of your website I A directory should be in a _PublishedWebsites like.

You will need to configure the TFS Build workflow so projects can be dumped into different build directories. I believe this is easy with new versions of TFS, although you will need to open and edit the TFS workflow that you use to build your software.

This is a frustrating aspect of TFS Build, because you have to check the TFS workflow and it will need to run to verify it, which fixes the problem.

I found this

TFS 2012 / .net 4.5 You can control this behavior by passing an MSBuild argument in your build definition / p: GenerateProjectSpecificOutputFolder = true < / P>

While I liked the full assumption of TFS, I think the other more mature building server (TEamCity, Go.cd, Jenkins) actually polish it in this regard. Because they just use MSBuild. So it's easy to test and is easier, because the result will be the same on the build server because it is on different developer machines. / Bouncing

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -