Build/Test Issues

ASP.NET Core Build

Started by fsdschmidt on 2,400 views

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
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?
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
Can you try adding the following line of code into the primary PropertyGroup in your project file?

<TypeScriptCompileBlocked Condition="'$(NCrunch)' == '1'">true</TypeScriptCompileBlocked>
Thanks for your suggestion. I tried different PropertyGroups, also inside of the first imported props file. Unfortunately it has no effect, same build error.
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
fsdschmidt 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.

Post a reply

Log in to reply.