ant-design-blazor/components/AntDesign.csproj

73 lines
3.3 KiB
XML
Raw Normal View History

<Project Sdk="Microsoft.NET.Sdk.Razor">
2019-12-04 16:46:08 +08:00
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
2019-12-04 16:46:08 +08:00
<OutputType>Library</OutputType>
<IsPackable>true</IsPackable>
<RazorLangVersion>3.0</RazorLangVersion>
2019-12-05 16:23:33 +08:00
<Description>Ant Design components for Blazor and Razor Components</Description>
2020-04-28 00:13:43 +08:00
<PackageProjectUrl>https://github.com/ant-design-blazor/ant-design-blazor</PackageProjectUrl>
<RepositoryUrl>https://github.com/ant-design-blazor/ant-design-blazor</RepositoryUrl>
<PackageTags>blazor,ant-design,antd,design,razor,components</PackageTags>
2019-12-05 16:23:33 +08:00
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2019-12-05 16:23:33 +08:00
<Copyright>James Yeung</Copyright>
<Authors>James Yeung</Authors>
2020-03-26 13:09:53 +08:00
<PackageIcon>logo.png</PackageIcon>
2019-12-04 16:46:08 +08:00
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DocumentationFile>AntDesign.xml</DocumentationFile>
2019-12-04 16:46:08 +08:00
</PropertyGroup>
2020-03-26 13:09:53 +08:00
<ItemGroup>
<!-- The nuget package icon -->
<None Include="logo.png" Pack="true" PackagePath="" />
2020-03-26 13:09:53 +08:00
</ItemGroup>
<ItemGroup>
<!-- ignore the tsconfig.json file in package -->
<Content Remove="tsconfig.json" />
<None Include="tsconfig.json" CopyToOutputDirectory="Never"></None>
</ItemGroup>
2019-12-04 16:46:08 +08:00
<ItemGroup>
2020-07-03 13:37:40 +08:00
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.0" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
2020-03-15 23:54:48 +08:00
<PackageReference Include="OneOf" Version="2.1.151" />
2020-07-03 13:37:40 +08:00
<PackageReference Include="Microsoft.Extensions.Http" Version="3.1.0" />
2019-12-04 16:46:08 +08:00
</ItemGroup>
2020-03-27 14:45:36 +08:00
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' And '$(SolutionDir)'==''">
<SolutionDir>../</SolutionDir>
</PropertyGroup>
2020-03-17 13:42:54 +08:00
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SolutionDir)node_modules') ">
<!-- Ensure Node.js is installed -->
<Exec Command="node --version" ContinueOnError="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode" />
</Exec>
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
2020-03-17 13:42:54 +08:00
<Exec WorkingDirectory="$(SolutionDir)" Command="npm install" />
</Target>
2020-03-17 13:42:54 +08:00
<Target Name="DebugRunGulp" BeforeTargets="DebugEnsureNodeEnv" Condition=" '$(Configuration)' == 'Debug' And Exists('$(SolutionDir)node_modules') ">
<Exec WorkingDirectory="$(SolutionDir)" Command="npm run gulp:components" />
</Target>
2020-03-11 17:35:30 +08:00
<Target Name="PublishRunGulp" AfterTargets="ComputeFilesToPublish">
2020-03-17 13:42:54 +08:00
<Exec WorkingDirectory="$(SolutionDir)" Command="npm install" />
<Exec WorkingDirectory="$(SolutionDir)" Command="npm run gulp:components" />
2020-03-07 16:40:38 +08:00
</Target>
2019-12-04 16:46:08 +08:00
<ItemGroup>
<Content Update="**\*.razor">
<Pack>false</Pack>
</Content>
</ItemGroup>
</Project>