Skip to content
This repository was archived by the owner on Jun 13, 2024. It is now read-only.
This repository was archived by the owner on Jun 13, 2024. It is now read-only.

Publish-Module keeps reporting it can't build the NuGet package #51

@jianyunt

Description

@jianyunt

From @heaths on August 15, 2015 16:54

Whenever I try to run publish-module on a valid module with strong-named signed assemblies, I get various errors. First it was reporting that Find-Module couldn't find my module (well, yeah - I was trying to publish the first version). If I modified psget.psm1 to ignore that error, later I was getting errors on line 2880 of psget.psm1 (on Win10 RTM). NuGet reported that a type couldn't be loaded (whether I used a loaded module, discovered module, or directory path) but no errors in the $Error collection contained the LoaderException referenced (apparently this exception occurred in the NuGet process). I modified psget.psm1 to spit out the $nospec variable and used nugget 2.8.6 (in my PATH, if that matters for the error at hand) to build a .nupkg successfully. I pushed that via "nuget push" and finally got it published myself. But then Install-Module failed with the same error!

As a test, I tried using Install-Module on PSReadline and that also failed with the same error.

I'm on Win10 RTM with all updates applied, and had VS2013 and VS2015 (which has nuget v3, but should be completely isolated currently) with nuget 2.8.6 in my path.

I tried to update PackageManagement and PowerShellGet via the PackageManagement module but it reported they were up to date (for the former) or not found (for the latter).

Copied from original issue: OneGet/oneget#146

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions