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

Notification

Icon
Error

Warning when trying to build .net standard projects on grid server
NeilMacMullen
#1 Posted : Wednesday, October 2, 2019 9:13:31 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 12/15/2016(UTC)
Posts: 55
Location: United Kingdom

Thanks: 29 times
Was thanked: 12 time(s) in 11 post(s)
Haven't just set up a grid server, it seems to be building code and running tests successfully but emits these warnings for projects that target .net standard...

Quote:

<Project name> : Unable to build .NET Core/Standard under the local system account

"NET Core and NET Standard projects can't be reliably built under a local system account."


Both grid node and local client are 3.31.03.

I don't see these warnings when building locally or if I remote into the machine hosting the grid server and run Ncrunch using the local server from VS.

I can manually hide the warnings but are they trying to tell me something I should be concerned about?




michaelkroes
#2 Posted : Wednesday, October 2, 2019 11:47:42 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
Hi thanks for posting!

If it works it should be fine, but that can change at any time.

When using NET Core or NET Standard it is advisable to run the NCrunch Grid Node Service under a different account or directly from the console. You can change the account used by changing the Log On As setting for the NCrunch Grid Node Service in the services control panel. That is accessible through services.msc.

You can also stop the service and start NCrunch.GridNode.Console.exe. This is similar to running NCrunch from inside Visual Studio. This allows you to access data under the local account or the UI.
1 user thanked michaelkroes for this useful post.
richev on 9/7/2020(UTC)
NeilMacMullen
#3 Posted : Wednesday, October 2, 2019 12:28:05 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 12/15/2016(UTC)
Posts: 55
Location: United Kingdom

Thanks: 29 times
Was thanked: 12 time(s) in 11 post(s)
Thanks Michael, will give that a try. Just curious what is actually going on to cause this warning though - is .net core only being installed per-user rather than per-machine?
1 user thanked NeilMacMullen for this useful post.
michaelkroes on 10/2/2019(UTC)
michaelkroes
#4 Posted : Wednesday, October 2, 2019 1:19:44 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 306
Location: Netherlands

Thanks: 138 times
Was thanked: 73 time(s) in 69 post(s)
You're welcome. :)

The problem is that the nuget cache is stored under Windows\System32, this can cause unexpected problems for some OS configurations. Generally it's not a good idea to store the cache there.
1 user thanked michaelkroes for this useful post.
NeilMacMullen on 10/2/2019(UTC)
NeilMacMullen
#5 Posted : Wednesday, October 2, 2019 3:03:27 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 12/15/2016(UTC)
Posts: 55
Location: United Kingdom

Thanks: 29 times
Was thanked: 12 time(s) in 11 post(s)
yikes - yes I see why now! ;-)
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.030 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download