الأكثر طلبًا: آخر تحديث للبيانات: 5 نوفمبر 2026

الأقسام

الإنترنت1,369
التواصل322
الصوت والفيديو908
الرسوميات والتصميم548
المكتب والإنتاجية1,133
أدوات المطورين3,163
أدوات الذكاء الاصطناعي544
الأمان والخصوصية394
أدوات النظام3,152
الألعاب531
التعليم والعلوم240
الشبكات وتقنية المعلومات287

.NET CodeContracts: التثبيت الصامت وإلغاء التثبيت

Provides a language-agnostic way to express coding assumptions in .NET programs.

أوامر لتثبيت برنامج .NET CodeContracts دون نوافذ أو أسئلة، ثم إزالته، والكشف عنه من أدوات النشر. لا يظهر الأمر إلا إذا كان مؤكدًا: من البيان (manifest) أو من الإعداد الافتراضي الموثّق لتقنية المثبّت.

شرح ذو صلة: أوامر التثبيت الصامت: MSI وNSIS وInno Setup · إزالة برنامج عبر السجل (Registry) أو PowerShell

باستخدام winget

PowerShell
winget install --id Microsoft.DotNet.CodeContracts -e --silent --accept-package-agreements --accept-source-agreements
winget upgrade --id Microsoft.DotNet.CodeContracts -e --silent
winget uninstall --id Microsoft.DotNet.CodeContracts -e --silent

حسب المثبّت

32 بت · MSI · en-US

التثبيت الصامتmsiexec /i Contracts.devlab9ts.msi /qn /norestart
كتابة ملف سجلmsiexec /i Contracts.devlab9ts.msi /qn /norestart /l*v "%TEMP%\net-codecontracts-install.log"
إلغاء التثبيتmsiexec /x {4ED22F53-768D-4286-9F55-4927F1D67B4F} /qn /norestart
رمز منتج MSI
{4ED22F53-768D-4286-9F55-4927F1D67B4F}
مفتاح إلغاء التثبيت في السجل
HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{4ED22F53-768D-4286-9F55-4927F1D67B4F}

PowerShell: تنزيل وتحقق وتثبيت

ينزّل الملف الرسمي، ويتحقق من بصمة SHA256، ثم يثبّته تثبيتًا صامتًا.

install-net-codecontracts.ps1
$url = 'https://github.com/microsoft/CodeContracts/releases/download/v1.10.20606.1/Contracts.devlab9ts.msi'
$sha256 = '5A2E44751A650A8442DFE1A41484E960B46EAA1A55B25672F6537A1D59015F5B'
$file = Join-Path $env:TEMP 'Contracts.devlab9ts.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait

برامج أخرى من Microsoft Corporation

عرض الكل
  • PowerShellالطرفيات وسطر الأوامر · Microsoft Corporation
  • PowerToysالتخصيص · Microsoft Corporation
  • NuGetمديرو الحزم والتحديث · Microsoft Corporation
  • Microsoft Azure CLIالطرفيات وسطر الأوامر · Microsoft Corporation
  • OpenSSH PreviewFTP ونقل الملفات · Microsoft Corporation
  • Bicep CLIلغات البرمجة وSDK · Microsoft Corporation

الوسوم

مشاركة