-
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
"Property is not valid" error caused by invalid values in rsp file #159
Comments
I don't know why I spent the whole day researching the problem only to find this similar issue right after I created one: It may solve my problem. I will try the solution and revert back. |
The solution from #158 did in fact resolve my problem with the p:VSTestTestAdapterPath property. It did not resolve my error with these two custom parameters -p:Company="MyCompany, LLC" I get the same error, but now related to the Company property
It is an easy solution for me to remove the comma from my property value. So this isn't stopping me anymore. But it may be something to consider improving in a future version. |
Please try this version |
Hi, It gives me german error messages but it means "Command or Argument ... not recognized `10:31:09 Starting: .NET SDK 7.0.100 "C:\Program Files\dotnet\dotnet.exe" test C:\TeamCity\buildAgent\work\be4e52c3f84f0214\3SS\M\Tests\IntegrationTests\IntegrationTests.csproj @C:\TeamCity\buildAgent\temp\agentTmp\3.rsp Befehl oder Argument "/noconsolelogger" nicht erkannt EDIT: It seems that with dotnet 7 the msbuild parameters are passed differently at the moment. microsoft/vstest#4014 |
Hi @danreg, We have related issue in our YouTrack. The issue related to the bug introduced in .NET SDK 7.0.100. I have already created the corresponding issue to .NET team: dotnet/sdk#28975. We are waiting the fix from their side. Please, check comments on YouTrack for a possible workaround for you problem and do not hesitate to ask us there. Long story short, to perform
|
@mchechulnikov awesome this works!!! I've spent so much time on googling and trying to find exactly this :) |
I am having the same problem as Issue 85
I am using the latest version of Team City [2022.04.1 (build 108575)] and the latest version of .net 6 SDK (6.0.301) so I am not sure why previous fixes are not working in my case.
I get the same "Property is not valid" error. Here is the errors from the log file:
I get the same error if I run the command manually on the server.
The property with the problem is this one:
If I remove that property, it also complains about the common in these two properties:
If I remove all three properties then the build is successful.
Here is the full contents of my rsp file that is generated by the plug in.
I could probably get by with removing the comma in the Company and Copyright properties, but VSTestTestAdapterPath appears to be something generated by the plugin.
I do believe it was working at one time, but I recently installed VS 2022 on the build server and that may or may not have contributed to the problem.
Please let me know if there is any other information that may be useful in resolving this issue.
The text was updated successfully, but these errors were encountered: