# .sln versus .slnx

**URL:** https://talk.remobjects.com/t/sln-versus-slnx/34276
**Category:** Elements
**Created:** [November 4, 2026, 6:03pm UTC](https://talk.remobjects.com/t/sln-versus-slnx/34276 "2026-11-04T18:03:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![phil2](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@phil2](https://talk.remobjects.com/u/phil2)
#### Post date: [November 4, 2026, 6:03pm UTC](https://talk.remobjects.com/t/sln-versus-slnx/34276/1 "2026-11-04T18:03:14Z")

</div>

I have noticed the following behaviors:

When Visual Studio 2026 instantiates one of my [custom Elements project templates](https://github.com/pmunts/libsimpleio/tree/master/elements/dotnet/templates), it creates an `.slnx` file instead of an `.sln` file.

Fire and Water both seem to **honor** an existing `.slnx` file created by VS, but **create** an `.sln` file.

For consistency and sanity, is there a way to tell Fire and Water and Earth to create an `.slnx` file? Or, is there a way to tell Visual Studio in the `.vstemplate` file to create an `.sln` file instead of an `.slnx`?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 4, 2026, 7:18pm UTC](https://talk.remobjects.com/t/sln-versus-slnx/34276/2 "2026-11-04T19:18:16Z")

</div>

> [@phil2](#):
>
> For consistency and sanity, is there a way to tell Fire and Water and Earth to create an `.slnx` file?

Not currently. .slnx is a new format Microsoft introduced for VS2026 (i guess they thought, "hey, it’s 2026, let’s use something modern like all the kids do, XML!), right now, we support reading and maintaining it, but new projects continue to be `.sln`.

We do have a “Convert to .slnx” menu in Fire, under “Help|Internal”.

> [@phil2](#):
>
> Or, is there a way to tell Visual Studio in the `.vstemplate` file to create an `.sln` file instead of an `.slnx`?

Not that i am aware of either, but I’ll check. Creating the sln(x) is done by VS, outside of the scope thta our templates are involved.

**Update** : good news:

> [@](#):
>
> Yes! **Visual Studio 2026 lets you change the default solution format back to `.sln`.**
> 
> 1. Open **Tools → Options**.
> 2. Navigate to **Projects and Solutions → General**.
> 3. Find **Default Solution File Format**.
> 4. Select **Visual Studio 2010–2022 Solution File Format (.sln)** instead of **XML Solution File Format (.slnx)**.
> 5. Click OK.
> 
> New projects will now use `.sln` files by default.
> 
> **For the .NET CLI** , which has independently switched to `.slnx` in .NET 10, use:
> 
> ```auto
> dotnet new sln --format sln
> 
> ```
> 
> The Visual Studio setting doesn’t change the CLI default.

---

<div class="post-metadata">

### Author: ![phil2](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/p/3ab097/32.png) [@phil2](https://talk.remobjects.com/u/phil2)
#### Post date: [November 5, 2026, 6:36pm UTC](https://talk.remobjects.com/t/sln-versus-slnx/34276/3 "2026-11-05T18:36:17Z")

</div>

Yeah, I saw the Visual Studio setting. I actually prefer the `.slnx` file most of the time, so I was hoping it would be possible to select `.sln` from the template when I need, like for Elements projects.

FWIW, I have never been fully convinced of the necessity of the solution file, especially since I never do anything with nested projects. Even [Microsoft seems to recognize this](https://github.com/microsoft/slngen). Man, I’m tempted to just start treating the solution file as just another temporary build artifact created by the IDE’s.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 5, 2026, 6:47pm UTC](https://talk.remobjects.com/t/sln-versus-slnx/34276/4 "2026-11-05T18:47:37Z")

</div>

> [@phil2](#):
>
> Yeah, I saw the Visual Studio setting. I actually prefer the `.slnx` file most of the time, so I was hoping it would be possible to select `.sln` from the template when I need, like for Elements projects.

I see. I’ll look at having an option. to have Fire create `.slnx` by default, instead.

> [@phil2](#):
>
> Man, I’m tempted to just start treating the solution file as just another temporary build artifact created by the IDE’s.

That’s certainly an option! Just add it to .gitignore, like eg .user and .cache…

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [November 5, 2026, 7:43pm UTC](https://talk.remobjects.com/t/sln-versus-slnx/34276/5 "2026-11-05T19:43:21Z")

</div>

> [@mh](#):
>
> I see. I’ll look at having an option. to have Fire create .slnx by default, instead.

Done for tomorrow’s build 😉
