[Mono-list] xbuild and relative paths

Timotheus Pokorra timotheus.pokorra at solidcharity.com
Tue Oct 25 10:48:16 UTC 2016


Hello Cyd,

> Unfortunately the build fails with the following error: Access to the path
> "/data" is denied.
>
> I don't have permissions to that root path "/data", but I do have
> permissions to the subfolders UNDER /data where the .sln file is located.
> Is it possible to force xbuild to use relative paths instead?

xbuild works fine with relative paths, but /data is an absolute path
in the Linux world.
If it was just data or ../data or something, that would be a relative
path, and it should work as expected.

I am usually using sed during the build process to replace things in
the csproj file and put it into shape, so that it works on Linux. You
could replace /data with data, and see how that works.
sed -i "s#/data#data#g" my.csproj

All the best,
Timotheus


More information about the Mono-list mailing list