Giter Site home page Giter Site logo

Comments (7)

adamralph avatar adamralph commented on August 15, 2024 1

Perhaps it's not the best idea. The best documentation I've found so far says:

Folder Description Action upon package install
tools Powershell scripts and programs accessible from the Package Manager Console The tools folder is added to the PATH environment variable for the Package Manager Console only (Specifically, not to the PATH as set for MSBuild when building the project).

That implies that all the files in that folder should be suitable to appear in the Package Manager Console's PATH, and I don't think that's the case with this package. It would actually be quite nice to be able to run dotnet MinVer.Cli.dll in the Package Manager Console, but it doesn't work because PATH can't be used in that way.

Let's go with your suggestion of a top level MinVer folder then.

from minver.

adamralph avatar adamralph commented on August 15, 2024

Released in alpha 10.

from minver.

bording avatar bording commented on August 15, 2024

@adamralph I was looking at alpha 10 in NuGet Package Explorer and noticed the following:

image

It turns out that as part of the .NET Core Global Tool work, the tools folder also expects subfolders to be TFMs!

Again, not sure if this would actually be a real problem (and possibly only if the PackageType metadata indicates it is a tool package), but I'm still wondering if a top-level MinVer folder would be a better idea, just to avoid any potential complications.

from minver.

adamralph avatar adamralph commented on August 15, 2024

Ah, yes, that is less than ideal. Perhaps a custom folder is indeed best. One more thought though: what if we acknowledge that the CLI is a .NET Core 2.1 app and put it in a tools TFM folder? NPE seems to like it:

from minver.

bording avatar bording commented on August 15, 2024

That does seem like it might work, but I wonder if it's a good idea to put things in that folder structure when it's not actually a global tool?

from minver.

adamralph avatar adamralph commented on August 15, 2024

Looks good:

from minver.

adamralph avatar adamralph commented on August 15, 2024

Released in alpha 11.

from minver.

Related Issues (20)

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.