Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch does not work with MSBuild.Sdk.Extras based project.
dadhi
#1 Posted : Tuesday, November 20, 2018 10:23:33 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/21/2012(UTC)
Posts: 3
Location: Belarus

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
MSBuild.Sdk.Extras can be found here: https://github.com/onovo...s/blob/master/README.md

Here is the sample project (not mine): https://github.com/marti...ssPlatformPlugin.csproj

I was trying to use Extras to multitarget `Xamarin.iOS` in DryIoc and got the error with NCrunch. MSBuild build worked fine.

Here is the DryIoc.csproj at that time (now reverted): https://github.com/dadhi...src/DryIoc/DryIoc.csproj
Remco
#2 Posted : Tuesday, November 20, 2018 8:18:42 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,976

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi, thanks for sharing this problem.

Please note that right now Xamarin is not a supported platform under NCrunch (for building or test environments). We have performed no testing or integration in this area - https://www.ncrunch.net/support/frameworks.

If you'd like to see support added, you're very welcome to vote for this to be added through uservoice.
1 user thanked Remco for this useful post.
dadhi on 11/21/2018(UTC)
dadhi
#3 Posted : Wednesday, November 21, 2018 8:41:47 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/21/2012(UTC)
Posts: 3
Location: Belarus

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
Thank you @Remco.

I have re-checked that without Xamarin target, NCrunch understands Extras just fine.
This is enough for now, cause I can switch Off some frameworks in dev-mode (with NCrunch), and include everything back on CI (w/out NCrunch).

```
<Project Sdk="MSBuild.Sdk.Extras/1.6.61">

<PropertyGroup>
<TargetFrameworks Condition="'$(DevMode)' == 'true' ">netstandard2.0</TargetFrameworks>
<TargetFrameworks Condition="'$(DevMode)' != 'true' ">netstandard2.0;Xamarin.iOS10</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'Xamarin.iOS10'">
</PropertyGroup>

</Project>
```
1 user thanked dadhi for this useful post.
Remco on 11/21/2018(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download