ساخت بستههای نیوگت مخصوص NET Core.
نویسنده: وحید نصیری
تاریخ: ۱۳۹۵/۰۶/۱۹ ۱۴:۱۵
آدرس: www.dntips.ir
| مطالب | ۳۶۹۴ |
| نویسندگان | ۲۷۶ |
| گروههای مطالب | ۱۰۲۴ |
| نقشههای راه | ۱۱۹ |
| دورهها | ۱۴ |
| اشتراکها | ۱۷۹۱۴ |
"scripts": {
"postcompile": [
"dotnet pack --no-build --configuration %compile:Configuration%"
]
} {
"version": "1.1.1.0",
"authors": [ "Vahid Nasiri" ],
"packOptions": {
"owners": [ "Vahid Nasiri" ],
"tags": [ "PdfReport", "Excel", "Export", "iTextSharp", "PDF", "Report", "Reporting", "Persian", ".NET Core" ],
"licenseUrl": "http://www.gnu.org/licenses/old-licenses/lgpl-2.0-standalone.html",
"projectUrl": "https://github.com/VahidN/iTextSharp.LGPLv2.Core"
},
"description": " iTextSharp.LGPLv2.Core is an unofficial port of the last LGPL version of the iTextSharp (V4.1.6) to .NET Core.",
"scripts": {
"postcompile": [
"dotnet pack --no-build --configuration %compile:Configuration%"
]
}
} "configurations": {
"Release": {
"buildOptions": {
"optimize": true,
"platform": "anycpu"
}
}
}, "buildOptions": {
"xmlDoc": true
}, "buildOptions": {
"xmlDoc": true,
"nowarn": [ "1591" ] // 1591: missing xml comment for publicly visible type or member
}, "frameworks": {
"net40": {
"frameworkAssemblies": {
}
},
"net45": {
"frameworkAssemblies": {
}
},
"net46": {
"frameworkAssemblies": {
}
},
"netstandard1.3": {
"imports": "dnxcore50",
"dependencies": {
"NETStandard.Library": "1.6.1",
"System.Globalization.Extensions": "4.3.0",
"System.Reflection": "4.3.0",
"System.Reflection.TypeExtensions": "4.3.0"
}
}
},
#if NET40 // This only compiles for the .NET Framework 4 targets #else // This compiles for all other targets #endif
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Description>desc.</Description>
<VersionPrefix>1.0.0</VersionPrefix>
<Authors>name</Authors>
<TargetFramework>netstandard1.6</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>name</AssemblyName>
<PackageId>name</PackageId>
<PackageTags>MVC;aspnetcore</PackageTags>
<PackageProjectUrl>https://github.com/proj</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/proj/blob/master/LICENSE.md</PackageLicenseUrl>
<PackageTargetFallback>$(PackageTargetFallback);dnxcore50</PackageTargetFallback>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="1.1.2" />
</ItemGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<PlatformTarget>anycpu</PlatformTarget>
</PropertyGroup>
<Target Name="PostcompileScript" AfterTargets="Build">
<Exec Command="dotnet pack --no-build --configuration $(Configuration)" />
</Target>
</Project> <PropertyGroup>
<NoWarn>$(NoWarn);1591</NoWarn>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup> <PropertyGroup>
<TargetFrameworks>net46;netstandard1.3</TargetFrameworks>
</PropertyGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
<Reference Include="System" />
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3' ">
<PackageReference Include="System.Data.Common" Version="4.3.0" />
</ItemGroup> <Project> … <ItemGroup> <Content Include="README.txt"> <Pack>true</Pack> <PackagePath>README.txt</PackagePath> </Content> </ItemGroup> … </Project>
<Target Name="PostcompileScript" AfterTargets="Build">
<Exec Command="dotnet pack --no-build --configuration $(Configuration)" />
</Target> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
<Version>1.1.1</Version>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>
</Project> dotnet pack -c release