2020-06-01 14:09:28 +08:00
<Project Sdk= "Microsoft.NET.Sdk.Razor" >
2019-12-04 16:46:08 +08:00
<PropertyGroup >
2020-11-14 23:44:48 +08:00
<TargetFrameworks > netstandard2.1;net5</TargetFrameworks>
2020-11-08 23:29:05 +08:00
<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>
2020-03-28 00:02:11 +08:00
<PackageTags > blazor,ant-design,antd,design,razor,components</PackageTags>
2019-12-05 16:23:33 +08:00
<PackageRequireLicenseAcceptance > false</PackageRequireLicenseAcceptance>
<RepositoryType > git</RepositoryType>
2020-03-26 09:28:00 +08:00
<PackageLicenseExpression > MIT</PackageLicenseExpression>
2021-03-23 17:38:41 +08:00
<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>
2020-09-05 20:27:52 +08:00
<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'" >
2020-05-29 00:33:49 +08:00
<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 -->
2020-03-28 00:02:11 +08:00
<None Include= "logo.png" Pack= "true" PackagePath= "" />
2020-03-26 13:09:53 +08:00
</ItemGroup>
2020-03-19 16:26:02 +08:00
<ItemGroup >
<!-- ignore the tsconfig.json file in package -->
<Content Remove= "tsconfig.json" />
<None Include= "tsconfig.json" CopyToOutputDirectory= "Never" > </None>
</ItemGroup>
2020-09-07 22:46:50 +08:00
<ItemGroup >
<Content Remove= "locales\*.json" />
<EmbeddedResource Include= "locales\*.json" />
</ItemGroup>
2020-11-14 23:44:48 +08:00
<ItemGroup Condition= "$(TargetFramework) == 'netstandard2.1'" >
2020-07-03 13:37:40 +08:00
<PackageReference Include= "Microsoft.AspNetCore.Components.Web" Version= "3.1.0" />
2020-11-14 23:44:48 +08:00
</ItemGroup>
<ItemGroup Condition= "$(TargetFramework) == 'net5'" >
<PackageReference Include= "Microsoft.AspNetCore.Components.Web" Version= "5.0.0" />
</ItemGroup>
<ItemGroup >
2021-01-25 02:05:18 +08:00
<PackageReference Include= "Microsoft.AspNetCore.Components.DataAnnotations.Validation" Version= "3.2.0-rc1.20223.4" />
2020-11-14 23:44:48 +08:00
<PackageReference Include= "Microsoft.CodeAnalysis.FxCopAnalyzers" Version= "3.3.1" >
2020-04-23 17:13:56 +08:00
<PrivateAssets > all</PrivateAssets>
<IncludeAssets > runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
2020-11-14 23:44:48 +08:00
<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') " >
2020-03-07 17:00:14 +08:00
<!-- 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" />
2020-03-07 17:00:14 +08:00
</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" />
2020-03-07 17:00:14 +08:00
</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>