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

Notification

Icon
Error

netstandard support
kentcb
#1 Posted : Monday, July 11, 2016 11:44:53 PM(UTC)
Rank: Member

Groups: Registered
Joined: 2/10/2016(UTC)
Posts: 20
Location: Australia

Thanks: 5 times
Was thanked: 2 time(s) in 2 post(s)
Hi,

I just installed a package (Humanizer) and found that NCrunch cannot build my project:

Code:
DeviceDetailsViewModel.cs (9, 11): The type or namespace name 'Humanizer' could not be found (are you missing a using directive or an assembly reference?)


Looking into it, I found it's because Humanizer has moved to netstandard, as are a lot of other packages. If I install the previous version of Humanizer (2.0.1) which does not target netstandard, everything works as expected.

Is netstandard support something that is in the pipeline?

Thanks,
Kent
Remco
#2 Posted : Tuesday, July 12, 2016 1:00:10 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,135

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Kent,

Thanks for making me aware of this. This particular framework hadn't been on my radar. Based on its relationship to .NET Core (aka DNX), I would say I'll need to assess this when integrating with .NET Core. As such, you can probably consider it part of this work - https://ncrunch.uservoice.com/forums/245203-feature-requests/suggestions/8065623-support-dnx-projects.
jnm236
#3 Posted : Sunday, January 29, 2017 3:25:15 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/25/2015(UTC)
Posts: 57
Location: United States of America

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
I'm running into the exact same thing as well on VS2015 and NCrunch 3.3.0.6.

I downgraded Humanizer to 2.0.1 on all projects and it still says "The type or namespace name 'Humanizer' could not be found (are you missing a using directive or an assembly reference?)"
On a project referencing Entity Framework 6.1.3 it says "The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)"
On a test project it says "The type or namespace name 'NUnit' could not be found (are you missing a using directive or an assembly reference?)"

Any idea what's going on?

I'm using NuGet v3 (project.json) in all projects and they are all traditional net452 csprojs.
Remco
#4 Posted : Sunday, January 29, 2017 12:11:43 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,135

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi,

At the moment there is a known problem in v3.3 where for some reason, references that are declared via project.json don't seem to be correctly detected by NCrunch. This seems to be a new problem (v3.2 is OK).

I hope to get a fix out for this soon. Meanwhile, I recommend you declare your references in your project XML or stick with v3.2 until a fix is available.
jnm236
#5 Posted : Monday, February 6, 2017 10:27:32 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/25/2015(UTC)
Posts: 57
Location: United States of America

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
3.2 is fine. If I might ask for a tiny feature... some applications give you an option to "ignore this version" so that you don't have to click through upgrade prompts every time you open them.
Remco
#6 Posted : Monday, February 6, 2017 10:30:05 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,135

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
There is a way to switch it off :)

The 'Check for updates' global config setting.

I know it's not the same as what you're asking for, but I thought I'd check to make sure you knew about it.
jnm236
#7 Posted : Monday, February 6, 2017 10:44:38 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/25/2015(UTC)
Posts: 57
Location: United States of America

Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Thanks. My preference to know about shiny new bits will likely override. :')
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.050 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download