ant-design-blazor/components/AntDesign.csproj

89 lines
3.9 KiB
XML
Raw Normal View History

<Project Sdk="Microsoft.NET.Sdk.Razor">
2019-12-04 16:46:08 +08:00
<PropertyGroup>
<TargetFrameworks>netstandard2.1;net5</TargetFrameworks>
<LangVersion>9.0</LangVersion>
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>
<Copyright>.NET Foundation and Contributors</Copyright>
2019-12-05 16:23:33 +08:00
<Authors>James Yeung</Authors>
2020-03-26 13:09:53 +08:00
<PackageIcon>logo.png</PackageIcon>
<NoWarn>CA2007</NoWarn>
2020-10-31 14:21:48 +08:00
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
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>
<ItemGroup>
<Content Remove="locales\*.json" />
<EmbeddedResource Include="locales\*.json" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework) == 'netstandard2.1'">
2020-07-03 13:37:40 +08:00
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="3.1.0" />
</ItemGroup>
<ItemGroup Condition="$(TargetFramework) == 'net5'">
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.DataAnnotations.Validation" Version="3.2.0-rc1.20223.4" />
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="OneOf" Version="2.1.155" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
2019-12-04 16:46:08 +08:00
</ItemGroup>
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>