Solved

Error building VS2105 solution from repository

Posted on 2017-04-11
1
32 Views
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.

Thanks.

resourcesys
0
Comment
Question by:resourcesys
1 Comment
 

Accepted Solution

by:
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" >
<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

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Join & Write a Comment

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?

685 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