We have added OctoPack to few our projects that need packaging (Main website and one additional website this a library project). The problem is that during build process second website is build dynamically using publishing profile located in MainWebsite/Properties/PublishProfiles/FileSysPackaging.pubxml. In publish profile some compiled folders and files copied to secondary website. So we get that Nuget package produced by OctoPack for secondary website doesn’t contain files and folders that are expected, since he is ignoring publishing profile. So are there any ways for Nuget or OctoPack to honor our publishing profile? That are possible solutions for this problem?
Thanks for reaching out. I’m afraid Octopack won’t be able to work in this scenario. The best solution for this would be to setup a separate NuGet step to pack your application from a specific directory once all the necessary files were built.
Thanks, I was afraid we will need to use Nuget for this. Could you please provide some example or something, I not very familiar how this is possible via Nuget. So basically we need to get files from NuGet package for main website and then create new Nuget package based on dll from first package, or what are the correct steps. We are using TeamCity to build and package those websites