Showing posts with label Visual Studio 2008. Show all posts
Showing posts with label Visual Studio 2008. Show all posts

Repeated conversion of Web project file

Posted on Wednesday, September 30, 2009 by Nicki

I had the dubious honour of converting a VB Web app from Visual Studio 1.1 to VS 2008.

Every time I opened the converted (or so I thought) project, it gave the following message:


The following Web projects must be converted to the new Web Site format. The conversion process will remove all source control bindings and the project will not be under source control after migration.

After the 3rd attempt it was not funny, so I googled it and found this fix:

1. For the project that's causing you the issue, backup your solution file, your project file, and the "hint" file associated with your project file (the .vspscc file sitting in the same directory as your project) to some other location.
2. Check out your solution file and the project file and close VS
3. Open the project hint file (.vspscc) in notepad, change the ENLISTMENT_CHOICE from COMPULSORY to "ENLISTMENT_CHOICE" = "NEVER"
4. Open your solution file in notepad, remove that line SccProjectEnlistmentChoiceX = 2 (X is the number that corresponds to your project that is causing you the problem). Also, if you see the line "SccWebProjectX=true" (x is again the number of the project in your solution), remove that as well.
5. Open everything in VS again, and assuming everything works now, check in your files.


Link to original article here.

MyTechEd #8 - A Strategic Comparison of Data Access Technologies from Microsoft

Posted on Wednesday, September 2, 2009 by Nicki

This was a whiteboard session, so there are no slides available. My personal opinion is that I will leave the Entity Framework, etc. to still mature a bit. Seems like Linq to SQL is just about dead, glad I did not jump on that bandwagon.

MyTechEd #2 - Visual Studio Tips and Tricks

Posted on Friday, August 14, 2009 by Nicki

Presenter: Mike Palermo


The session started off a bit rocky due to the fact that Mike's laptop and the projector did not want to go to a higher resolution than 640x480 or800x600, can't remember, all I know it was big and not a lot fitted on the screen. It was really unfortunate, as it was a great session.

One of the nice things we were shown was how to create your own code snippets.
Snippets are XML documents, so they can be created/edited easily. The standard code snippets are stored in Program Files\Microsoft Visual Studio 9.0\VC#\Snippets\1033\Visual C# for C#, so you can copy one from there to My Documents\Visual Studio 2008\Code Snippets\Visual C#\My Code Snippets and edit it to your liking, obviously changing the Title and Shortcut values.

Look here for a snippet editor.

Other usefull tips were Prevent Copy on Blank Line and Toggle Clipboard. I'm not going to post every tip here, so please see Mike's speaker notes here.

Link to presentation: download here

Want to get rid of Word as default .htm(l) editor

Posted on Tuesday, July 14, 2009 by Nicki

Seems like MS thought Word was a good html editor. NOT!


I finally had enough of right-click Edit on html file, and then Word pops up. Good grief, what were they thinking? Here's how to get rid of that.

Open a new explorer, click on Tools / Folder Options / File Types. Scroll to HTM, select it, click Advanced, make sure Edit is selected, and click Edit. To make Visual Studio 2008 the editor, paste this in the 2nd entry field (Application used to perform action)

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" "%1"

Click all the right buttons to confirm and get out, and test it.