[Mono-dev] Can a project template reference a NuGet package?

Rafael Teixeira monoman at gmail.com
Tue Jul 29 13:16:03 UTC 2014


Presuming that you are talking about MonoDevelop/XamarinStudio you'll need
to add a packages.xml file to your template and add the needed import and
set the proper nuget properties in the project file to have nuget-support
grab and process the packages during the build. This kind of template will
fail if the plugin for nuget processing is not installed in the IDE (AFAIK
it is not installed by default in MD, not sure if newer versions of XS do
have it in the core install).


Rafael Teixeira
O..:.)oooo


On Tue, Jul 29, 2014 at 6:25 AM, Sergey Khabibullin <x2bool at gmail.com>
wrote:

> How can I reference a NuGet package from an xml-defined project template?
> Is it possible?
>
>        <Project name = "${ProjectName}" directory = ".">
>             <Options Target = "Library" />
>
>             <References>
>                 <!-- NuGet package? -->
>                  <Reference type="Package" refto="System, Version=1.0.5000
> .0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
>             </References>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20140729/615d6d96/attachment.html>


More information about the Mono-devel-list mailing list