c# - Target .Net 4.0 when using Windows 8 / VS2012 -


i having issues building merged dll target .net4.0 on windows 8 machine. can build individual .net4.0 dlls in vs2012 not have problem:

targeting .net 4.0 in vs 2012 on windows 8

i have come across following excellent blog post discuss issue:

http://www.mattwrock.com/post/2012/02/29/what-you-should-know-about-running-ilmerge-on-net-45-beta-assemblies-targeting-net-40.aspx

and also:

could not load type 'system.runtime.compilerservices.extensionattribute' assembly 'mscorlib

which suggests use following syntax during merge:

/targetplatform:"v4,c:\program files\reference assemblies\microsoft\framework\.netframework\v4.0" 

unfortunately in windows 8 not have directory. can think of following possible solutions interested know if has solved this.

  1. copy .net 4.0 assemblies windows 7 machine above directory manually.
  2. find .net 4.0 assemblies being used vs2012 , reference those.
  3. ??

i using windows 8, , vs 2012 have not come across issue (and surely, bunch of other people fine well). simply, may have v3.5 or v4.5 installed , means need install v4.0 framework (... again if tried).

i found folder path gave did not take me anywhere on pc, path did;

c:\program files\reference assemblies\microsoft\framework\ 

can try path on pc , see if there v4.0 folder there.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -