Skip to content

Clean repository build results in: AsnXml regenerated files, be sure to check them in #101651

@bbartels

Description

@bbartels

Having followed the instructions here, attempting to build the runtime + libraries I ran into the following errors after running build.cmd clr+libs -rc Release. Upon a second attempt to compile, the build is successful. These two files evidently have some purpose as deleting them will regenerate them again. What is that purpose of these files, how am I suppose to deal with them? The error makes it sound like I am supposed to "check them in"(to git?). I presume that is not the case.

D:\dotnet\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AsnXml.targets(42,5): error : AsnXml regenerated files, be sure to check them in: D:\dotnet\runtime\src\libraries\Common\src\System\Security\Cryptogr
aphy\Asn1\AlgorithmIdentifierAsn.xml.cs [D:\dotnet\runtime\src\libraries\System.Security.Cryptography\src\System.Security.Cryptography.csproj::TargetFramework=net9.0-windows]
D:\dotnet\runtime\src\libraries\Common\src\System\Security\Cryptography\Asn1\AsnXml.targets(42,5): error : AsnXml regenerated files, be sure to check them in: D:\dotnet\runtime\src\libraries\Common\src\System\Security\Cryptogr
aphy\Asn1\SubjectPublicKeyInfoAsn.xml.cs [D:\dotnet\runtime\src\libraries\System.Security.Cryptography\src\System.Security.Cryptography.csproj::TargetFramework=net9.0-windows]
    0 Warning(s)
    2 Error(s)

My suggestion would be to:

  1. Either generate the files silently without failing the build or improve the message by stating that one would have to re-run the build
  2. Have a default .gitignore for these files for them not to pollute the git context or some guidance around how one is suppose to deal with the files

When following the instructions

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions