All visual studio versions not being able to install template
please @ me if you respond so I can see it
60 Replies
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
nope
didint work
Try the command from here?
no
let me try real qucik
dotnet new install Graic.Template.GorillaTagModTemplate.nuspec::1.2.1
this right?
Worked on my machine


it says is not found in NuGet feeds
Huh...
am I missing a dependency or sum
dotnet nuget list source

Ah
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
ok
it added
For whatever reason the nuget.org was removed from your nuget sources
Yeah, try adding the template again
ok
omg it worked
thank you so much
Nice
it installed but its not showing up
Did you follow the instructions?

yes


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 welli had to do --force because of change to existing files
Also, read the second paragraph of my screenshot very carefully
Its enabled
let me try something real quick

ðŸ˜
Did you go to
Tools/Options/Environment/Preview Features
and checked Show all .NET Core Templates in the NEw Project Dialog
?yes

Did you restart VS as it says?
yes
Huh
Well, no idea then ¯\_(ツ)_/¯
ðŸ˜
It works via the CLI, though, so problem solved
Just use that
whats CLI
Command Line Interface
ok
dotnet new gtmod
works, so just use thatwhere does it create it
uh
Where you are...?
If you navigate to
G:/UngaBunga
it'll be created in G:/UngaBunga
Here, in other words

oh shoot
i got it
Use
cd
to navigate to other directoriesthanks
And
mkdir
to make new directoriesok
sorry buy another question not involving the template thingy

do you know why I cant see the properties
How did you open this project?
Not by double-clicking on the
.csproj
file I presumeno
should I have done that
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 goodthrough visual I opened through local file


how would I update through code or just update normally

thanks
dotnet --list-sdks

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
ok