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?
0
10 comments

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.

0
Avatar
Permanently deleted user

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
0

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"?

0
Avatar
Permanently deleted user

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

0

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?

0
Avatar
Permanently deleted user

Sure!

Here it is

0
Avatar
Permanently deleted user

Sorry, I lost my image

 

0
Avatar
Permanently deleted user

0
Avatar
Permanently deleted user

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:

 
[13:48:36][Step 7/7] +++ PlatformId: .NETStandard,Version=v1.0
[13:48:36][Step 7/7] MscorlibPath: MISSED!!!
[13:48:36][Step 7/7]
[13:48:36][Step 7/7] +++ PlatformId: .NETStandard,Version=v1.1
[13:48:36][Step 7/7] MscorlibPath: MISSED!!!
[13:48:36][Step 7/7]
[13:48:36][Step 7/7] +++ PlatformId: .NETStandard,Version=v1.2
[13:48:36][Step 7/7] MscorlibPath: MISSED!!!
[13:48:36][Step 7/7]
[13:48:36][Step 7/7] +++ PlatformId: .NETStandard,Version=v1.3
[13:48:36][Step 7/7] MscorlibPath: MISSED!!!
[13:48:36][Step 7/7]
[13:48:36][Step 7/7] +++ PlatformId: .NETStandard,Version=v1.4
[13:48:36][Step 7/7] MscorlibPath: MISSED!!!
[13:48:36][Step 7/7]
[13:48:36][Step 7/7] +++ PlatformId: .NETStandard,Version=v1.5
[13:48:36][Step 7/7] MscorlibPath: MISSED!!!
[13:48:36][Step 7/7]
[13:48:36][Step 7/7] +++ PlatformId: .NETStandard,Version=v1.6
[13:48:36][Step 7/7] MscorlibPath: MISSED!!!
 
as opposite for the .Net Core:
 [13:48:36][Step 7/7] +++ PlatformId: .NETCoreApp,Version=v2.0.0.0
[13:48:36][Step 7/7] FrameworkDirectory: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.0
[13:48:36][Step 7/7] MscorlibPath: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.0\mscorlib.dll
[13:48:36][Step 7/7]
[13:48:36][Step 7/7] +++ PlatformId: .NETCoreApp,Version=v2.0.3.0
[13:48:36][Step 7/7] FrameworkDirectory: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.3
[13:48:36][Step 7/7] MscorlibPath: C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.3\mscorlib.dll
 
And finally it just says that it can build the project:
[13:48:41][Step 7/7] Referenced project 'Calastone.Aop.StructureMap' wasn't loaded, it's output assembly wasn't found either.
[13:48:44][Step 7/7] The SDK 'Microsoft.NET.Sdk' specified could not be found. D:\TeamCity\AgentCarter\work\18c9c0037c3ee55d\Aop.StructureMap\Calastone.Aop.StructureMap.csproj at (0:0)
[13:48:44][Step 7/7] Can't resolve reference Calastone.Aop.StructureMap: Output assembly for project 'Calastone.Aop.StructureMap' not found
 
Thanks for the help,
Marco
 
 
0

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

0

Please sign in to leave a comment.