Language differentiation (source code)

Topics: General
May 2, 2013 at 8:19 AM
I'm quite new to nuget, so please forgive me if this question is dump, but can I somehow differenciate the code-language in NuGet, e.g. that I package something like

content\net20\vb\CustomEnum.vb
content\net20\cs\CustomEnum.cs.pp
content\net40\vb\CustomEnum.vb
content\net40\cs\CustomEnum.cs.pp

and if I add the package to a VB-project it adds the vb code, and if I add the package to a C#-project it takes the C# code?
May 2, 2013 at 2:31 PM
No you can't do that in NuGet directly.

You can write a install.ps1 script to detect the language type of the current project and add respective files manually.
Jun 3, 2014 at 12:23 PM
Is there an example in the documentation of how to do this, or is there a Nuget package online that I can examine?