[.NET] แก้ปัญหา Build แล้ว Error Your project file doesn’t list win as a RuntimeIdentifier

Blog ตอนนี้ยังเป็น Blog ที่สรุปหลังปรับ Framework ขององค์กรครับ จาก Blog ก่อนหน้าที่ Error “The build is configured to run SonarQube analysis but the SonarQube analysis targets could not be located” คราวนี้มาเจอ Error ใหม่ ที่มันกวนตีนกว่าเดิมครับ เพราะ มันเป็นบ้าง ไม่เป็นบ้าง และถ้า Build ผ่านตัว Visual Studio ไม่เจอนะ แต่ถ้า Build ผ่าน Command line พบเจ้า Error โผล่มาครับ Your project file doesn’t list ‘win’ as a “RuntimeIdentifier”. You should add ‘win’ to the “RuntimeIdentifiers” property in your project file and then re-run NuGet restore. ปัญหานี้เกิดจากอะไร การแก้ไขหละ ทำอย่างไร ? Reference





