简体   繁体   English

Typescript的npm,NuGet和Marketplace下载选项之间有什么区别?

[英]What are the differences among npm, NuGet and Marketplace download options for Typescript?

I use VS pro at work and I am 100% typescript (and React and Node...) beginner dev. 我在工作中使用VS pro,我是100%打字稿(以及React和Node ...)的初学者。 I am also trying to understand how all these things work together, why I'd need a given tool etc, not just copying CLI commands and code lines into files. 我还试图了解所有这些东西是如何协同工作的,为什么我需要给定的工具等,而不仅仅是将CLI命令和代码行复制到文件中。

Here I found there are 3 different sources to download typescript: npm , NuGet and VS Marketplace . 在这里,我发现有3种不同的源可以下载打字稿: npmNuGetVS Marketplace

My guess is npm and NuGet are the same thing just published to different repos but the bits from the Marketplace are always mandatory. 我的猜测是npm和NuGet是同一件事,只是发布到不同的存储库中,但是来自Marketplace的信息始终是必填项。 Is that correct? 那是对的吗?

If not, what are the differences among them? 如果没有,它们之间有什么区别? I am confused. 我很困惑。

What are the differences among npm, NuGet and Marketplace download options for Typescript? Typescript的npm,NuGet和Marketplace下载选项之间有什么区别?

What you understand is correct. 您所了解的是正确的。 npm and nuget are two tools for managing libraries. npm和nuget是用于管理库的两个工具。 TypeScript provides source for two different tools. TypeScript提供了两种不同工具的源代码。 Just like you said, they are in the different repos and the way to get them is different also (one is via npm and another is nuget). 就像您说的那样,它们位于不同的存储库中,并且获取它们的方式也不同(一个是通过npm,另一个是nuget)。

For the VS Marketplace, This is another way to get the TypeScript, integrating the TypeScript into the Visual Studio through Visual Studio extension, which has nothing to do with the way of managing the libraries. 对于VS Marketplace,这是获取TypeScript的另一种方法,它是通过Visual Studio扩展将TypeScript集成到Visual Studio中的,而这与管理库的方式无关。

So, What you understand is correct. 因此,您所了解的是正确的。

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM