build error, warning MSB3258
Posted
by
Steed
on Stack Overflow
See other posts from Stack Overflow
or by Steed
Published on 2012-11-12T22:15:07Z
Indexed on
2012/11/12
23:01 UTC
Read the original article
Hit count: 759
I have recently moved my solution from my main dev machine using vs2010 pro sp1 to a new machine. The setup is supposed to be the same except its failing to build.
Its giving errors like
c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360,9): warning MSB3258: The primary reference "C:\rep\hms\trunk\ikassystemv3\ikasDAL\bin\Debug\ikasDAL.dll" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a higher version "4.0.0.0" than the version "2.0.0.0" in the current target framework.
However all all the libraries in question are set to use the .net 2 framework and I need it this way or else it will break stuff that uses them.
However for some reason it seems to think that somehow my .net 2 system libs are somehow referencing .net 4 stuff. All the referenced libs are .net 2
You can see my build output here
© Stack Overflow or respective owner