Restore .sln in text format back to .sln file

I accidentally changed .sln format in VS 2010 saved as .txt file.

How to convert it back to .sln format in VS 2010?

Thank you.
Queennie LAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
A .sln is a text file. Its extension is only to help Visual Studio differentiate it from other type for files that are also text files, such a .vbproj.

Simply rename your file and you should be OK.
Tapan PattanaikSenior EngineerCommented:
Hi mabuhay87 ,

If file extension is not visible to you then follow the below process. ( For windows 8)

To show file name extensions:

1. Open Folder Options by clicking the Start button Picture of the Start button, clicking Control Panel, clicking Appearance and Personalization, and then clicking Folder Options.

2.Click the View tab, and then, under Advanced settings, do one of the following:

•To show file name extensions, clear the Hide extensions for known file types check box, and then click OK.

after that remodify from .txt to .sln

For windows 7:

1. If the  extension of the files (e.g. fileName.jpg),  is not visible to you then  then open up Windows Explorer and press the Alt key, and click on Folder Options via Tools menu button.

2. Now click on View tab and remove the check from Hide extensions for known file types, and then press OK. (This way you’d be able to see the extensions of the files).

after that remodify from .txt to .sln
Queennie LAuthor Commented:
Visual Studio 2010 solution as .sln file is stored as text file.
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

Jacques Bourgeois (James Burger)PresidentCommented:
Yes. A lot of files that have other extensions than .txt are text files. They simply have a different extension because they might have a specific format and/or need to be differentiated by the programs that use them.

Open any .sln file in Notepad, and you will see that it is nothing else than a text file.

So simply rename your .txt to .sln and it will work as it did before... that is of course, if you did not modify it while it was in .txt.
ArkCommented:
Strictly speaking .sLn is not "text" file but UTF-8 "text" file, so if you save it in, say, UTF-16 Big Endian or ANSI format it won't work. Check out encoding of your .txt file in Notepad when SaveAs, change to UTF-8 and save as .sLn file

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Queennie LAuthor Commented:
Thank you.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.