SEが最近起こったことを書くブログ

ITエンジニアが試したこと、気になったことを書いていきます。

.NET Frameworkでよく調べること

.NET Frameworkでやり方が分からなくて困ることを以下にメモする

デバッグ関連

dll関連

  • Interop.*のdll

  • 32bitか64bitかの確認

    • dumpbin.exe /HEADERS ○○.dll | findstr machine
    • dumpbinは、C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\binなどにある

assemblyフォルダの表示

desktop.iniの中身は下記

; ==++==
; 
;   Copyright (c) Microsoft Corporation.  All rights reserved.
; 
; ==--==
[.ShellClassInfo]
CLSID={1D2680C9-0E2A-469d-B787-065558BC7D43}
ConfirmFileOp=1
InfoTip=Contains application stability information.
  • コマンドプロンプト(cmd.exe)を管理者として起動し、以下のコマンドを実行していく。
    • attrib +s +h +r C:\Windows\assembly\desktop.ini
    • attrib +s +r C:\Windows\assembly
  • attribコマンドで属性変更と変更後のチェック
    • attrib C:\Windows\assembly\desktop.ini (コマンド結果にSHRが表示されていればok)
    • attrib C:\Windows\assembly (コマンド結果にS Rが表示されていればok)

参考URL