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

Notification

Icon
Error

Build issue
MaxRonin
#1 Posted : Monday, July 13, 2020 4:40:20 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/18/2016(UTC)
Posts: 32
Location: Austria

Thanks: 11 times
Was thanked: 3 time(s) in 3 post(s)
Hi,

I also submitted an in-app bug report, so maybe this is duplicated, but I didn't find any corresponding post. (As a side-note: would be nice if the submit tool displayed the URL where the bug went).

I got a strange build problem. NCrunch complains:
Quote:
Unable to find built assembly. Checked locations:
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Debug\netcoreapp3.1\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\debug\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\debug\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\debug\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\debug\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\debug\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\debug\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\debug\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\debug\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\debug\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\debug\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\debug\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\debug\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\bin\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\debug\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\debug\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\debug\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\debug\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\debug\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\debug\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\debug\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\debug\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\debug\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\debug\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\debug\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\debug\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Debug\netcoreapp3.1\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Debug\netcoreapp3.1\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Debug\netcoreapp3.1\Deon.GatewayApis.CommonServices.lib
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Debug\netcoreapp3.1\Deon.GatewayApis.CommonServices.dll
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Debug\netcoreapp3.1\Deon.GatewayApis.CommonServices.exe
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Debug\netcoreapp3.1\Deon.GatewayApis.CommonServices.lib



WARNING - ..\..\..\..\..\..\Users\markh\.nuget\packages\microsoft.sourcelink.common\1.0.0\build\Microsoft.SourceLink.Common.targets (52, 5): : Source control information is not available - the generated source link is empty.



When I check the corresponding directory, then I find that the dll it's not finding is in:
Quote:
C:\Users\markh\AppData\Local\NCrunch\17620\10\prototyping\gateways\Deon.GatewayApis.CommonServices\bin\Debug\netcoreapp3.1\bin


Note the extra "bin" at the end. I have no idea why it's there, though. I didn't do anything special. In fact I got plenty of projects with the exact same structure that have no problems. The csproj file is also pretty simple:

Quote:
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\shared\Deon.CommonServices\Deon.CommonServices.csproj" />
</ItemGroup>
<Import Project="..\..\.paket\Paket.Restore.targets" />
</Project>


Visual Studio and dotnet both build the solution including the project just fine.
I've cleaned the NCrunch cache directory and restarted the computer, no change.

This is really a bit of a blocker for me right now, so any help would be greatly appreciated.

Thanks,
Mark
Remco
#2 Posted : Tuesday, July 14, 2020 12:13:14 AM(UTC)
Rank: NCrunch Developer

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

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

Thanks for sharing this issue.

Something in your build configuration is causing the binary to be output in an unexpected location. NCrunch then cannot find it.

Is there perhaps something in the Paket.Restore.targets file that might be doing this?

Are you able to build a sample project that can reproduce the issue?
MaxRonin
#3 Posted : Tuesday, July 14, 2020 10:47:38 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/18/2016(UTC)
Posts: 32
Location: Austria

Thanks: 11 times
Was thanked: 3 time(s) in 3 post(s)
It may take me a few days to come back to you, I'm a bit under pressure currently. But I will, I'd like to get to the bottom of this.
MaxRonin
#4 Posted : Wednesday, July 15, 2020 11:45:43 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 3/18/2016(UTC)
Posts: 32
Location: Austria

Thanks: 11 times
Was thanked: 3 time(s) in 3 post(s)
Weirdly, this has gone away moving stuff to a new library project. I have a hunch that this has to do with the offending library project having been created via the VS wizard, while the others without problems are basically copies of a template project.

I will try to reproduce this within the next few days, hopefully by latest next week.
Remco
#5 Posted : Wednesday, July 15, 2020 12:46:11 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
MaxRonin;14877 wrote:
Weirdly, this has gone away moving stuff to a new library project. I have a hunch that this has to do with the offending library project having been created via the VS wizard, while the others without problems are basically copies of a template project.

I will try to reproduce this within the next few days, hopefully by latest next week.


Thanks! There is a good chance that doing this may provide you with a workaround to the problem too. Let me know if you discover anything further.
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.076 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download