xsd.exe 'path is too long after being fully qualified'

Hello all,

I am attempting to use xml schemas to generate a class. Is there a way to name the output file

For example:

When I run the following:

c:\xsd /classes /language:vb Assumption.Retirement.BenefitTypeSelection.xsd Assumption.Retirement.Dates.xsd Assumption.Retirement.DepositsRedeposits.xsd Assumption.Retirement.EstimateDescription.xsd Assumption.Retirement.Insurances.xsd Assumption.Retirement.LeaveProjection.xsd Assumption.Retirement.Pay.xsd Assumption.Retirement.SalaryEarningsProjection.xsd Assumption.Retirement.SurvivorBenefits.xsd Assumption.Retirement.Taxes.xsd Assumption.Retirement.WorkScheduleProjection.xsd DataStructures.Inputs.Retirement.Package.xsd DataStructures.Service.Breakdown.xsd DataStructures.Salary.History.xsd DataStructures.Salary.Earnings.xsd DataStructures.Service.History.xsd DataStructures.xsd /namespace:Assumption.Retirement.Package

I get the following error message:

The path is too long after being fully qualified. Make sure path is less than 260 characters.

Thanks in advance,




Answer this question

xsd.exe 'path is too long after being fully qualified'

  • ChicagoDave

    Unfortunately xsd.exe does not allow you to specify output file name, but there is bug in the tool that could be used to workaround the "path too long" issue. xsd.exe appends all input file names to form the output files name, there is a bug in the algorithm: if any of the input files contain path characters, the resulting output string gets reset to the input file name, so if you specify your last input as .\xxx.xsd, the name of the resulting output file will be xxx.cs.

    Hope it will work for you.

    Thanks, Elena


  • xsd.exe 'path is too long after being fully qualified'