Repository navigation
[build] Fixes needed to build Xamarin.Android.sln with 'dotnet build' - #6390
Conversation
57b12d3 to
766305e
Compare
|
This seems to work <Target Name="Test">
<Message Text="$([System.IO.Path]::DirectorySeparatorChar)" />
</Target>So we might be able to setup a property which contains |
|
@dellis1972 about I find it's used most often in dotnet/sdk, and they're not using |
|
It seems like always using The only quirk I found is that if you are starting a relative path with Works: Doesn't work: |
|
Some questions:
What's the expected "strategy" here? |
|
I have it building locally with I think which strategy we eventually decide to do will come down to if we intend to continue supporting building with These fixes seem rather trivial and compatible with the current system, so I think we should go ahead and commit them. |
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Some fixes that were required to get
Xamarin.Android.slnto build withdotnet buildon Mac:Largely this is just path separator fixes for instances where .NET's
msbuilddoesn't fix paths that Mono'smsbuilddoes.Additionally change
api-compatto run ondotnetwhen building withdotnet build. Mono allows you toProcess.Start ("blah.exe")and it will automagically change it to"mono blah.exe"behind your back. .NET doesn't do this, so we need to explicitly callmonoordotnetwhen running on .NET. We went withdotnetas long as we were making changes anyways.Note: This is not an exhaustive PR of needed changes, but combined with #6388 it's pretty close.
Also note: This does not attempt to eliminate Mono from the build, targets that
<Exec>out to run.exeprocesses (likeapi-merge.exe) still use Mono.