SharpChess.com Forum Index SharpChess.com
C# Chess Game
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Visual Studio C# 2008 Express Edition

 
Post new topic   Reply to topic    SharpChess.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Nimzo



Joined: 15 Mar 2005
Posts: 64

PostPosted: Sat Jul 26, 2008 11:15 pm    Post subject: Visual Studio C# 2008 Express Edition Reply with quote

Visual Studio C# 2008 Express Edition

Why?

Because it is free and works with Windows Vista!
Another interest is that you will automatically migrate SharpChess from .NET 2.0 to .NET 3.5.

Where?

Download your free copy of Visual Studio C# Express Edition from Microsoft.
You will need a valid email (MS Passport or Windows Live ID) to register (that is to say activate) the product.

Download the source code of SharpChess

1. Get the official zipped source code SharpChess_Source_v2_52.zip at the end of the download page.
2. In the File Explorer, expand the zipped archive.
3. Vista allows directly unzipping the zipped subfolder SharpChess by drag & drop, let us say, in D:\

Note: a better location could be C:\Users\<YourVistaUserName>\Documents\Visual Studio 2008\Projects
which is the default location for your future Visual Studio C# projects.

To simply, the source code has been copied in D:\
4. Open the folder D:\SharpChess always with the File Explorer of Vista.
5. Double-click the old SharpChess Solution with the C# version 8 icon.

Migration VS2005 to VS2008 Express

Thanks to the wizard, the migration from Visual Studio 2005 .NET 2.0 to Visual Studio 2008 .NET 3.5 is automatic.
That is to say Visual Studio C# 2008 Express Edition will automatically upgrade the project for you.
Indicate in the wizard if you want a backup or not.

In the File Explorer the SharpChess Solution has now the C# version 9 icon
because Visual Studio C# Express Edition belongs to Visual Studio version 9.
To be sure, you would find C:\Program Files\Microsoft Visual Studio 9.0

1. Click the menu "Build" | "Rebuild Solution"
In the status bar, you will read "Rebuild All succeeded"
What is new is that both D:\SharpChess\bin\Debug and D:\SharpChess\bin\Release have been regenerated.

Setup Build issue

When I click on the new SharpChess Solution with C# version 9 icon, I got the warning:
"Microsoft Visual C# 2008 Express Edition
'D:\SharpChess\SharpChessSetup\SharpChessSetup.vdproj' can
not be
opened because its project type (.vdproj) is
not supported by this version of Visual Studio."

The Visual Studio 2005 Setup of SharpChess is not supported in the Express Edition.
Just ignore the warning.

Click "OK"

However if you want to suppress it:
1. Quit Visual Studio!
2. Drag & drop the file SharpChess Solution in NotePad:
Code:
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual C# Express 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SharpChess", "SharpChess.csproj", "{F5FD2F27-6DCB-453C-B018-0AC8D4BC4109}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "SharpChessSetup", "SharpChessSetup\SharpChessSetup.vdproj", "{FC4920E6-9F5B-4992-AA6B-526D92F251D2}"
EndProject
Global
...

3. Delete the two following lines corresponding to the setup:
Code:
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "SharpChessSetup", "SharpChessSetup\SharpChessSetup.vdproj", "{FC4920E6-9F5B-4992-AA6B-526D92F251D2}"

4. Open the modified Solution. The warning does not appear.

Caution: Do not edit the file SharpChess Solution in NotePad while Visual Studio is running,
hence the previous quit Visual Studio in bold in the first step.

Conclusion

With regard to the full Visual Studio product,
at first glance it seems that the Express Edition does not offer to switch between threads during the debug.
However the Express Edition is enough powerful to modify and debug SharpChess for free.

Congratulation! You are ready to improve SharpChess .NET 3.5 for Vista!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SharpChess.com Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group