Error in code inspection in TeamCity
I have version 10.0.4 of TeamCity, and I have a project in ASP.NET 2.0 core, and everything is
fine, but when I configure code inspection with resharper, an error occurs that no longer allows
to continue, the error is as follows:
Output xml from InspectCode is not found or empty on path C:\BuildAgent\temp\buildTmp\inspectcode-report-4725866146722843490.xml
Can you herlpme?
Please sign in to leave a comment.
Hi Angel,
please, make sure to check the documentation on code inspection for .net projects here: https://confluence.jetbrains.com/pages/viewpage.action?pageId=74844963
Also please take into account that dotnet core being so new, you might want to install newer versions of the resharper tools into teamcity to cover the new stuff it has.
Hi Denis
Install TeamCity in its latest version (2017.1.5). My project is made in asp.Net core 2.0. with VS2017.
I already followed the whole session as it is on the official TeamCity page for code inspection,
however, I still have an error, although now it is a bit clearer, the error is as follows:
The default XML namespace of the project must be the MSBuild XML namespace.
If the project is created in the MSBuild 2003 format,
add xmlns = "http://schemas.microsoft.com/developer/msbuild/2003" to the <Project> element.
If the project was created in the old 1.0 or 1.2 format, convert it to the MSBuild 2003 format.
C:\BuildAgent\work\...\src\...\project.csproj at (1: 1).
which seems a bit clearer, since the structure of the xml between VS2015 and VS2017 changed,
but I would like to know if in future releases this could be solved
Thanks for the help
Hi Angel,
I feel like the issues are different. The first one mentions not being able to find the inspections result file, while this one complains about the format of the project file. After fixing the issue with the csproj file, did you manage to make it work? What is the current issue that "could be solved"?
Hi Denis,
Yes, they are two different disadvantages.
The first is TeamCity 10.0.4, mounted on a Windows 2008 R2 server.
The second one is TeamCity 2017.1.5, in windows server 2016.
The project, in both cases, is VS2017 with Core 2.0.
In the last problem if I add and remove, from the .csproj file, as it is requested so that R # can perform the code inspection, then my project no longer compiles, since one of the things that it asks to remove from the file are the versions of the dlls. If I leave it as it was, R # can not perform the code inspection. I really have not been able to solve any of both errors
For 10.0.4, I'm afraid that dotnet core 2.0 was not available and is unlikely to work, you might need to upgrade the integrated resharper tools for it to actually work properly.
For 2017.1.5, it should definitely be supported, but the error message seems to indicate that the xml format is different than expected. Could you share a screenshot of the configuration of the build step where this fails?
Sure!
Here it is
Sorry, I lost my image
Hi,
I'm also having an issue with the code inspection for a .Net Standard project.
I'm using Teamcity 2017.2 (build 50574) and .Net Core SDK 2.1.2.
When setting the inspection there's no choice for any of the .Net Core or Net Standard Frameworks, the project builds fine using the CLI plugin, but when running the inspections it just says that it can't build the project (but it builds the test project which in .Net 4.6.1)
In the logs i can see that the .Net Standard is not loading:
Currently ReSharper CLT does not support MSBuild from .NET Core SDK and requires MSBuildTools. See details in: https://youtrack.jetbrains.com/issue/TW-51614#focus=streamItem-27-2903669-0-0