PDA

مشاهده نسخه کامل : مشکل .netframe work در کد نویسی سی شارپ GTA V scripthook.net



salpc
04-07-19, 13:39
درود
اول visual studio 2019 رو نصب کردم خیلی سنگین بود و بعضی گزینه ها رو نداشت رفتم نسخه 13 رو نصب کردم . یه ماد واسه gta V هست.
این فایل رو از gta میخوادscripthook v.net.dll به Refrences اضافه میکنم ولی این ارور رو میده
نکنه مشکلش از این هست که قبلا نسخه 19 نصب بوده حالا نسخه 13 نصب کردم خراب شده؟؟
حالا این ارور رو میده:

Warning 1 The primary reference "ScriptHookVDotNet2" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5". Spawn Dogs




Warning 2 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ScriptHookVDotNet", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. Spawn Dogs



Warning 3 The referenced component 'ScriptHookVDotNet2' could not be found. Spawn Dogs

SajjadKhati
04-07-19, 22:34
سلام
ربط visual studio 2019 رو به بازی gta متوجه نشدم!!
ربطی به هم ندارن.
چه گزینه ای نیاز داشتین که توی 2019 نداشت؟
اگه خیلی مشکل نصب دارین ، ویندوز (نرجیحا ویندوز 10) را از اول نصب کنین.

salpc
05-07-19, 01:52
سلام
ربط visual studio 2019 رو به بازی gta متوجه نشدم!!
ربطی به هم ندارن.


واسه MOD سازی

ravegoat
22-07-19, 15:54
درود
اول visual studio 2019 رو نصب کردم خیلی سنگین بود و بعضی گزینه ها رو نداشت رفتم نسخه 13 رو نصب کردم . یه ماد واسه gta V هست.
این فایل رو از gta میخوادscripthook v.net.dll به Refrences اضافه میکنم ولی این ارور رو میده
نکنه مشکلش از این هست که قبلا نسخه 19 نصب بوده حالا نسخه 13 نصب کردم خراب شده؟؟
حالا این ارور رو میده:

Warning 1 The primary reference "ScriptHookVDotNet2" could not be resolved because it was built against the ".NETFramework,Version=v4.5.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.5". Spawn Dogs




Warning 2 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "ScriptHookVDotNet", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. Spawn Dogs



Warning 3 The referenced component 'ScriptHookVDotNet2' could not be found. Spawn Dogs

با سلام،

بنده دقیقا سوال رو متوجه نشدم.

خطایی که به وجود اومده به خاطر اینه که شما رفرنس ScriptHookVDotNet2 رو به پروژه اضافه کردید که با نسخه ی دات نت فریم ورک 4.5.2 کامپایل شده در حالی که در پروژه ی جاری دارید از 4.5 استفاده کنید. برای رفع صرفا این مشکل باید نسخه ی دات نت فریم پروژه رو به نسخه ی 4.5.2 یا بالا تر ارتقا بدید.

اگر سوال تون به خوبی پاسخ داده نشده، لطفا بیش تر توضیح بفرمایید.

شاد باشید
آرمین