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
3
votes
1 answer

Compiling C# projects on Linux with dependencies

I am trying to compile OpenLR on Linux (Ubuntu) using Mono, however, I run into the problem of the compiler (xbuild) not being able to find the project's dependency, Itinero. I used nuget.exe to install Itinero, but it didn't work. I also tried…
Ibolit
  • 9,218
  • 7
  • 52
  • 96
3
votes
1 answer

How do you set the signing identity from xbuild?

I'm trying to get our jenkins set up and want the builds that come from it to be signed with a different identity than the Automatic Developer one. My current command looks like: /Library/Frameworks/Mono.framework/Commands/xbuild…
jjburka
  • 385
  • 3
  • 8
3
votes
0 answers

Android build succeeding with Xamarin Studio (OSX) but failing with XBuild

Title says it all really. I have a project that builds in Xamarin Studio on OSX but fails when I try and use xbuild to build it from the command line. I'm running /Library/Frameworks/Mono.framework/Commands/xbuild /t:Build /p:Configuration=Release…
Kevin Jones
  • 2,369
  • 16
  • 26
3
votes
0 answers

How to set the `OutDir` in the command link with Mono's xbuild.exe?

I'm trying to build a c# solution in msysgit (Windows) using the same build command that I would with msbuild: "C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe" /p:Configuration=Debug /p:OutDir="c:\projects\proudly\build"…
Byron Sommardahl
  • 12,743
  • 15
  • 74
  • 131
3
votes
1 answer

using Microsoft.VisualStudio.Web.targets from Mono?

In an attempt to use the TransformWebConfig and Package tasks from Microsoft.VisualStudio.Web.Publishing.targets in a Mono-based CI build, I took a dependency on the MSBuild.Microsoft.VisualStudio.Web.target NuGet package and updated my project file…
3
votes
0 answers

How can I use Mono's xbuild to build a TypeScript project on Linux?

I'm developing this project with Visual Studio on Windows, but I've had no problems compiling it with xbuild on Linux until I added some files that need to be built with TypeScript. Specifically, a set of .ts files are compiled to produce app.js,…
Tara McGrew
  • 1,987
  • 19
  • 28
3
votes
1 answer

Get Xamarin toolchain version information from command line

I want to ensure that the correct version of mdtool, mono, the sdk and xamarin.android/ios is installed on our CI environment. For that, my idea is to add a version check in the Jenkins/Ant Buildprocess which prevents the build from executing, if…
David Müller
  • 5,291
  • 2
  • 29
  • 33
3
votes
3 answers

xbuild failing with (.html) resource files

I'm having a problem getting xbuild to compile a web application project. We have some resource files, which are .html files. The one that's failing currently is 'KwasantCore\Resources\HTMLEventInvitation.html' The resource is defined in…
Rob
  • 26,989
  • 16
  • 82
  • 98
3
votes
1 answer

The assembly mscorlib.dll was not found or could not be loaded

Firstly, I've seen this question, and while the problem seems similar, it is not the same. I'm running a trimmed down mono, built without the 4.5 profile using ./configure --with-profile4=yes --with-profile4_5=no. I have an application that targets…
Cocowalla
  • 13,822
  • 6
  • 66
  • 112
3
votes
0 answers

How can I build WebSharper on Mono 3.0 on Mac?

WebSharper looks interesting, and Mono 3.0 is just out with F# 3.0. Apparently xbuild can build some MSBuild projects. Straightforward attempt at building a WebSharper clone on mono fails since FSharpHome is unclear. What's a good way to define…
Alexy
  • 1,520
  • 2
  • 16
  • 30
3
votes
0 answers

teamcity xbuild on linux

When I run my build it will fail with the following log: [14:14:45]Checking for changes [14:15:02]Publishing internal artifacts [14:15:02]Clearing temporary directory: /var/TeamCity/buildAgent/temp/buildTmp [14:15:02]Free disk space…
broersa
  • 1,656
  • 3
  • 16
  • 31
2
votes
2 answers

Running a .net executable from an msbuild project in a platform independent way

I'm working on a .NET library, and I want the build script to be so generic that it can run from both the MS .NET framework, and from a mono installation on a Mac/Linux machine. The problem here is running NUnit. I have downloaded the nunit…
Pete
  • 12,206
  • 8
  • 54
  • 70
2
votes
0 answers

xbuild compiles without errors but dont have .exe files?

Only For educational purposes. Basically I am trying to compile Juicy Potato exploit. I found a visual studio project from github and Now I am trying to compile it using mono xbuild, Although it compiles without any errors but I can't find the…
2
votes
3 answers

Downgrading MSbuild file from 4.0 to 3.5

I've got a heap of csproj files that were created with Visual Studio 2010 and targeted .NET 4.0. I am now trying to compile on Mono 2.6.7 with xbuild, however 2.6.7 can't compile verison 4 msbuild projects. (2.10.1 has no issues, which is what…
Michael Shimmins
  • 19,961
  • 7
  • 57
  • 90
2
votes
2 answers

The imported type is defined multiple times - only under xbuild on Mono 2.10.1

Having an issue where compiling some code that makes use of HttpContextBase is throwing the compile error: UserService.cs(13,26): error CS0433: The imported type `System.Web.HttpContextBase' is defined multiple times The offending line is: private…
Michael Shimmins
  • 19,961
  • 7
  • 57
  • 90
1 2
3
9 10