Click here to Skip to main content
15,893,622 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I want to open a sln file to compile a program. Which program should i use.
Thank u for ur answer
My previous question How to open C# file in that graphic interface?
I want to run this Communicating with LEGO NXT via Bluetooth in C#
Posted

Checked your previous posts, you will need Visual Studio 2010 or Visual Studio 2008 to open that SLN file.





Hi,

Please elobrate more on the question.

Basically a solution file can be opened by using appropriate IDE (development enviornment) For Example you need visual studio to open .net related sln file.

You can also use NOTEPAD to just open and read the content of sln file. notepad will anyways not help you to compile it.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 17-Jun-12 0:18am    
As the question was only about building the solution, the program is MSBuild.EXE -- please see my answer for detail.
--SA
Your question is not clear? do you have visual studio? if not you can download a free copy of developer express here: http://www.microsoft.com/visualstudio/en-us/products/2010-editions/express[^]

If you have an MSDN Subscription you can download visual studio from your subscription benefits download section.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Jun-12 0:18am    
As the question was only about building the solution, the program is MSBuild.EXE -- please see my answer for detail.
--SA
If you need just to compile a program, you need to do just this:
MSBuild MySolution.SLN

The only problem would be to find an appropriate MSBuild.EXE version, depending on the solution. This is a part of .NET framework, not Visual Studio.

These are typical path names matching the version of the SLN file format

SLN format version: 9.0
Supported .NET Framework: 2.0 (only)
VS Version: VS 2005
Path: %windir%\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe

SLN format version: 10.00
Supported .NET Framework: 2.0, 3.0, 3.5
VS Version: 2008
Path: %windir%\Microsoft.NET\Framework\v3.5\MSBuild.exe

SLN format version: 11.00
Supported .NET Framework: 2.0, 3.0, 3.5, 4.0
VS Version: VS 2010
Path: %windir%\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

—SA
 
Share this answer
 
v2
Comments
Member 14569408 27-Aug-19 1:16am    
How can I run the .sln file to see the result?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900