C
C#3y ago
Kunikos

How to edit a sln file in visual studio 2022

can't believe that i have to ask this question.... guess it comes to show another example of microsoft f***king up... but how do i simply open a sln file to edit it within visual studio 2022? i tried double clicking / triple clicking / rapid fire clicking.... no dice..... can't believe that something that used to be so easy before has now become a mystery.... tried googling but you know,,,, it get's confused with opening a sln file with visual studio.... i'm talking about EDITING IT in actual TEXT! thanks... to anyone who has the patience to answer this stupid and frustrating question....
31 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Angius
Angius3y ago
Open it with Notepad++ or something
230V
230V3y ago
That, and instead you could spend a few seconds to google visual studio edit sln Unload/close the solution, edit it (I think VS won't let you edit it, so use something external), load/open it
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Angius
Angius3y ago
(I wish .sln files were at least somewhat human-readable... for how much MS loves XML, the weird format of .slns really is an outlier)
mtreit
mtreit3y ago
I like to think it was written by an intern in the mid 1990s and nobody ever wanted to attempt to touch it to make it more sane. I would never hand-edit a sln file. I just generate them on the fly using SlnGen most of the time.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mtreit
mtreit3y ago
I'm not familiar with that. WAY back Microsoft used a source control system called Source Link Manager (SLM), pronounced "SLIME", that was extremely rudimentary and did all sorts of horrible things (like one developer holding a lock on a file would prevent anyone else from being able to work...) That was used in Windows. I don't know know what DevDiv used way back in the day. I only attempted to use SLM once. I somehow managed to corrupt the state for everyone (it was all centrally stored on a file share, behind the scenes) and it had to be restored from backup. I was too terrified to ever attempt to use it again.
Kunikos
KunikosOP3y ago
i'm not angry!! i'm just passionate xD!!
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Kunikos
KunikosOP3y ago
it comes with the passion xD. they have been messing up a lot. in almost every industry. i'm coming more from Rider but my team doesn't use rider cuz of the licenses. we are suppose to get it soon, but until then i have to deal with this crappy IDE which feels like it's been maintained by a bunch of crackheads. probably because the HQ is in seattle xD.
mtreit
mtreit3y ago
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "private", "..\..\..\..\..\..\private", "{28AD4863-8920-4902-A8F6-6B259C2A3301}"
EndProject
Global
GlobalSection(NestedProjects) = preSolution
{570FE209-7210-4BCC-B6C3-7C855EFA02C4} = {C4A4F31B-2B96-4CB0-AE64-D285903E17D8}
{C4A4F31B-2B96-4CB0-AE64-D285903E17D8} = {DB7A0EC3-73DC-416C-BE61-2D612DDA5204}
{DB7A0EC3-73DC-416C-BE61-2D612DDA5204} = {44B8A80C-03FE-404A-8B32-25337B025A17}
{50731752-9590-4F23-A822-D84DDA9A349F} = {84943E34-F567-4842-BD14-EE15D74C684F}
{84943E34-F567-4842-BD14-EE15D74C684F} = {B3E0E3D5-8A06-4698-94A6-6A41A87B90B3}
{02E61C33-754E-4D12-9D24-DA6B897DB5D6} = {82AA7845-CA3F-4B48-802C-746333C8E507}
{82AA7845-CA3F-4B48-802C-746333C8E507} = {B3E0E3D5-8A06-4698-94A6-6A41A87B90B3}
{04370CEE-1F0E-4383-AA51-3C67282B51A2} = {959F8E04-04DC-46A9-9447-C81F5129EEA3}
<continues for hundreds of lines>
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "private", "..\..\..\..\..\..\private", "{28AD4863-8920-4902-A8F6-6B259C2A3301}"
EndProject
Global
GlobalSection(NestedProjects) = preSolution
{570FE209-7210-4BCC-B6C3-7C855EFA02C4} = {C4A4F31B-2B96-4CB0-AE64-D285903E17D8}
{C4A4F31B-2B96-4CB0-AE64-D285903E17D8} = {DB7A0EC3-73DC-416C-BE61-2D612DDA5204}
{DB7A0EC3-73DC-416C-BE61-2D612DDA5204} = {44B8A80C-03FE-404A-8B32-25337B025A17}
{50731752-9590-4F23-A822-D84DDA9A349F} = {84943E34-F567-4842-BD14-EE15D74C684F}
{84943E34-F567-4842-BD14-EE15D74C684F} = {B3E0E3D5-8A06-4698-94A6-6A41A87B90B3}
{02E61C33-754E-4D12-9D24-DA6B897DB5D6} = {82AA7845-CA3F-4B48-802C-746333C8E507}
{82AA7845-CA3F-4B48-802C-746333C8E507} = {B3E0E3D5-8A06-4698-94A6-6A41A87B90B3}
{04370CEE-1F0E-4383-AA51-3C67282B51A2} = {959F8E04-04DC-46A9-9447-C81F5129EEA3}
<continues for hundreds of lines>
What's not to love?
Kunikos
KunikosOP3y ago
lol
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mtreit
mtreit3y ago
That's normal
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mtreit
mtreit3y ago
You probably know it's a version
MODiX
MODiX3y ago
mtreit#6470
REPL Result: Success
Console.WriteLine(Guid.NewGuid());
Console.WriteLine(Guid.NewGuid());
Console.WriteLine(Guid.NewGuid());
Console.WriteLine(Guid.NewGuid());
Console.WriteLine(Guid.NewGuid());
Console.WriteLine(Guid.NewGuid());
Console Output
e64d4bbd-28a9-4871-9121-5226c49b0598
5bc47861-6142-4dbf-97e7-05128aa719cd
8ae03200-2721-4832-a3ce-c5f0715addcf
e64d4bbd-28a9-4871-9121-5226c49b0598
5bc47861-6142-4dbf-97e7-05128aa719cd
8ae03200-2721-4832-a3ce-c5f0715addcf
Compile: 506.589ms | Execution: 19.480ms | React with ❌ to remove this embed.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
333fred
333fred3y ago
That part of a UUID is not random. It's the version specifier .NET GUIDs are v4 UUIDs But seriously, I would not recommend manually editing a SLN file at all. Either use dotnet sln or VS
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mtreit
mtreit3y ago
New sln file format when
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mtreit
mtreit3y ago
Oh, ok, cool, no problem
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mtreit
mtreit3y ago
Compound?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
mtreit
mtreit3y ago
Hmm. Sounds slightly useful
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server