Describe the bug
When using the dotnet cli, using dotnet run --project <project_name> and dotnet build --project Bioportal.API,
MSBuild Fails with error:
MSBUILD : error MSB1001: Unknown switch.. Sometimes it runs flawlessly without error and other times it says build failed.
I've tried starting new shell sessions, new terminal sessions, restoring projects, none seem to fix the error.
To Reproduce
Currently using MSBuild version 17.4.0-preview-22428-01+14c24b2d3 and .NET 7.0.100-rc.1.22431.12.
The full default commandline flags are: -maxcpucount, verbosity:m, -restore, -consoleloggerparameters:Summary.
Below that error, this information is shown:
Switches appended by response files:
Switch: --project`
Exceptions (if any)
MSB1001: Unknown switch
Further technical details
dotnet --info
.NET SDK:
Version: 7.0.100-rc.1.22431.12
Commit: f1cf61e1c0
Runtime Environment:
OS Name: fedora
OS Version: 36
OS Platform: Linux
RID: fedora.36-x64
Base Path: /usr/share/dotnet/sdk/7.0.100-rc.1.22431.12/
Host:
Version: 7.0.0-rc.1.22426.10
Architecture: x64
Commit: 06aceb7015
.NET SDKs installed:
7.0.100-rc.1.22431.12 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.0-rc.1.22427.2 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.0-rc.1.22426.10 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
IDE / Editor
Just using alacritty as terminal and zsh as shell. Error appears only in cli.
Describe the bug
When using the dotnet cli, using
dotnet run --project <project_name>anddotnet build --project Bioportal.API,MSBuild Fails with error:
MSBUILD : error MSB1001: Unknown switch.. Sometimes it runs flawlessly without error and other times it says build failed.I've tried starting new shell sessions, new terminal sessions, restoring projects, none seem to fix the error.
To Reproduce
Currently using
MSBuild version 17.4.0-preview-22428-01+14c24b2d3and.NET 7.0.100-rc.1.22431.12.The full default commandline flags are:
-maxcpucount,verbosity:m,-restore,-consoleloggerparameters:Summary.Below that error, this information is shown:
Switches appended by response files:
Switch: --project`
Exceptions (if any)
MSB1001: Unknown switch
Further technical details
dotnet --infoIDE / Editor
Just using alacritty as terminal and zsh as shell. Error appears only in cli.