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

Notification

Icon
Error

Cannot run due to Import in C# Project file
WilliamBowsher
#1 Posted : Thursday, June 22, 2023 2:01:10 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/16/2019(UTC)
Posts: 2
Location: Netherlands

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
Currently I am getting the following error:
An exception was thrown in the remote environment: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.IOException: The path 'C:\dev\Interaction\Interaction-Core-7-Plus\core\.msbuild\*.props' could not be processed because it is not of legal form

I think this is caused by the following lines being present in the project file

<Import Project="$(SolutionDir).msbuild\*.props" />
<Import Project="$(SolutionDir).msbuild\*.targets" />
<Import Project="$(ProjectDir).msbuild\*.props" />
<Import Project="$(ProjectDir).msbuild\*.targets" />

Specifying a wildcard is valid as per the documentation

https://learn.microsoft....nt-msbuild?view=vs-2022

Is there anything I can do to navigate around this so I can use NCrunch?
Remco
#2 Posted : Friday, June 23, 2023 2:15:59 AM(UTC)
Rank: NCrunch Developer

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

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

I've managed to squeeze a fix for this in the version of NCrunch released today (v4.17).

Could you give it a try and let me know if this solves the problem for you?
1 user thanked Remco for this useful post.
WilliamBowsher on 6/23/2023(UTC)
WilliamBowsher
#3 Posted : Friday, June 23, 2023 6:20:06 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 2/16/2019(UTC)
Posts: 2
Location: Netherlands

Thanks: 1 times
Was thanked: 1 time(s) in 1 post(s)
All working again, Thanks for the super fast turnaround. Keep up the great work.
1 user thanked WilliamBowsher for this useful post.
Remco on 6/23/2023(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.027 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download