我需要在我的程序中使用 shell32 来创建快捷方式。
这是我的代码:
var compiler = new CSharpCodeProvider();
var Params = new System.CodeDom.Compiler.CompilerParameters
{
GenerateExecutable = true,
OutputAssembly = outputName,
ReferencedAssemblies = {
"System.dll",
"System.Core.dll",
"System.Windows.Forms.dll",
"System.Drawing.dll",
@"C:\Windows\System32\Shell32.dll"
}
};
这样做,我得到一个错误:
元数据文件 C:\Windows\System32\Shell32.dll 无法打开。试图加载格式不正确的程序。
搜索时什么也没找到..我什至不确定要搜索什么:/
我该怎么做呢?