我正在使用Visual Studio Team Services。我创建了一个简单的ASP.NET网站,并创建了包含默认设置的Build定义。
提交更改后,将使用CI触发构建。“构建解决方案”步骤可以正常工作,但是在“复制文件”步骤中找不到文件:
我已经为一个简单的控制台应用程序创建了相同的构建定义,并且该构建和发行版都可以正常工作。
When Creating a release from this build, it fails to deploy (i guess because no files are found in (Build process)) and gives the following error:
When you build Asp.Net project with a default VSBuild definition, the folder bin\$(BuildConfiguration)\
does not exist. So "Copy Files" task cannot find any files with the default settings. A simple way to fix your issue is add /p:outdir=$(build.artifactstagingdirectory)
in "MSBuild Arguments" for VSBuild task as following:
And you can also remove "Copy Files" task since "Publish Build Artifacts" task publishes the files in $(build.artifactstagingdirectory)
folder by default and you have set the build output to that folder with the argument added in VSBuild task.
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句