зеркало из https://github.com/dotnet/razor.git
64 строки
3.0 KiB
XML
64 строки
3.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project>
|
|
<!--
|
|
We don't follow Arcade conventions for project naming.
|
|
-->
|
|
<PropertyGroup Condition="'$(IsUnitTestProject)' == ''">
|
|
<IsUnitTestProject>false</IsUnitTestProject>
|
|
<IsUnitTestProject Condition="$(MSBuildProjectName.EndsWith('.Test'))">true</IsUnitTestProject>
|
|
</PropertyGroup>
|
|
|
|
<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />
|
|
<Import Project="eng\MPack.props" />
|
|
<Import Project="eng\targets\Npm.Common.props" Condition="'$(MSBuildProjectExtension)' == '.npmproj'" />
|
|
|
|
<Import
|
|
Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AspNetCoreSettings.props))\AspNetCoreSettings.props"
|
|
Condition=" '$(CI)' != 'true' AND '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AspNetCoreSettings.props))' != '' " />
|
|
|
|
<PropertyGroup Label="Build Settings">
|
|
<LangVersion>8.0</LangVersion>
|
|
<StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId>
|
|
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
|
<DebugType>portable</DebugType>
|
|
<PublishWindowsPdb>true</PublishWindowsPdb>
|
|
<GenerateResxSource>true</GenerateResxSource>
|
|
<GenerateResxSourceEmitFormatMethods>true</GenerateResxSourceEmitFormatMethods>
|
|
<ExcludeFromSourceBuild Condition="'$(IsUnitTestProject)' == 'true'">true</ExcludeFromSourceBuild>
|
|
|
|
<SharedSourceRoot>$(MSBuildThisFileDirectory)src\Shared\</SharedSourceRoot>
|
|
|
|
<!-- Embed source files that are not tracked by the source control manager in the PDB. -->
|
|
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
|
|
|
<!-- Working around https://github.com/NuGet/Home/issues/8467 -->
|
|
<NoWarn>$(NoWarn);NU5131</NoWarn>
|
|
|
|
<!-- Working around https://github.com/microsoft/msbuild/pull/4764 -->
|
|
<EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention>
|
|
<CodeAnalysisRuleSet>$(RepoRoot)src/Razor/Microsoft.AspNetCore.Razor.Basic.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)" NoWarn="NU1608" />
|
|
<PackageReference Include="Microsoft.NetCore.Analyzers" Version="$(Tooling_MicrosoftNetCoreAnalyzersPackageVersion)" NoWarn="NU1608" />
|
|
<PackageReference Include="Microsoft.CodeAnalysis.BannedApiAnalyzers" Version="$(Tooling_MicrosoftCodeAnalysisBannedApiAnalyzersPackageVersion)" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<AdditionalFiles Include="$(MSBuildThisFileDirectory)eng\BannedSymbols.txt" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup Label="Package and Assembly Metadata">
|
|
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
|
|
<Product>Microsoft ASP.NET Core</Product>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Label="Warning Suppressions">
|
|
<!--
|
|
Suppress warnings about assembly conflicts. This happens for assemblies that ship in VS so it's irrelevant.
|
|
-->
|
|
<NoWarn>$(NoWarn);MSB3277</NoWarn>
|
|
</PropertyGroup>
|
|
</Project>
|