C
C#•3y ago
veisop

All visual studio versions not being able to install template

please @ me if you respond so I can see it
60 Replies
Angius
Angius•3y ago
You don't use the .nuspec extension there Templates are nuget packages Unless the package is named nuspect... you don't include that dotnet new install Graic.Template.GorillaTagModTemplate
veisop
veisopOP•3y ago
nope didint work
Angius
Angius•3y ago
Try the command from here?
veisop
veisopOP•3y ago
no let me try real qucik dotnet new install Graic.Template.GorillaTagModTemplate.nuspec::1.2.1 this right?
Angius
Angius•3y ago
Worked on my machine
veisop
veisopOP•3y ago
veisop
veisopOP•3y ago
it says is not found in NuGet feeds
Angius
Angius•3y ago
Huh...
veisop
veisopOP•3y ago
am I missing a dependency or sum
Angius
Angius•3y ago
dotnet nuget list source
veisop
veisopOP•3y ago
Angius
Angius•3y ago
Ah dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
veisop
veisopOP•3y ago
ok it added
Angius
Angius•3y ago
For whatever reason the nuget.org was removed from your nuget sources Yeah, try adding the template again
veisop
veisopOP•3y ago
ok omg it worked thank you so much
Angius
Angius•3y ago
Nice
veisop
veisopOP•3y ago
it installed but its not showing up
Angius
Angius•3y ago
Did you follow the instructions?
Angius
Angius•3y ago
veisop
veisopOP•3y ago
yes
veisop
veisopOP•3y ago
Angius
Angius•3y ago
Last screenshot says it was succesful So a project using this template should've been created No clue what -A [ve] --force is supposed to do, but whatever it was it went well
veisop
veisopOP•3y ago
i had to do --force because of change to existing files
Angius
Angius•3y ago
Also, read the second paragraph of my screenshot very carefully
veisop
veisopOP•3y ago
Its enabled let me try something real quick
veisop
veisopOP•3y ago
veisop
veisopOP•3y ago
😭
Angius
Angius•3y ago
Did you go to Tools/Options/Environment/Preview Features and checked Show all .NET Core Templates in the NEw Project Dialog?
veisop
veisopOP•3y ago
yes
veisop
veisopOP•3y ago
Angius
Angius•3y ago
Did you restart VS as it says?
veisop
veisopOP•3y ago
yes
Angius
Angius•3y ago
Huh Well, no idea then ¯\_(ツ)_/¯
veisop
veisopOP•3y ago
😭
Angius
Angius•3y ago
It works via the CLI, though, so problem solved Just use that
veisop
veisopOP•3y ago
whats CLI
Angius
Angius•3y ago
Command Line Interface
veisop
veisopOP•3y ago
ok
Angius
Angius•3y ago
dotnet new gtmod works, so just use that
veisop
veisopOP•3y ago
where does it create it
Angius
Angius•3y ago
uh Where you are...? If you navigate to G:/UngaBunga it'll be created in G:/UngaBunga
Angius
Angius•3y ago
Here, in other words
veisop
veisopOP•3y ago
oh shoot i got it
Angius
Angius•3y ago
Use cd to navigate to other directories
veisop
veisopOP•3y ago
thanks
Angius
Angius•3y ago
And mkdir to make new directories
veisop
veisopOP•3y ago
ok sorry buy another question not involving the template thingy
veisop
veisopOP•3y ago
veisop
veisopOP•3y ago
do you know why I cant see the properties
Angius
Angius•3y ago
How did you open this project? Not by double-clicking on the .csproj file I presume
veisop
veisopOP•3y ago
no should I have done that
Angius
Angius•3y ago
Yes Always open either .sln files or .csproj files C# is inherently project-based, opening a folder or a loose .cs file won't do much good
veisop
veisopOP•3y ago
through visual I opened through local file
Angius
Angius•3y ago
veisop
veisopOP•3y ago
how would I update through code or just update normally
veisop
veisopOP•3y ago
thanks
Angius
Angius•3y ago
dotnet --list-sdks
veisop
veisopOP•3y ago
Angius
Angius•3y ago
Huh, that seems to be in order No clue, sorry I assume you'd find more help on some Harmony Discord, Gorilla Tag modding one, etc Or maybe someone else will have an idea
veisop
veisopOP•3y ago
ok

Did you find this page helpful?