.sln file not valid

  • Thread starter Thread starter mp
  • Start date Start date
M

mp

curious why if i dblclick on a .sln file in my project's folder i always get
a notice that it's not a valid Visual Studio solution file.
i can of course open the csproj files but I had thought that the .sln file
may be the entire solution (containing multiple projects)
either the .sln files are not what i was guessing they might be (similar to
a .vbg file in vb6)
or i may have some settings wrong in the ide?

mark
 
Steel said:
You may have some type of corruption and you may need to rebuild the sln
file that can contain many projects. Those projects in a single sln file
can contain both VB.NET and C#.NET projects in the same sln file.

I was also thinking that express may not be able to open the .sln files as
that is a common error no matter which .sln i ever try to open
somehow one of the projects opens with the other 3 in the solution.
the other 3 projects, if i dbl click their .csproj file, only open
themselves not the multi-solution
i'm not sure what's different about the one that opens the whole
package.(it's the client one in that mvp project you linked me to)
it's not just set this project as startup, because i set one of the other
layers to startup to see if that was the magic bullet that opened the
solution, but it wasn't, still just opened the single project.
 
found it

[]

it was file association...trying to open development environment (i think
c++?)
if i go open with and use visual studio version selector it works.
;-)
 
I was also thinking that express may not be able to open the .sln files as
that is a common error no matter which .sln i ever try to open
somehow one of the projects opens with the other 3 in the solution.
the other 3 projects, if i dbl click their .csproj file, only open
themselves not the multi-solution

Express uses the same solution-project structure as other
editions.

Arne
 
Arne Vajhøj said:
Express uses the same solution-project structure as other
editions.

Arne

I found out it was a file association issue per my last post
thanks

I'm still not clear how it (the ide) knows which csproj should open the
solution containing multiple projects
instead of just opening its own project only
 
Big Steel said:
[]
I have not used the Express editions in a long time, and maybe you can't
open a solution file in the Express edition.

per my previous post, i found and fixed the file association (was bringing
up dev env instead of vis studio)
Maybe you need make each project standlone. \ [..]
I don't see why you can't make a new solution and add the projects
manually to create a single solution, even with the Express editions.

I finally got my single project i had started with divided up into 4
projects(view,biz,presenter,service)
by following the patten shown in the mvp project
just took a while cutting/pasting/renaming to get the various code parts
where they belonged and getting all the new references set
it finally builds without errors, now to make it do something useful
:-)
thanks
mark
 
Back
Top