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

Notification

Icon
Error

ASP.NET Core Build
fsdschmidt
#1 Posted : Tuesday, August 20, 2019 6:35:08 AM(UTC)
Rank: Member

Groups: Registered
Joined: 6/29/2016(UTC)
Posts: 24
Location: Germany

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

our two ASP.NET Core projects won't build at our grid node. Locally all is fine but at our build server we get the following error:

NCrunch: This project was built on server '...'
..\..\..\..\..\..\..\Program Files (x86)\Microsoft SDKs\TypeScript\3.5\build\Microsoft.TypeScript.targets (219, 5): The "CheckFileSystemCaseSensitive" task failed unexpectedly.
System.IO.FileNotFoundException: Die Datei oder Assembly "System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
Dateiname: "System.IO.FileSystem, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
bei TypeScript.Tasks.CheckFileSystemCaseSensitive.Execute()
bei Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
bei Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()


We don't use any TypeScript in the projects, so the error occurs from ASP.NET. If we change in csproj the used SDK from Microsoft.NET.Sdk.Web to Microsoft.NET.Sdk all is fine. Does anybody have another solution?

Regards,
Michael
Remco
#2 Posted : Tuesday, August 20, 2019 12:10:46 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi Michael,

Thanks for sharing this issue.

Deactivating TypeScript compilation under NCrunch is often worthwhile as it can improve performance and suppress issues like this. This in particular looks like a dependency issue on the grid node. Can you confirm if you're able to build this particular project on the grid node outside of NCrunch?
fsdschmidt
#3 Posted : Tuesday, August 20, 2019 1:56:49 PM(UTC)
Rank: Member

Groups: Registered
Joined: 6/29/2016(UTC)
Posts: 24
Location: Germany

Was thanked: 2 time(s) in 2 post(s)
Hi Remco,

how could I completely deactivate TypeScript under NCrunch? I could not find any setting for TypeScript.

The grid node is our build server which builds the same projects and afterwards does the same tests. The service user for grid node and build service is also identical. The grid node machine is able to build and test the projects outside of NCrunch.

Regards,
Micha
Remco
#4 Posted : Tuesday, August 20, 2019 11:20:50 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
Can you try adding the following line of code into the primary PropertyGroup in your project file?

<TypeScriptCompileBlocked Condition="'$(NCrunch)' == '1'">true</TypeScriptCompileBlocked>
fsdschmidt
#5 Posted : Wednesday, August 21, 2019 6:04:46 AM(UTC)
Rank: Member

Groups: Registered
Joined: 6/29/2016(UTC)
Posts: 24
Location: Germany

Was thanked: 2 time(s) in 2 post(s)
Thanks for your suggestion. I tried different PropertyGroups, also inside of the first imported props file. Unfortunately it has no effect, same build error.
fsdschmidt
#6 Posted : Wednesday, August 21, 2019 12:01:10 PM(UTC)
Rank: Member

Groups: Registered
Joined: 6/29/2016(UTC)
Posts: 24
Location: Germany

Was thanked: 2 time(s) in 2 post(s)
The problem has gone. I've just updated to the current server and client version of NCrunch and now everything is fine! Thanks for your support.

Regards,
Micha
Remco
#7 Posted : Wednesday, August 21, 2019 12:15:30 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 930 times
Was thanked: 1257 time(s) in 1170 post(s)
fsdschmidt;13784 wrote:
The problem has gone. I've just updated to the current server and client version of NCrunch and now everything is fine! Thanks for your support.


Great to hear! Thanks for confirming.
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.043 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download