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
0
votes
0 answers

Windows xbuild CS2011 error - Unable to open response file: C:\Program

It's the latest mono release on this date. This appears when running build from TeamCity. Seems like it dosn't work when Mono is installed to directory with spaces in path. The installer does not allow to specify another directory. mklink did not…
Vlad
  • 3,001
  • 1
  • 22
  • 52
0
votes
1 answer

CentOS 6 .sln xbuild compilation error (SteamBot)

I recently just started using linux and I'm not very familiar with some of the errors or commands. I keep getting the following error and really can't understand why "/home/steambotv1.0/SteamBot-master/.nuget/../.ci/exec-with-retry.sh: No such file…
Dan Usman
  • 21
  • 2
0
votes
2 answers

csproj from VS2008 fail to compile with mono xbuild

I use Mono 2.6.4 compiled from source on CentOS to compile a VS2008 project in C#. Some csproj compile, but this one doesn't, here is the output of xbuild /t:detailed : /opt/mono-2.6.4/lib/mono/2.0/Microsoft.CSharp.targets: error : Error executing…
hokkos
  • 500
  • 6
  • 17
0
votes
1 answer

Is there xbuild /t:Package support? (TravisCI)

(somewhat related issue) TravisCI supports C# builds and Elastic Beanstalk deployments. Cool. But I can't get the Package target to build my zip file that gets deployed into EBS IIS. My .travis.yml file looks like: language: csharp solution:…
crazy4groovy
  • 125
  • 1
  • 5
0
votes
1 answer

How to pass variable in a project file to the "MSBuild" task

We are using a project file, which then calls MSBuild task. For example, In the project file I now define a variable which I want to pass to MSBuild task.
Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43
0
votes
2 answers

building xbuild into visual studio addin

im looking for a way to implement a addin that can convert a C# solution into a mono compiled exe, so i can use it on a linux and mac environment that have the mono framework installed.
caesay
  • 16,932
  • 15
  • 95
  • 160
0
votes
1 answer

Rename app.config

I have two projects, that use the same code in the same location, but use different dependencies and app.config files, and both projects compile to the same exe name. Currently, I have a PreBuild script configured, that copies the correct file from…
Residuum
  • 11,878
  • 7
  • 40
  • 70
0
votes
1 answer

How to make XamarinStudio generate object files into a seperate directory?

Let's take this one by example. I'm developing on linux and using XamarinStudio for all of my .NET projects. I like it more than having VisualStudio running in the virtual machine. I have a solution that has several projects in it, that looks like…
user2102508
  • 1,009
  • 11
  • 23
0
votes
0 answers

xbuild acting different when called from Xcode

Our Xcode project needs to compile a few C# projects as a build phase. The xbuild command line call is acting different when run from Xcode instead of from Terminal xbuild /property:configuration=Mono Plug-ins/MyTestPlugIn.sln When run from…
Steve Baer
  • 101
  • 4
0
votes
1 answer

xbuild , googleplayservices - errors

I am trying to use xbuild to build using command line on a mac os box - the build is for android, the app contains a reference to 'GooglePlayServicesLib' , 'Xamarin.Android.Support.v4' and a few other libraries. However when the application tries…
Raj
  • 77
  • 2
  • 10
0
votes
1 answer

I am trying to build a msbuild project for xbuild but it keeps failing

I have a vb.net project that i would like to build using travis ci but travis only runs on linux so I have to use xbuild. I have the build log here. Can anybody tell me why the build is failing with this error? Error executing tool '/usr/bin/vbnc':…
Stephie
  • 3,135
  • 17
  • 22
0
votes
4 answers

Error building C# Solution using xbuild (mono)

I've searched the depths of the internet and I cannot find an answer or workaround for this problem. I have no idea either what is causing it. I keep getting the error in Xamarin Studio: Error: Error building target GetReferenceAssemblyPaths: UNC…
Anthony
  • 81
  • 1
  • 6
0
votes
2 answers

How to exclude some projects from building?

I have X projects in solution: AllPlatformProject1, AllPlatformProject2... ProjectOnlyForWindows1, OnlyForWindows2... ProjectNotLinux1, ProjectNotLinux2... I want to exclude "OnlyForWindows" and "NotLinux", but how? I want to use xbuild and be able…
0
votes
1 answer

Named argument `allowPrereleaseVersions' cannot be used for a parameter which has positional argument specified

Trying to build NuGet on mono and getting: error CS1744: Named argument `allowPrereleaseVersions' cannot be used for a parameter which has positional argument specified running: xbuild Build/Build.proj /p:Configuration="Mono Release" /t:GoMono ||…
cnd
  • 32,616
  • 62
  • 183
  • 313
0
votes
1 answer

How to fix "the command line is too long" when compiling licx (lc.bat) with Mono xbuild

I have a pretty large solution. The parent project that loads everything has lots of references and what not to make sure everything is being loaded. I also have a licx file for a third party dll we use. This all works fine in visual studio.…
Mark
  • 5,223
  • 11
  • 51
  • 81
1 2 3
9
10