I look after a framework which has 3 projects:
Front End UI
\bin
\my front end dlls
\images
\theimages.png
API
\bin
\my API dlls
Database Migrations
\bin
\my migration dlls
My setup/structure in IIS is as follow:
Front End UI (Top level IIS Site)
\bin
\my front end dlls
\Database Migrations
\my migration dlls
\images
\theimages.png
\API (Converted to an App in IIS)
\bin
\my API dlls
I would like my nuget package to output to this structure.
Users will create a new blank project in Visual Studio, and add this nuget package. That would give them the structure as shown in the IIS bit above. They will only add a couple of config files to this new project.
In IIS they will then create a new site, point it to Front End, and convert the API folder to an app.
Should be quite an easy setup.
My problem is that I can create a nuspec file, and manually include the API and Migrator files into content\API\bin
and content\bin\Database Migrators
but the problem then is that the default .gitignore file will exclude those sub bin folders by default and those dlls won't be committed.
I'd really want to prevent having to have the developers tweak the .gitignore file to force inclusion of the API\bin
and Database Migrators\bin
folders if possible.
Is there a better way to do what I'm doing here?
Cheers,