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

Can't pack project type templates from new csproj files #1594

Closed
rkachowski opened this Issue Apr 11, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@rkachowski

rkachowski commented Apr 11, 2016

Description

After creating a new project via visual studio 2015 community edition and initializing paket, the paket.exe pack command doesn't create a nupkg file as explained in the paket.template documentation.

Repro steps

Please provide the steps required to reproduce the problem

  1. Create a new default class library project via Visual Studio Community 2015
  2. Run paket.exe init to create a blank paket.dependencies file
  3. Run paket.exe install to generate the paket.lock file
  4. Create a paket.template file at the top of the dir with the contents below
  5. Build the solution under the release configuration via Visual Studio
  6. Run paket.exe pack output bin version 1.0.0 templatefile paket.template

paket.template contents

type project
licenseUrl http://opensource.org/licenses/MIT

Expected behavior

Paket bundles the output of the project (in this case ClassLibrary1.dll ) into a nupkg file available in the bin dir.

Actual behavior

Paket runs but does not create the nupkg file. If pack is run before the project is built (i.e. before the ClassLibrary1.dll exists in the bin/Release dir) Paket will error out and mention that it cannot find the output files.

Related information

  • OSX 10.10
  • Paket version 2.58.12.0
  • Mono JIT compiler version 4.2.2

Attached is the sample project - output from a new visual studio class library project

Logs

$ tree
.
├── Class1.cs
├── ClassLibrary1.csproj
├── ClassLibrary1.sln
├── Properties
│   └── AssemblyInfo.cs
├── bin
│   ├── Debug
│   └── Release
│       ├── ClassLibrary1.dll
│       └── ClassLibrary1.pdb
├── obj
│   ├── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   └── TempPE
│   └── Release
│       ├── ClassLibrary1.csproj.FileListAbsolute.txt
│       ├── ClassLibrary1.dll
│       ├── ClassLibrary1.pdb
│       ├── DesignTimeResolveAssemblyReferencesInput.cache
│       └── TempPE
├── packages
├── paket.dependencies
├── paket.lock
└── paket.template
​
10 directories, 14 files
[17:15][~/New folder/ClassLibrary1 (master)]
$ cat paket.template
type project
licenseUrl http://opensource.org/licenses/MIT
[17:15][~/New folder/ClassLibrary1 (master)]
$ mono paket.exe pack output bin version 1.0.0 templatefile paket.template 
Paket version 2.58.12.0
No platform specified; found output path node for the AnyCPU platform after failing to find one for the following:
[ClassLibrary.tar.gz](https://github.com/fsprojects/Paket/files/213318/ClassLibrary.tar.gz)

0 seconds - ready.
[17:15][:~/New folder/ClassLibrary1 (master)]
$ tree
.
├── Class1.cs
├── ClassLibrary1.csproj
├── ClassLibrary1.sln
├── Properties
│   └── AssemblyInfo.cs
├── bin
│   ├── Debug
│   └── Release
│       ├── ClassLibrary1.dll
│       └── ClassLibrary1.pdb
├── obj
│   ├── Debug
│   │   ├── DesignTimeResolveAssemblyReferencesInput.cache
│   │   └── TempPE
│   └── Release
│       ├── ClassLibrary1.csproj.FileListAbsolute.txt
│       ├── ClassLibrary1.dll
│       ├── ClassLibrary1.pdb
│       ├── DesignTimeResolveAssemblyReferencesInput.cache
│       └── TempPE
├── packages
├── paket.dependencies
├── paket.lock
└── paket.template
​
10 directories, 14 files
@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Apr 11, 2016

Member

do you have that sample project for me?

Member

forki commented Apr 11, 2016

do you have that sample project for me?

@rkachowski

This comment has been minimized.

Show comment
Hide comment
@rkachowski

rkachowski Apr 11, 2016

ClassLibrary.tar.gz

i'm not sure why it didn't attach before

rkachowski commented Apr 11, 2016

ClassLibrary.tar.gz

i'm not sure why it didn't attach before

@forki forki closed this in 5fda4b7 Apr 11, 2016

@forki

This comment has been minimized.

Show comment
Hide comment
@forki

forki Apr 11, 2016

Member

thanks for reporting. please retry with the new version.

Member

forki commented Apr 11, 2016

thanks for reporting. please retry with the new version.

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