question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"runtimes" folder isn't a valid TFM

See original GitHub issue

I’m not sure if this causes any actual problem or not, but the current folder structure of the package might not be ideal:

image

NuGet expects folders underneath the build folder to be valid TFMs.

It might be worth moving all of the MinVer.Cli bits into a new MinVer root folder in the package, and then update the path in MinVer.targets to be aware of the change.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
adamralphcommented, Nov 3, 2018

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.

0reactions
adamralphcommented, Nov 3, 2018

Released in alpha 11.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'runtimes' Folder after Publishing a .Net Core App to Azure ...
I have a VS Online account, and have the build/deploy process configured through there. The 'runtimes' folder is certainly not a folder that ......
Read more >
NuGet Warning NU5128
If the package has undeclared dependencies, the project using the package will experience runtime errors.
Read more >
Target frameworks in SDK-style projects - .NET
When you target a framework in an app or library, you're specifying the set of APIs that you'd like to make available to...
Read more >
Windows Explorer crashes when opening folder with a ...
The folder does not crash anymore but still crash on right-click on a .ts file.. Right-click the folder that contains the .ts files...
Read more >
Non-Trivial Multi-Targeting with .NET | by Brad Robinson
NET Framework projects don't support the /runtimes folder. That's fine because net461 is only valid on Windows anyway.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found