Solved

Error building VS2105 solution from repository

Posted on 2017-04-11
1
61 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
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…

751 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