Silly question: getting source code to build

Mar 28, 2011 at 10:30 AM

Hi All

Please excuse my ignorance ont this one but I can get the source code running fine on my Windows 7 32bit laptop but not on my Windows 7 64bit machine.

I just get:

16 warnings aloong the line of 

The primary reference "PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86", which is a framework assembly, could not be resolved in the currently targeted framework. ".NETFramework,Version=v2.0". To resolve this problem, either remove the reference "PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86" or retarget your application to a framework version which contains "PresentationCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=x86". FamilyShowLib

and 11 errors in the line of 

 Error 2 The type or namespace name 'Packaging' does not exist in the namespace 'System.IO' (are you missing an assembly reference?) C:\Source\familyshow\3.0\FamilyShowLib\OPCUtility.cs 3 17 FamilyShowLib

 

Any input will be appreciated

Regards

Conrad Pienaar

Mar 28, 2011 at 10:34 AM

Oh dear OK. LOL. Solved it. Apologies to everyone.

Jun 30, 2011 at 4:26 PM

If you solved it, you should have posted your solution for the rest of the world that might have a similar problem.

:(

Jul 14, 2011 at 12:09 AM

In order to build in 2010, first remove all references that are broken, then add references to the following

FamilyShowLib:

    <Reference Include="PresentationCore" />    <Reference Include="PresentationFramework" />    <Reference Include="PresentationFramework.Aero" />    <Reference Include="PresentationFramework.Classic" />    <Reference Include="PresentationFramework.Luna" />    <Reference Include="PresentationFramework.Royale" />    <Reference Include="System" />    <Reference Include="System.Data" />    <Reference Include="System.Drawing" />    <Reference Include="System.Drawing.Design" />    <Reference Include="System.IO.Log" />    <Reference Include="System.Web.DataVisualization" />    <Reference Include="System.Windows.Forms" />    <Reference Include="System.Windows.Forms.DataVisualization" />    <Reference Include="System.Windows.Forms.DataVisualization.Design" />    <Reference Include="System.Xaml" />    <Reference Include="System.Xml" />    <Reference Include="WindowsBase" />

 

FamilShow

<Reference Include="PresentationFramework.Aero" />    <Reference Include="PresentationFramework.Classic" />    <Reference Include="PresentationFramework.Luna" />    <Reference Include="PresentationFramework.Royale" />    <Reference Include="System" />    <Reference Include="System.Data" />    <Reference Include="System.Drawing" />    <Reference Include="System.Windows.Forms" />    <Reference Include="System.Xml" />    <Reference Include="WindowsBase" />    <Reference Include="PresentationCore" />    <Reference Include="PresentationFramework" />    <Reference Include="UIAutomationProvider" />    <Reference Include="UIAutomationTypes" />    <Reference Include="ReachFramework" />    <Reference Include="System.Printing" />    <Reference Include="System.ServiceModel" />    <Reference Include="System.Runtime.Serialization" />    <Reference Include="System.IdentityModel" />