Skip to content

Unknown switch #816

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zefek opened this issue Apr 2, 2025 · 1 comment
Open

Unknown switch #816

Zefek opened this issue Apr 2, 2025 · 1 comment

Comments

@Zefek
Copy link

Zefek commented Apr 2, 2025

Hello,

I try to use crank to .net 6.0 application but I get error uknown switch: Switch: --disable-build-servers
Full command is:
'C:\userfolder\AppData\Local\Temp\2\benchmarks-agent\benchmarks-server-31340\n3fxazep.mx0\sdk\6.0.428\MSBuild.dll -maxcpucount -verbosity:m -target:Restore --property:MicrosoftNETCoreAppPackageVersion=6.0.36 --property:MicrosoftAspNetCoreAppPackageVersion=6.0.36 --property:GenerateErrorForMissingTargetingPacks=false --property:RestoreNoCache=true --property:MicrosoftWindowsDesktopAppPackageVersion=6.0.36 --property:MicrosoftNETPlatformLibrary=Microsoft.NETCore.App -property:PublishDir=C:\userFolder\AppData\Local\Temp\2\benchmarks-agent\benchmarks-server-31340\dryiiqjo.upf\hello-sample\published -property:SelfContained=True -property:_CommandLineDefinedSelfContained=true -property:RuntimeIdentifier=win-x64 -property:_CommandLineDefinedRuntimeIdentifier=true -property:Configuration=Release hello.csproj --disable-build-servers'

I try hello sample from this repo but I switch .net from 8.0 to 6.0 version. With .net 8.0 there is not problem. I think --disable-build-servers switch comes with .net 7.

dotnet/sdk#25536

@sebastienros
Copy link
Member

Looks like we need to ignore this argument if tfm is lower than 8 then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants