Error building VS2105 solution from repository

Posted on 2017-04-11
Medium Priority
Last Modified: 2017-04-13
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.


Question by:resourcesys
1 Comment

Accepted Solution

resourcesys earned 0 total points
ID: 42092108
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" >


Open in new window

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


Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

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.

Join & Write a Comment

SingleRun is a tool that ensures that only one instance of an application is started, running it again brings the application to focus.
Why WooCommerce is one of the majorly favored choices when it comes to having an eCommerce store. This article will acquaint you with some reasons that I believe make it one of the best eCommerce platforms available.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Introduction to Processes

585 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question