I'm trying to get NCrunch Grid Node running in connection with VS2022 and .Net 6.0.1.
After managing some errors I stuck on that message now:
NCrunch: v6.0.101 of the Dotnet SDK is being used by the NCrunch client, but this server is using v, which is the closest matching version found installed. This may cause issues with the build system. Consider installing v6.0.101 of the Dotnet SDK on this machine.
I'm not sure what "but this server is using v" means. The server has installed:
- VS Build Tools 2022
- .Net Framework 4.8 Developer Pack
- .Net SDK 6.0.101-win-x64 (so you see the needed SDK is installed)
- NCrunch GridNodeServer 4.11.0.2
Maybe the GridNodeServer cannot recognize the Version 6.0.101 of .Net?
This message can be shown if the grid node is unable to find the installation path of .NET.
There's been a few people posting about these issues with grid nodes. It seems that the way we've been using to find the Dotnet install path is not reliable, so probably we'll need to implement additional fallback scenarios.
If the server can't find the install path, it should still continue to work with the default version (which will be the latest version installed on the node). Do you experience any actual build errors when using this node? If not, the warning may be benign.
thanks for your reply. I still get the same error message (below). I think NCrunch is looking for files on a false place. On my local machine I've installed VS 2022 Enterprise and on the Grid Node Server I've installed the Build Tools 2022 that reside in a different folder. Maybe that's the rease the target "Build" cannot be found. Honestly - I don't know, what that "target Build" means in detail.
For me it's no option to install the whole VS 2022 Enterprise package on the build server. So maybe there are more configuration options to tell the grid node what paths to use?
Best regards
Andrei
****************** BUILD OUTPUT FROM 'BUILDSERVER2-AE' ******************
MA2.Core.csproj (0, 0): The target "Build" does not exist in the project.
NCrunch: v6.0.101 of the Dotnet SDK is being used by the NCrunch client, but this server is using v, which is the closest matching version found installed. This may cause issues with the build system. Consider installing v6.0.101 of the Dotnet SDK on this machine.
Often this can be caused by configuration differences between your client machine and the grid node, in which case the installed SDK directories may be different between machines. If you are experiencing consistent problems when building this project on the grid node, the missing files listed above are worth investigating as they may highlight SDKs required on the grid node that have not yet been installed. Please note that this is not necessarily an error case as projects very often build successfully on grid nodes with only a subset of the client machine's installed SDKs.
Andrei wrote:
For me it's no option to install the whole VS 2022 Enterprise package on the build server. So maybe there are more configuration options to tell the grid node what paths to use?
The installation path NCrunch is unable to find is that of the Dotnet SDK, namely, the directory that contains dotnet.exe on your machine. Usually this is under C:\Program Files\dotnet.
It's possible to target the search logic by setting the 'DOTNET_MSBUILD_SDK_RESOLVER_CLI_DIR' envionment variable on your machine to point to this path, for example:
I've quit investigation to get that running - it does not work with my setup. Maybe it will if you optimize the recognition of the .Net 6 Sdk ;) Thanks for your tries.
Andrei wrote:
I've quit investigation to get that running - it does not work with my setup. Maybe it will if you optimize the recognition of the .Net 6 Sdk ;) Thanks for your tries.
Sorry to hear this. Keep an eye out for the next build, as we have some work planned in this area.