What version are your projects targeting?? Right click on project, choose properties. Location of the setting varies, so look around for ".NET Framework 4.0/3.5" drop down list.. On Nov 20, 2012 4:10 PM, <ifum...@gmail.com> wrote:
> Common.dll is set to framework v3.5 but he output panel says i'm trying to > use v4...see output below... > > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, > 9): warning MSB3258: The primary reference "C:\Common.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. > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, > 9): warning MSB3258: The primary reference "C:\Common.dll" could not be > resolved because it has an indirect dependency on the .NET Framework > assembly "System.Xml, 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. > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, > 9): warning MSB3258: The primary reference "C:\Common.dll" could not be > resolved because it has an indirect dependency on the .NET Framework > assembly "System, 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. > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, > 9): warning MSB3258: The primary reference "C:\Common.dll" could not be > resolved because it has an indirect dependency on the .NET Framework > assembly "System.Data.SqlXml, 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. > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, > 9): warning MSB3258: The primary reference "C:\Common.dll" could not be > resolved because it has an indirect dependency on the .NET Framework > assembly "System.Configuration, Version=4.0.0.0, Culture=neutral, > PublicKeyToken=b03f5f7f11d50a3a" which has a higher version "4.0.0.0" than > the version "2.0.0.0" in the current target framework. > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, > 9): warning MSB3258: The primary reference "C:\Common.dll" could not be > resolved because it has an indirect dependency on the .NET Framework > assembly "System.Security, Version=4.0.0.0, Culture=neutral, > PublicKeyToken=b03f5f7f11d50a3a" which has a higher version "4.0.0.0" than > the version "2.0.0.0" in the current target framework. > CoreResGen: > All outputs are up-to-date. > CoreCompile: > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Vbc.exe /noconfig > > /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections. > Generic,System.Data,System.Diagnostics,System.Linq,System.Xml.Linq > /optioncompare:Binary /optionexplicit+ /optionstrict:custom > /nowarn:42016,41999,42017,42018,42019,42032,42036,42020,42021,42022 > /optioninfer+ /nostdlib /rootnamespace:Sby.Intellilog > /sdkpath:C:\Windows\Microsoft.NET\Framework\v2.0.50727 > /doc:obj\Debug\Sby.Intellilog.xml > > /define:"CONFIG=\"Debug\",DEBUG=-1,TRACE=-1,_MyType=\"Windows\",PLATFORM=\"A > nyCPU\"" > > /reference:C:\data\tfs\CSO\sbh\intelliLogData\bin\Debug\intelliLogData.dll," > C:\data\tfs\CSO\sbh\thirdparty\Catalyst Development\SocketTools .NET > > Edition\Redist\v2.0.50727\SocketTools.MailMessage.dll",C:\Windows\Microsoft. > NET\Framework\v2.0.50727\System.configuration.dll,"C:\Program Files > (x86)\Reference > Assemblies\Microsoft\Framework\v3.5\System.Core.dll","C:\Program Files > (x86)\Reference > > Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll",C:\Wi > > ndows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll,C:\data\tfs\CSO\sbh > > \packages\System.Data.SQLite.1.0.82.0\lib\net20\System.Data.SQLite.dll,C:\da > > ta\tfs\CSO\sbh\packages\System.Data.SQLite.1.0.82.0\lib\net20\System.Data.SQ > > Lite.Linq.dll,C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll,C:\Wi > ndows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll,"C:\Program Files > (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" > /debug+ /debug:full /filealign:512 /out:obj\Debug\Sby.Intellilog.dll > /resource:obj\Debug\Sby.Intellilog.Resources.resources /target:library > IntelliTraceListener.vb "My Project\AssemblyInfo.vb" "My > Project\Application.Designer.vb" "My Project\Resources.Designer.vb" "My > Project\Settings.Designer.vb" SingletonLogger.vb Socket.vb > sqllite.logging.vb > Build FAILED. > > > > -----Original Message----- > From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] > On Behalf Of Mark Hurd > Sent: Monday, 19 November 2012 6:08 PM > To: ozDotNet > Subject: Re: Help..reference not working.. > > You've built Common.dll with the 4.0 framework DLLs. Note you may have done > this with the 3.5 compiler, if your settings were adjusted that way at the > time. > > You'll have to rebuild it with the 3.5/2.0 framework. > -- > Regards, > Mark Hurd, B.Sc.(Ma.)(Hons.) > > On 19 November 2012 16:50, <ifum...@gmail.com> wrote: > > I have class project that i use everywhere but some of the projects > > that are using it as a project reference will not compile anymore. > > > > > > > > Project is sba.common > > > > > > > > Says 'common' is not a member of 'sba' > > > > > > > > When i look at the build log..i can see that it is trying to use > > framework 4 when all the projects i am using are set to 3.5 > > framework....anyone see anything obvious? > > > > > > > > > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1360, > 9): > > warning MSB3258: The primary reference "C:\Common.dll" could not be > > resolved because it has an indirect dependency on the .NET Framework > > assembly "System.Security, Version=4.0.0.0, Culture=neutral, > > PublicKeyToken=b03f5f7f11d50a3a" which has a higher version "4.0.0.0" > > than the version "2.0.0.0" in the current target framework. > > > > > > CoreCompile: > > > > C:\Windows\Microsoft.NET\Framework\v4.0.30319\Vbc.exe /noconfig > > /baseaddress:11000000 /imports:Mic > > > > > > Anthony > > > >