Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template "BepInEx 5 Plugin Template" could not be created. #835

Open
Jade-Harleyy opened this issue Apr 19, 2024 · 3 comments
Open

Template "BepInEx 5 Plugin Template" could not be created. #835

Jade-Harleyy opened this issue Apr 19, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Jade-Harleyy
Copy link

What happened?

image

Steps to reproduce

  1. Follow the steps in https://docs.bepinex.dev/articles/dev_guide/plugin_tutorial
  2. Observe error displayed above on step Creating a new plugin project > Initializing a plugin project from template > 3. In the command line prompt, run

BepInEx Distribution

Stable from GitHub

Log outputs

PS C:\WINDOWS\system32> dotnet new bepinex5plugin -n BetterKeybinds -T netstandard2.0 -U 2019.4.40
Template "BepInEx 5 Plugin Template" could not be created.
Failed to create template.
Details: Object reference not set to an instance of an object.


For details on the exit code, refer to https://aka.ms/templating-exit-codes#100

Environment

- OS:
  - Edition:   Windows 10 Home
  - Version:   22H2
  - OS build:  19045.4291

- .NET SDK:
  - Version:           8.0.202
  - Commit:            25674bb2f4
  - Workload version:  8.0.200-manifests.8cf8de6d
@Jade-Harleyy Jade-Harleyy added the bug Something isn't working label Apr 19, 2024
@fusspawn
Copy link

Same issue is present on the BepinEx 6 templates to.


C:\bctool>dotnet new install BepInEx.Templates::2.0.0-be.2 --nuget-source https://nuget.bepinex.dev/v3/index.json --forc
e
The following template packages will be installed:
   BepInEx.Templates::2.0.0-be.2

BepInEx.Templates (version 2.0.0-be.2) is already installed, it will be replaced with version 2.0.0-be.2.
BepInEx.Templates::2.0.0-be.2 was successfully uninstalled.
Success: BepInEx.Templates::2.0.0-be.2 installed the following templates:
Template Name                    Short Name               Language  Tags
-------------------------------  -----------------------  --------  ------------------------------------------
BepInEx 5 Plugin                 bepinex5plugin           [C#]      BepInEx/BepInEx 5/Plugin
BepInEx 6 .NET Core Plugin       bep6plugin_coreclr       [C#]      BepInEx/BepInEx 6/Plugin/CoreCLR/.NET Core
BepInEx 6 .NET Framework Plugin  bep6plugin_netfx         [C#]      BepInEx/BepInEx 6/Plugin/.NET Framework
BepInEx 6 Unity Il2Cpp Plugin    bep6plugin_unity_il2cpp  [C#]      BepInEx/BepInEx 6/Plugin/Unity/Il2Cpp
BepInEx 6 Unity Mono Plugin      bep6plugin_unity_mono    [C#]      BepInEx/BepInEx 6/Plugin/Unity/Mono


C:\bctool>dotnet new bep6plugin_unity_il2cpp -n BcTool
Template "BepInEx 6 Unity Il2Cpp Plugin" could not be created.
Failed to create template.
Details: Object reference not set to an instance of an object.


For details on the exit code, refer to https://aka.ms/templating-exit-codes#100

@amir16yp
Copy link

amir16yp commented May 3, 2024

bumping because im having the same issue :(

@toebeann
Copy link

toebeann commented May 3, 2024

Known issue. Workaround is documented already. This is a good moment to remind people that they can use the search feature.

#778 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants