Ignore duplicates from files generated with XSD tool

Hi,

We are currently using TeamCity with the DuplicateFinder tool from the ResharperCommandLine tools and we are having some issues skipping .cs files generated from xsd schemas from complaining as duplicates. We support several versions of the FpML standard, so there is some logic that is the same (or extremely similar) between the different versions.

Could you let us know if there is any way to skip these files? As a sample, the file that is getting generated looks like this:

//---------------------------------------------------------------------------------- 
// <copyright> 
// Copyright (c) Our Company
// All rights reserved. Consult your license regarding permissions and restrictions.
// </copyright>
//----------------------------------------------------------------------------------

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.18444
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System.Xml.Serialization;

// 
// This source code was auto-generated by xsd, Version=4.0.30319.17929.
// 

namespace SomeName.FpML511
{
    //------------------------------------------------------------------------------
    // <auto-generated>
    //     This code was generated by a tool.
    //     Runtime Version:4.0.30319.42000
    //
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
    //------------------------------------------------------------------------------

    using System.Xml.Serialization;

    // 
    // This source code was auto-generated by xsd, Version=4.8.3928.0.
    // 
   // 


    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.8.3928.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.fpml.org/FpML-5/reporting")]
    [System.Xml.Serialization.XmlRootAttribute("americanExercise", Namespace = "http://www.fpml.org/FpML-5/reporting", IsNullable = false)]
    public partial class AmericanExercise : Exercise
    {
       //The code for the class
    }

    //More classes from the converted schema
}

 

 

3 comments
Comment actions Permalink

Hi,

We are using the feature in our TeamCity server (2022.4.2 build108655) inside a build step with the "Duplicates finder (Resharper)" runner that is using the ReSharper CommandLine Tools version 2022.1.2, which is beyond the 2021.3 release mentioned in the article.

Does that mean that the tool is considered as deprecated for TeamCity as well? As far as the web interface can tell, nothing indicates it is deprecated (and certainly nothing was mentioned about the runner phasing away in the TeamCity release notes either).

0
Comment actions Permalink

Hi Olga. TeamCity relies on the ReSharper CommandLine Tool to find the duplicates. So the only option to have that functionality in TeamCity is to use an older version of the tool. The documentation and UI updates may follow soon. Here's a related issue in the TeamCity project: https://youtrack.jetbrains.com/issue/TW-75257

Cheers,
Anatoly

0

Please sign in to leave a comment.