Another way to use a custom or conditional .nuspec file with OctoPack is to add a PropertyGroup to your .csproj file, for example:
<PropertyGroup> <RunOctoPack>true</RunOctoPack> </PropertyGroup> <PropertyGroup> <OctoPackNuSpecFileName Condition="'$(Configuration)' == 'Release'">MyApp.nuspec</OctoPackNuSpecFileName> <OctoPackNuSpecFileName Condition="'$(Configuration)' != 'Release'">MyApp.Debug.nuspec</OctoPackNuSpecFileName> </PropertyGroup>
Put the files MyApp.nuspec and MyApp.Debug.nuspec in the same directory as your .csproj file, and you are good to go.
eskimwier
source share