NuGet Packages in Visual Studio Project Template as New Project

When include NuGet packages in Visual Studio project template, a modification will need to be done if the template will be used as new project.

Modify .vstemplate file:

<VSTemplate>
        <packages repository="template">
            ...
        </packages>
    </WizardData>
</VSTemplate>

Notice repository attribute in <packages> node.

All the .nupkg files must be placed in the root directory of project template zip file.

3 thoughts on “NuGet Packages in Visual Studio Project Template as New Project”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s