GithubHelp home page GithubHelp logo

sliekens / buildpackage Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 28 KB

Build NuGet packages the easy way

Home Page: https://www.nuget.org/packages/BuildPackage/

License: MIT License

PowerShell 100.00%

buildpackage's Issues

Is BasePath still needed?

Removing BasePath does not seem to break anything so consider removing it. Right now it breaks projects where the nuspec file contains relative paths.

Error executing Install.ps1

I created new library project targeting .NET Framework 4.5.1 and referenced several 4.0.0 libraries. Then I run Install-Package BuildPackage and get following errors:

Executing script file 'C:\Users\Sample Company\documents\visual studio 2015\Projects\SampleLibrariesCoreNuget\packages\BuildPackage.2.3.0\tools\Install.ps1'
Cannot index into a null array.
At C:\Users\Sample Company\documents\visual studio 2015\Projects\SampleLibrariesCoreNuget\packages\BuildPackage.2.3.0\tools\Install.ps1:3 char:1
+ $fullPath = $configFile.Properties["FullPath"].Value
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray

Get-Content : Cannot bind argument to parameter 'Path' because it is null.
At C:\Users\Sample Company\documents\visual studio 2015\Projects\SampleLibrariesCoreNuget\packages\BuildPackage.2.3.0\tools\Install.ps1:4 char:28
+ [xml]$config = Get-Content $fullPath
+                            ~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-Content], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.GetContentCommand

Select-Xml : Cannot validate argument on parameter 'Xml'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
At C:\Users\Sample Company\documents\visual studio 2015\Projects\SampleLibrariesCoreNuget\packages\BuildPackage.2.3.0\tools\Install.ps1:5 char:19
+ $nuget = $config |select-xml "//package[@id='NuGet.CommandLine']"
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Select-Xml], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.SelectXmlCommand
Successfully installed 'BuildPackage 2.3.0' to SampleLibrariesCoreNuget
Executing nuget actions took 720,6 ms
Time Elapsed: 00:00:01.5435979

Package is installed. Build fails, but package is being created successfully (but nupkg is only some kB big, source libararies are circa 50 MB in total).
Cannot evaluate the item metadata "%(FileName)". The item metadata "%(FileName)" cannot be applied to the path "Truing to compile package from "SampleLibrariesCoreNuget.csproj".". Illegal characters in path.

I guess that's not the expected output?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.