fsprojects / ProjectScaffold

A prototypical .NET solution (file system layout and tooling), recommended for F# projects
http://fsprojects.github.io/ProjectScaffold
The Unlicense
516 stars 153 forks source link

build Release not working... #224

Open Thorium opened 8 years ago

Thorium commented 8 years ago

I was trying to test projectscaffold template (quite out-of-the-box), and build Release fails with:

    Paket failed with:
     Could not find a part of the path 'C:\git\MyTest\temp\gh-pages\src\MyTest\bin\Release\MyTest.dll'.
    Running build failed.
    Error:
    System.Exception: Error during packing ..

I don't know why projectscaffold is using this dll from temp\gh-pages. But the bin-folder is not there. Failing target is "NuGet" which is Paket.Pack

giacomociti commented 8 years ago

I experienced something similar (although with an older version of ProjectScaffold). In build.fsx the target ReleaseDocs writes to temp/gh-pages. I think the issue in my case was that the paket command was picking up the gh-pages repo and looking for the dll in the wrong path. I solved it putting a command to clean temp/gh-pages at the end of ReleaseDocs:

CleanDir tempDocsDir

I don't know if this is a systematic issue and it's worth a PR