在Visual Studio 2022中使用Custom .NET核心模板
我已经创建了一个准骨 git-repository with github Action 发布包含2个.NET模板的Nuget软件包。可以使用这些模板安装这些模板
dotnet new --install MintPlayer.AspNetCore.IdentityServer.Templates
,然后您可以使用Visual Studio 2022中的这些模板创建一个新项目
dotnet new id-provider
,即使我添加了.template.config/ide.host.json
文件:
{
"$schema": "http://json.schemastore.org/vs-2017.3.host",
"order": 0,
"icon": "music_note_64.png",
"symbolInfo": [
]
}
我还需要做什么才能将它们带入Visual Studio 2022?我是否需要一个vSix软件包,例如此示例?是否有必要将VSIX上传到Visual Studio Marketplace?
I've created a bare-bone git-repository with a Github Action which builds and publishes a nuget package containing 2 .NET templates. These templates can be installed using
dotnet new --install MintPlayer.AspNetCore.IdentityServer.Templates
Then you can create a new project using
dotnet new id-provider
But these templates aren't available from Visual Studio 2022, even though I've added the .template.config/ide.host.json
file:
{
"$schema": "http://json.schemastore.org/vs-2017.3.host",
"order": 0,
"icon": "music_note_64.png",
"symbolInfo": [
]
}
What do I need to do to get them into Visual Studio 2022 too? Do I need a VSIX package, like in this example? Is it necessary to upload a VSIX to the Visual Studio Marketplace?
Here's a similar question, but it's from when this was an experimental feature. Now this option doesn't seem to exist anymore.
Here too they mention the experimental feature which I can't find anymore...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,显然我在
template.json
文件中缺少以下内容,看来您还必须服用以下帐户:
因此,如果您希望它们在Visual Studio中以2为2单独的模板,您需要不同的值
group Indidentity
Ok so apparently I was missing the following in the
template.json
fileAnd it seems that you also have to take the following into account:
So if you want them in Visual Studio as 2 separate templates, you need different values for
groupIdentity