Home > Blockchain >  package.json alternative for a c# dotnet project
package.json alternative for a c# dotnet project

Time:11-03

in the nodejs project we have a package.json to inform some information about the project, version, author, description and etc, what would be the file for a dotnet project? would it be a package.json too?

CodePudding user response:

You can specify this information directly in the .csproj file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <PackageId>Azure.Storage.Blobs</PackageId>
    <Version>12.4.0</Version>
    <Authors>your_name</Authors>
    <Company>your_company</Company>
    <PackageTags>Microsoft Azure Storage Blobs;Microsoft;Azure;Blobs;Blob;Storage;StorageScalable</PackageTags>
    <Description>
      This client library enables working with the Microsoft Azure Storage Blob service for storing binary and text data.
    </Description>
  </PropertyGroup>
</Project>

Or via .nuspec file.

  • Related