-
January 19th, 2007, 05:23 AM
#1
Program written in beta 2 version of Framework 2.0... Help!!!
I downloaded the DataStructures20.msi file from MSDN pages ( http://msdn2.microsoft.com/en-us/lib...74(VS.80).aspx ) which has some OK examples of data structure (I`m interested only in graph alorithm though) use in C# 2.0 and I`m getting the
"Error 1 The type or namespace name 'Collection' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Dani\My Documents\MSDN\DataStructures20\skmDataStructures2\NodeList.cs 15 32 skmDataStructures2"
"Warning 2 Reference to type 'System.Collections.Generic.Collection`1' claims it is defined in 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll', but it could not be found c:\Documents and Settings\Dani\My Documents\MSDN\DataStructures20\skmDataStructures2\bin\Release\skmDataStructures2.dll GraphTester"
and a few similar errors when building it.
I have C# 2005 Express and .NET framework 2.0 that comes bundled with it through the internet installation.
I`ve found out by contacting the author that the code was written using beta 2 version of Framework 2.0 and hence the errors.
He could not help me though, but I hope you can.
Is there a possibility of conversion? Some code changes?
What are your experiences with similar issues. Is it doable?
-
January 19th, 2007, 06:41 AM
#2
Re: Program written in beta 2 version of Framework 2.0... Help!!!
If you have to sourcecode of the related library you should open it within the Visual Studio. Then remove the references and add the references again. Finally recompile the project and it should work.
After that you remove the library reference inside of your application and add the reference again for the new compiled one.
Useful or not? Rate my posting. Thanks.
-
July 12th, 2007, 07:20 AM
#3
Re: Program written in beta 2 version of Framework 2.0... Help!!!
I figured it out!
See http://graemef.com/blog/graeme/vs200...l_observations and http://www.itu.dk/people/sestoft/csh...ly/errata.html and http://www.google.com/search?num=30&...te&btnG=Search
The problem is threefold:
1. System.Collections.Generic.Collection<T> became System.Collections.ObjectModel.Collection<T>
2. IEnumerable<T> now derives from IEnumerable, meaning that all classes implementing IEnumerable<T> need two implementations of GetEnumerator().
3. Once you fix those, you'll get errors that Application doesn't contain a definition for EnableRTMMirroring.
So to fix the problem:
1. In NodeList.cs, add "using System.Collections.ObjectModel;"
2. In SkipList.cs, BinarySearchTree.cs, and Graph.cs, find the implementation of public IEnumerator<T> GetEnumerator() and add this below it:
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
3. Remove lines in *Tester\Program.cs that say "Application.EnableRTLMirroring();"
Then it should work!
-
September 24th, 2012, 02:48 AM
#4
Re: Program written in beta 2 version of Framework 2.0... Help!!!
This is long shot but since the msdn download link is not working, I wanted to know if you still have the archive of the datastructures msi file.
Let me know.
Thanks,
-
September 26th, 2012, 12:15 AM
#5
Re: Program written in beta 2 version of Framework 2.0... Help!!!
I searched bing with "DataStructures20.msi download" and found it pretty easily...
http://msdn.microsoft.com/en-US/libr...(v=VS.80).aspx
-
September 26th, 2012, 07:32 PM
#6
Re: Program written in beta 2 version of Framework 2.0... Help!!!
Try the link - it does not work.
-
September 27th, 2012, 09:58 AM
#7
Re: Program written in beta 2 version of Framework 2.0... Help!!!
It works for me. Did you click on the link or try to copy the visible text into a browser? The visible link text isn't complete so that won't work, but clicking on the link should. The full url is
Code:
http://msdn.microsoft.com/en-US/library/ms379572(v=VS.80).aspx
If that still doesn't work, search Msdn for "An Extensive Examination of Data Structures Using C# 2.0".
-
September 30th, 2012, 02:05 AM
#8
Re: Program written in beta 2 version of Framework 2.0... Help!!!
Originally Posted by Arjay
It works for me. Did you click on the link or try to copy the visible text into a browser? The visible link text isn't complete so that won't work, but clicking on the link should. The full url is
Code:
http://msdn.microsoft.com/en-US/library/ms379572(v=VS.80).aspx
If that still doesn't work, search Msdn for "An Extensive Examination of Data Structures Using C# 2.0".
Arjay - thanks for the prompt replies. The msdn article link works and that is not the problem. The issue was with link in the msdn article for download zip that was not work.
-
September 30th, 2012, 03:16 AM
#9
Re: Program written in beta 2 version of Framework 2.0... Help!!!
Code:
http://download.microsoft.com/download/5/0/f/50f7b985-990b-4154-ac21-518bfe16f887/DataStructures20.msi
-
September 30th, 2012, 09:37 AM
#10
Re: Program written in beta 2 version of Framework 2.0... Help!!!
Arjay - The link to DataStructures20.msi is what i have tried in different browsers and multiple times. The link times out and does not download anything for me.
Are you able to download the msi file? If so, please do me a favor and share the msi with me.
-
September 30th, 2012, 09:39 AM
#11
Re: Program written in beta 2 version of Framework 2.0... Help!!!
-
September 30th, 2012, 09:50 AM
#12
Re: Program written in beta 2 version of Framework 2.0... Help!!!
Yes. When I used the above link and got the file save as dialog, I figured we were golden. I didn't actually try to save the file.
I guess you are out of luck.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|