Questions tagged [xbuild]

XBuild is the Mono specific version of the MSBuild utility.

XBuild is Mono's implementation of msbuild and it allows projects that have an msbuild file to be compiled natively on Linux and OS X. xbuild has been part of the standard Mono distribution for some time now, but it is not 100% complete yet.

XBuild supports C# and VB.NET projects out of the box. It also supports ASP.NET Projects, both WebApplication and WebSite projects. It also supports custom tasks, targets, extension of the build system through Before/After* hooks (eg. Before/AfterBuild) and *DependsOn properties (eg. BuildDependsOn).

Microsoft open sourced MSBuild at GitHub and ported it to non-Windows platforms. Starting from Mono 5.0 release, xbuild has been obsolete and replaced by MSBuild.

Interestingly, XBuild was the code name of MSBuild when Microsoft worked on Visual Studio 2005 and .NET Framework 2.0.

138 questions
2
votes
1 answer

Python subprocess.popen fails when interacting with the subprocess

I have a python build script for a Xamarin application that I need to compile into different ipa's and apk's based on locale. The script manipulates the necessary values in info.plist and the Android manifest and then builds each of the versions…
Sune Kjærgård
  • 688
  • 6
  • 11
2
votes
1 answer

Convert code with using statements to fully-qualified names

How do I convert a file originally written with using directives to be completely fully qualified names? E.g. go from using System; using System.Collections.Generic; using System.Net; using System.IO; using System.Text; using…
theonlygusti
  • 11,032
  • 11
  • 64
  • 119
2
votes
0 answers

Error initializing task: Not registered task

I am trying to build an orignally-Windows/VisualStudio C# project on my mac. Specifically, I am trying to convert this chatterbot API to a dll so I can use it in my own C# files. $ xbuild ChatterBotAPI.csproj But I get all these errors: XBuild…
theonlygusti
  • 11,032
  • 11
  • 64
  • 119
2
votes
1 answer

Build .vcxproj on Linux using xbuild

I want to run a simple C script on Ubuntu like this: xbuild HelloWorld.vcxproj When I run the script, I get this error: HelloWorld.vcxproj: error : /opt/jetbrains/TeamCity/buildAgent/work/d4407e37ceba8427/Hel‌​loWorld/HelloWorld.v‌​cxproj: …
Manariba
  • 376
  • 6
  • 16
2
votes
1 answer

Mono / XBuild Invariant Language (Invariant Culture) vs. VS2015 MSBuild's Neutral Language

I'm trying to resolve 2 discrepancies between the output of: Windows 8 / Visual Studio 2015 / MSBuild and Debian 8.2 / Mono Version 4.6.2.0 / XBuild Engine Version 14.0 Both of these issues are detailed in this example repo here:…
DavidWaugh
  • 275
  • 2
  • 9
2
votes
1 answer

Compiling a solution with MonoDevelop or Cake/XBuild giving different results

I'm getting a different behavior when compiling a solution with MonoDevelop 5.1.0 and the same solution through a Cake script invoking XBuild. When compiling the solution with MonoDevelop, everything works fine. When compiling through my cake…
David Brabant
  • 41,623
  • 16
  • 83
  • 111
2
votes
1 answer

xbuild: No target found in the project. c# class lib

I am trying to compile a project using xbuild on Ubuntu 14.4 LTS. I have mono 4.2.3 and xbuild 12 The entire solution was previously building with mono on OSX, but a few changes have been made by my colleges (such as renaming of projects) and now…
Mark Jones
  • 1,461
  • 1
  • 14
  • 23
2
votes
1 answer

How to add a missing assembly reference for xbuild? (Mono/Linux)

We have a C# project that builds perfectly well in Visual Studio on Windows and in TeamCity. I try to build it like this on Linux, using Mono's xbuild: MONO_IOMAP=case xbuild BuildAll.sln The build fails, with 2 warnings and 7 errors, all of them…
Amedee Van Gasse
  • 7,280
  • 5
  • 55
  • 101
2
votes
1 answer

Entity Framework metadata artifact not embeded when using xbuild and mono

When I try and use EntityFramework and MySQL on a Linux or Windows environment I run into the following problem: Project 1: Contains EntityFramework edmx and logic to insert update data using the dbcontext class Project 2: References Project 1.…
Tjaart van der Walt
  • 5,149
  • 2
  • 30
  • 50
2
votes
1 answer

Can I call a MSBuild Task from Mono XBuild?

Can I call a MSBuild Task from Mono XBuild? http://msdn.microsoft.com/en-us/library/ms126274.aspx http://www.mono-project.com/Microsoft.Build
Simon
  • 33,714
  • 21
  • 133
  • 202
2
votes
0 answers

Error initializing task AspNetCompiler: Not registered task AspNetCompiler

I am trying to build my .NET 4.5.1 solution under Mono 4.0.1 but receive the error: Error initializing task AspNetCompiler: Not registered task AspNetCompiler However, I see that there is a AspNetCompiler.cs file in the mono…
2
votes
1 answer

Generate .NET documentation using Sandcastle HelpFileBuilder on ubuntu using xbuild

I have a travis CI workflow setup to build a sandcastle project. When running xbuild, I get the error given below. Can somebody help? I am using Ubuntu 14.04.3 LTS. $ xbuild SandcastleARM.shfbproj XBuild Engine Version 12.0 Mono, Version…
Vivek
  • 121
  • 1
2
votes
1 answer

Does xbuild really not implement the Move task?

Am I missing something, or does xbuild really not implement the task? I'm trying to build a cross-platform C# project using MSBuild files for everything so there will be less difference between Windows and Linux in our project, and my MSBuild…
rmunn
  • 34,942
  • 10
  • 74
  • 105
2
votes
1 answer

WebSharper error when building under Mac OS X

I'm trying to build a project using WebSharper under Mac OSX and I got the following error : Target WebSharperCompile: Compiling with WebSharper.. /Volumes/Data/Dev/Landmark_tools/packages/WebSharper.2.5.125.62/build/WebSharper.targets:…
Maxime Mangel
  • 1,906
  • 16
  • 18
2
votes
1 answer

Build csproj for MONO that requires dlls

I have a line of code that I got from a site called Zetcode, and in this to build the first example, I compile the code like this: gmcs -r:System.Windows.Forms.dll -r:System.Drawing.dll 01-simple-cs-example.cs -out:simple-sample.exe This builds the…
FilBot3
  • 3,460
  • 6
  • 33
  • 55