.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

OutputPath and MSBuild

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net


I have a solution with 3 wdproj files to allow different deployments of our site.  I'm using NAnt with an MSBuild task to compile the solution file which in turn is building the deployment projects.  The problem I have is that the OutputPath property used by each of the deployment projects is inherited from the solution file which means I am getting the following error:

ASPNETCOMPILER : error ASPRUNTIME: The target directory is not empty, and does not appear to contain a previously compiled application. Please delete it manually, or choose a different target

Can anybody suggest what I can do to rectify this?  From what I've read it should be the solution file that gets compiled by MSBuild rather have each deployment project built separately.

By the way the solution contains a number of class libraries and a web application.

Thanks in advance.



View Complete Post

More Related Resource Links

MSBuild: Best Practices For Creating Reliable Builds, Part 2


Find out here how you can use MSBuild to better manage and control large build projects in Visual Studio.

Sayed Ibrahim Hashimi

MSDN Magazine March 2009

MSBuild: Best Practices For Creating Reliable Builds, Part 1


This article describes some basic practices and techniques that you can use in MSBuild to better manage and control your build projects in Visual Studio.

Sayed Ibrahim Hashimi

MSDN Magazine February 2009

Inside MSBuild: Compile Apps Your Way With Custom Tasks For The Microsoft Build Engine


Learn how you can use MSBuild to customize your builds. Since it ships as a part of the .NET Framework, you don't even need to have Visual Studio installed on your machine.

Sayed Ibrahim Hashimi

MSDN Magazine June 2006

How to use MSBuild in a MVC project?



I need to run a few tasks after building my MVC project.

I would like to use MSBuild but I am not sure how to integrate MSBuild with  my project.

I was searching online but not a lot of information. Are there MSBuild projects?



MSBuild on MVC Publish



I am publishing a MVC web site but I need to do some changes on the output. 

I am using MSBuild for that:

  <Target Name="Publish">
    <MSBuild.ExtensionPack.FileSystem.Folder TaskAction="Move" Path="$(OutputFolder)Styles" TargetPath="$(OutputFolder)Styles_Temp"/>

This is not taking any affect. 

Does anyone knows how to use MSBuild on the Publish target of a MVC Application?



Unable to deploy solution,getting "The OutputPath property is not set for project " error


Hi Guys,

I am having this configuation issue which I can't seem to resolve. When I am deploying my SP2010 solution to my farm Ii ge thi error mesage when I deploy a solution which contains output dll references.

Error 1 The OutputPath property is not set for project 'XXX.SharePoint2010.KnowledgeBase.Helper.csproj'.  Please check to make sure that you have specified a valid combination of Configuration and Platform for this project.  Configuration='Release'  Platform='AnyCPU'.  This error may also appear if some other project is trying to follow a project-to-project reference to this project, this project has been unloaded or is not included in the solution, and the referencing project does not build using the same or an equivalent Configuration or Platform. KnowledgeBaseSite

Any help would be appreciated.



SharePoint Developer
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend