piotrulos / MSCModLoader

ModLoader for My Summer Car
GNU General Public License v3.0
110 stars 55 forks source link

[Bug]: Error in creating project on VS2022 #158

Closed JGabrielGruber closed 1 year ago

JGabrielGruber commented 1 year ago

OS version/build

Windows 11 Pro 21H2 (22000.318)

MSCLoader version

1.2.8

Description

Hello everyone!

On a fresh windows install, I've been following the docs and it went pretty well, until the step where I should create a project.

As I give the project a name, when I click on create, a window error shows up with the following message:

Original:

---------------------------
Microsoft Visual Studio
---------------------------
O arquivo vstemplate faz referência à classe de assistente "VSIXProject1.WizardImplementation", que não existe no assembly "MSCLoader Templates, Version=1.2.0.0, Culture=neutral, PublicKeyToken=56373c2dca4c3ff7".
---------------------------
OK   
---------------------------

Translated:

---------------------------
Microsoft Visual Studio
---------------------------
The file vstemplate references the helper class "VSIXProject1.WizardImplementation", that does not exist in assembly "MSCLoader Templates, Version=1.2.0.0, Culture=neutral, PublicKeyToken=56373c2dca4c3ff7".
---------------------------
OK   
---------------------------

What can I do?

Attachments

image

piotrulos commented 1 year ago

Are you sure that you downloaded latest vs2022 templates? It should be complete with all references.

You can try to reinstall templates:

Open random empty project in vs, go to extensions > manage extensions and go to installed tab then select mscloader templates and click uninstall, then try installing again vs2022 templates.

obraz

JGabrielGruber commented 1 year ago

Hello, sorry for the delay,

Yes, I've downloaded this template, then, removed it, installed an older version and still didn't get it to work.

In doubt of myself, I did the steps that you've said, and still got the same error message.

I'll try rebooting

Edit: nope, it didn't do the magic

image

piotrulos commented 1 year ago

Idk what could cause that, I cannot reproduce that issue even when uninstalling and installing again.

Only thing I can think of is that your VS install is incomplete.

JGabrielGruber commented 1 year ago

it's okay, what can I look for in my installation?

piotrulos commented 1 year ago

mostly if you have .net stuff installed.

Also there may be other possibility, if you installed VS on system drive, maybe try running VS as admin.

JGabrielGruber commented 1 year ago

I've rechecked my installation, all the stuff listed here are installed:

I've tried runing as admin and got the same error message

Also I've installed the Visual Studio 2015 Tools for Unity image

piotrulos commented 1 year ago

Wait, screenshot says that you have VS 16.11 which is VS2019 not VS2022

You need to install vs2019 templates, not vs2022.

JGabrielGruber commented 1 year ago

Jesus Christ, I'm so much sorry

I'm using VS2019, I swear I thought that I've downloaded the 2022 tough...

I'm sorry for wasting your time @piotrulos May your life be blessed my friend, you're a wonderful person, I hope that with time I can contribute to your work