Error building VS2105 solution from repository

Hi all,

I am setting up TeamCity for automated building of our code for a VS2015 solution.

The code compiles fine in VS2015 but when TeamCity tries to build it the following error occurs:

Website.metaproj error MSB3462: Either MetabasePath or VirtualPath must be specified

The limited suggestions I have seen on the web have no effect.

I know it is some sort of VS2015 configuration issue but I have no idea what.

Please help.

Thanks.

resourcesys
resourcesysAsked:
Who is Participating?
 
resourcesysAuthor Commented:
Hi all,

So, I now know that I have to use MSBuild and call a project file to be able to build the website, and thus verify all code builds correctly.

The MSBuild command would be as follows:

MSBuild.exe BuildApp.vbproj

And the project file would be as follows:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />

<Target Name="Build" >
<AspNetCompiler
VirtualPath="/$MyWebsite"
PhysicalPath="D:\MySolution\$MyWebsite"
TargetPath="D:\MySolution\$MyWebsiteTarget"
Force="true"
Debug="true"
FixedNames="true"
Clean="true"
/>
</Target>

</Project>

Open in new window


Thanks to anyone who took the time to read the question.

resourcesys.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.