-
Notifications
You must be signed in to change notification settings - Fork 25
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
Problem parsing .rsp with .NET SDK 6.0.301 #158
Comments
+1 on this, I've also just updated to latest version of .net 6 (6.0.301) and have started seeing this issue in Linux/Debian:
When looking at
When I modify it to the below:
And then run the same command via bash, it works ok, but next time I run a build on TeamCity the 1.rsp file re-generates and the same problem occurs. |
This seems to have been reported to the main dotnet sdk repo dotnet/sdk#26026 |
Could you please uprade the .NET plugin for TeamCity 2022 |
That's worked @NikolayPianikov - many thanks! |
Thanks, but even with this update the build fails when the build configuration name contains a comma.
error:
|
NikolayPianikov We use sentinelOne, and after installing the ".NET plugin" you mentioned, sentinelOne classifies it as ransomware due to its behaviour. Is this something you can comment on? |
@loop-evgeny please try this plugin |
@SRYER What program did this classification? .NET plugin doesn't have such feature |
That works with a comma in the build configuration name, thanks! It's URL-encoded in the 1.rsp file now:
|
We are currently on TeamCity 2020.2.4. Would the above plugin work for it or could you post a version for TC 2020.2? Thanks. |
As a workaround, currently I add a global.json file in my solution to specify a particular .NET SDK version other than 6.0.301, then everything works again. The global.json file can be removed after this issue gets solved. |
A hint to the readers of this issue (which I missed first): the |
I've tried the new plugin but I'm having issues with multiple Nuget package sources. I tried to URL encode the semicolon separator but it looks like Team City parses the list and replaces my URL encoded semicolons with regular semicolons. Any workarounds for that or should I just force to SDK 6.0.300 instead? |
@schwede what command are you using? |
restore |
I'm getting the same issue with .NET restore, I pass in a Nuget.config file and get an error with the urls being passed as switches.
|
@NikolayPianikov Can you explain how to install the plugin please? |
Administration -> Plugins -> [Upload plugin zip] Then restart server as prompted. |
same issue here. about to install TeamCity upgrade. I am hoping this does not cause further issues. All of our builds broke using 6.0.300 |
It looks like the root cause in dotnet/sdk#26026 is fixed as of .NET 6.0.303. I installed the latest version of .NET (6.0.400) and deleted my global.json workaround -- everything's working as expected now. |
When I try to start a build I get this:
dotnet restore
Starting: .NET SDK 6.0.301 "C:\Program Files\dotnet\dotnet.exe" restore B:\BuildAgents\work\d1489dc070d6d243\MSBuildTasks.sln --source https://api.nuget.org/v3/index.json --source https://localhost:8111/httpAuth/app/nuget/feed/_Root/default/v2 @b:\BuildAgents\BuildAgent3\temp\agentTmp\1.rsp
in directory: B:\BuildAgents\work\d1489dc070d6d243
MSBUILD : error MSB1006: Property is not valid.
Switch: B:\BuildAgents\BuildAgent3\plugins\dotnet\tools\vstest15
For switch syntax, type "MSBuild -help"
Process exited with code 1
This started happening once I updated BuildTools to 17.2.4, which includes said SDK.
The text was updated successfully, but these errors were encountered: