English 中文(简体)
从参考(避免“不装载档案或组装”错误)中删除版本。
原标题:Remove version number from reference (avoiding "Could not load file or assembly..." error)?

在我的班次图书馆,我从我的网站双倍浏览一下DL。 有时,双手里的DLs被更新,然后我发现:

    Could not load file or assembly  MyAssembly.Sub, Version=3.7.2096.3, Culture=neutral,
 PublicKeyToken=dfeaee3f6978ac79  or one of its dependencies. The located assembly s
 manifest definition does not match the assembly reference.
(Exception from HRESULT: 0x80131040)

我如何无视这一版本,以便DLs能够在没有具体版本的申请的情况下获得更新? 仅仅看一下名字空间吗?

这是我在案卷中的参考:

<Reference Include="MyAssembly.Sub, Version=3.7.2057.3, Culture=neutral, PublicKeyToken=dfeaee3f6978ac79, processorArchitecture=MSIL">
  <SpecificVersion>False</SpecificVersion>
  <HintPath>....SomeWebsiteinMyAssembly.Sub.dll</HintPath>
  <Private>False</Private>
</Reference>
最佳回答
问题回答

具体版本的财产实际上更容易伪造。

http://msdn.microsoft.com/en-us/library/7wd6ex19.aspx”rel=“nofollow noreferer”

我认为这是发展过程中出现的问题。 由于一些发展活动,双倍组合的组装得到了更新。

在发展过程中,你正在使用高名的集会。 只有在提及具体版本的集会时,才提及有强烈名的集会。

也许,在发展和偷渡期间,你最好不要签署集会。 避开一个没有强烈名称的集会,更简单。 我认为,相应的档案名称是充分的。

在生产环境中,强国名肯定是一个好主意。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签