早期ベータ(dnx)日からthis questionと同じように、私は.net core 1.0 rtmにコードを移植しようとしています。コードには次のようなものが含まれていますValidationAttributeタイプなど:.net core 1.0でデータアノテーションを使用できません
using System.ComponentModel.DataAnnotations;
namespace Hl7.Fhir.Introspection
{
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
public sealed class FhirElementAttribute : ValidationAttribute
...
このようなコードをdotnet core 1.0 rtmに移植するにはどうすればよいですか?
初期のベータ日の一部は、ユニット名がSystem.ComponentModel.Annotationsに変更されたことを示唆していますが、動作しません。 –
[this](https://www.nuget.org/packages/System.ComponentModel.Annotations/4.1.0-rc2-24027)を試しましたか? – lokusking
ああ、プレリリースビットですが、ドットネットRC2レベルのビットではありません –