Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Mike Gottlieb
@mikegottlieb
I see, so yeah the problem is that I’m now on netcore and need to invoke things differently
Well it seems that under net core things are just different
Rodney Littles II
@RLittlesII
Yeah. I’d love to understand your pain so we can make the process better.
Yes. They are.
I’ve not ported Xamarin Apps yet. Only greenfield on .NET Core
Mike Gottlieb
@mikegottlieb
Yeah definitely. So the first thing is that there isn’t an executable as far as I can tell
instead I need to invoke the dotnet and give it the path to xunit.console.dll
then I give it the path to my unit tests dll
so I’m not sure just overriding the toolpath would work, but maybe if I did it in the right way?
I saw some other cake libraries provided platform settings
Rodney Littles II
@RLittlesII
Can I reproduce this with any stock .NET Core Xamarin app?
Mike Gottlieb
@mikegottlieb
Something like that might help. I would say requiring the dotnet cli be installed is fine since the whole point of cake for people is that they want to be less dependent on IDEs
Probably, although I just tried to create one in VS4mac and there was no XF template that used a netstandard library lol
My setup is I have a Xamarin.Forms app. The shared code is in a netstandard 2.0 library. The unit tests project are also a netstandard 2.0 library.
Rodney Littles II
@RLittlesII
Are you in a position to post a repo that reproduces your issue? If not, I think I am going to try so I can have a more intelligent conversation about what the problem is and how to fix it.
Do you have targets with your unit test?
Mike Gottlieb
@mikegottlieb
I can’t share my current project, sorry.
Rodney Littles II
@RLittlesII
No worries
Mike Gottlieb
@mikegottlieb
not sure what you mean by targets?
Rodney Littles II
@RLittlesII
iOS xunit project and such
So you can test on device?
I’m walking into an afternoon of meetings. I’ll check back in in a moment
Mike Gottlieb
@mikegottlieb
oh, no. I’m writing tests against my shared code library. I do have a UI test project for testing some stuff on device. I’m having different troubles with my cake scripts for that.
I have a fairly limited amount of device specific code and a lot of it is using location services and background services so a bit tricky to truly test.
Gary Ewan Park
@gep13
@mikegottlieb @RLittlesII so I think I asked this the other day, but let me ask again, based on the discussion that you guys have just had....
sounds like you want to be using DotNetCoreTest, rather than the XUnit Aliases. Have you tried using that yet?
Mike Gottlieb
@mikegottlieb
That doesn’t work for other reasons
Or maybe I just didn’t provide additional settings to it that were required.
Gary Ewan Park
@gep13
Hmm, this sounds like something that needs to be investigated.
Mike Gottlieb
@mikegottlieb
It seems like when I invoke any of the DotNetCoreXYZ aliases in Cake my environment config is off.
Gary Ewan Park
@gep13
If you could create a small reproducible sample of the type of thing that you are trying to do, that would help immensely!
It would be good to know if this is somethign specific to configuration, or something that is off with the aliases that we have
I have now been using the DotNetCore Aliases for a number of addins that I am the maintainer of, which have tXUnit tests in them, and I haven't had any issues
Mike Gottlieb
@mikegottlieb
Well I know DotNetCoreBuild doesn’t work for a full Xamarin app because the device specific projects are not netstandard libraries.
Gary Ewan Park
@gep13
it could be the mixture of Xamarin that is causing problems, but without a sample to test against, not sure what else we can do
Mike Gottlieb
@mikegottlieb
And DotNetCoreMSBuild doesn’t work because the environment is missing settings that my Xamarin projects expect
But regular MSBuild works, so I’m using that
Invoking the DotNetCoreTest method I believe was failing to find xunit
Gary Ewan Park
@gep13
@Redth @RLittlesII are these sorts of issues that you guys have seen before?
Jonathan Dick
@Redth
i don’t think generally we can build xamarin projects with dotnet
unless you’re using the new project structure, which is a bit tricky with xamarin currently (though it’s possible)
Mike Gottlieb
@mikegottlieb
yeah, I thought maybe the whole dotnet msbuild hybrid could.
Martin Björkström
@mholo65
@/all I'll soon start preparing for 0.27.0 release. So this is your daily reminder to pin your Cake version.
Mike Gottlieb
@mikegottlieb
I still think it might be able to, it was just choking on some environment variable using in my ios and android project files
Jonathan Dick
@Redth
what’s in 0.27?
@mikegottlieb yeah you’re in uncharted waters i think at that point :D
Mike Gottlieb
@mikegottlieb
lol not surprising
Turns out half the time I am over in Xamarin land too
I’m on their slack all day bringing up things that they don’t consider
like that dev teams can’t afford to be forced to take version upgrades with tons of breaking changes every 3 months. Especially dev teams of 1.