New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0.0-rc008] Paket pack places two copies of the project binary to the package #2421

konste opened this Issue Jun 13, 2017 · 0 comments


None yet
2 participants

konste commented Jun 13, 2017
Tiny repro attached. Just a single Hello World C# console project.
paket.template looks like this:
type project
authors konste
platform AnyCPU
bin\Release ==> Tools\
The last line is there to copy everything the project produces to the package.
Command paket pack output NuGet produces NuGet package, but HelloWorld.exe is present twice in the same Tools folder - one copy as project primary output and another copy because of bin\Release ==> Tools\ We don't need two copies (I did not even know it is possible to have two identical files in the same folder inside ZIP) so we add extra line to paket.template: !bin\Release\*.exe As the result we get ZERO copies of HelloWorld.exe in the package! There is no way to get one copy of the project primary output - only two or none.
Ideally exclusion clause in the files section should only affect the set of files built by inclusion clauses before it and should not affect primary project output.

@forki forki added the bug label Jun 14, 2017

@forki forki closed this in 7146c1e Jun 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment