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

Notification

Icon
Error

Directory.Build.props and ReferenceProject entries
b33rdy
#1 Posted : Thursday, October 7, 2021 9:59:30 AM(UTC)
Rank: Member

Groups: Registered
Joined: 6/28/2016(UTC)
Posts: 18
Location: United Kingdom

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

It seems as though NCrunch is losing referenced project references when they come from a Directory.Build.props file, rather than a .csproj file directly.

I've stripped a sample project back to about as bare-bones as possible to show what I'm trying to do... source is here:

https://github.com/kiero...h-directory-build-props

The long and the short of it is that NCrunch seems to lose location information about csproj, but VS, MSBuild, dotnet and ADO all seem to work (that's just an FYI to show I've tried other tools).
Remco
#2 Posted : Thursday, October 7, 2021 10:48:49 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 838 times
Was thanked: 1136 time(s) in 1062 post(s)
Hi, thanks for sharing this.

Unfortunately, we cannot support a use case where project references are defined in included imports (such as directory.build.props). This is because NCrunch's manipulation and workspacing only targets project files, and it's assumed that any project references will be defined in these project files. Sorry we cannot support this.
1 user thanked Remco for this useful post.
b33rdy on 10/7/2021(UTC)
b33rdy
#3 Posted : Thursday, October 7, 2021 12:54:55 PM(UTC)
Rank: Member

Groups: Registered
Joined: 6/28/2016(UTC)
Posts: 18
Location: United Kingdom

Thanks: 16 times
Was thanked: 5 time(s) in 4 post(s)
Ahh, well. Thanks for checking!

It's a shame, because it's a pattern that works really well on large projects (made up of many solutions, using the Directory.Build.props via a git submodule).
Remco
#4 Posted : Thursday, October 7, 2021 11:26:55 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 838 times
Was thanked: 1136 time(s) in 1062 post(s)
b33rdy;15693 wrote:
Ahh, well. Thanks for checking!

It's a shame, because it's a pattern that works really well on large projects (made up of many solutions, using the Directory.Build.props via a git submodule).


Sorry :( I understand the appeal. We've been wanting to do something similar for our project(s) too, but handling this involves busting through some very big abstractions .. and potentially causing some very big problems.
1 user thanked Remco for this useful post.
b33rdy on 10/8/2021(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.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download