I recently upgraded a C# project from xproj format to the new csproj. During the migration, the old AssemblyInfo.cs has been removed so I'm wondering how I can indicate that my library is clscompliant?
FYI: this is the attribute that was in the AssemblyInfo.cs:
[assembly:CLSCompliant(true)]

Just add AssemblyInfo.cs back, with only the parts that aren't autogenerated.
There's nothing to stop you from applying assembly attributes in code - it's just that most of the common attributes are provided from the project settings.
See more on this question at Stackoverflow