ProjectScaffold icon indicating copy to clipboard operation
ProjectScaffold copied to clipboard

build Release not working...

Open Thorium opened this issue 9 years ago • 1 comments

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

Thorium avatar Dec 11 '15 10:12 Thorium

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

giacomociti avatar Aug 02 '16 00:08 giacomociti