/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Razor/Directory.Build.props
130 строк
8 KB
David Wengier
Shape non-official Razor VSIXes for test installs
25 май 2026, 11:26
25 май 2026, 11:26
1ce0d59
Код
Авторство
О чём код?
<?xml version="1.0" encoding="utf-8"?> <Project> <!-- Razor unit test projects are renamed to Roslyn's UnitTests convention during post-merge cleanup. --> <PropertyGroup Condition="'$(IsUnitTestProject)' == '' OR '$(IsIntegrationTestProject)' == ''"> <IsUnitTestProject>false</IsUnitTestProject> <IsUnitTestProject Condition="$(MSBuildProjectName.EndsWith('.UnitTests')) OR $(MSBuildProjectName.EndsWith('.Tests'))">true</IsUnitTestProject> <IsIntegrationTestProject>false</IsIntegrationTestProject> <IsIntegrationTestProject Condition="$(MSBuildProjectName.EndsWith('.IntegrationTests'))">true</IsIntegrationTestProject> <AddPublicApiAnalyzers Condition="'$(IsTestProject)' == 'true' OR '$(IsUnitTestProject)' == 'true' OR '$(IsIntegrationTestProject)' == 'true'">false</AddPublicApiAnalyzers> </PropertyGroup> <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> <Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AspNetCoreSettings.props))\AspNetCoreSettings.props" Condition=" '$(CI)' != 'true' AND '$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), AspNetCoreSettings.props))' != '' " /> <PropertyGroup Label="Razor Versioning"> <MajorVersion>$(RazorMajorVersion)</MajorVersion> <MinorVersion>$(RazorMinorVersion)</MinorVersion> <PatchVersion>$(RazorPatchVersion)</PatchVersion> <PreReleaseVersionLabel>$(RazorPreReleaseVersionLabel)</PreReleaseVersionLabel> <DotNetFinalVersionKind>$(RazorDotNetFinalVersionKind)</DotNetFinalVersionKind> <VersionPrefix>$(RazorVersionPrefix)</VersionPrefix> <AssemblyVersion Condition="'$(OfficialBuild)' == 'true' or '$(DotNetUseShippingVersions)' == 'true'">$(RazorAssemblyVersion)</AssemblyVersion> <VsixVersionPrefix>$(RazorVsixVersionPrefix)</VsixVersionPrefix> <AddinMajorVersion>$(RazorAddinMajorVersion)</AddinMajorVersion> <AddinVersion>$(RazorAddinVersion)</AddinVersion> </PropertyGroup> <PropertyGroup Label="Build Settings"> <LangVersion>preview</LangVersion> <Nullable>enable</Nullable> <GenerateDocumentationFile>true</GenerateDocumentationFile> <StrongNameKeyId>MicrosoftAspNetCore</StrongNameKeyId> <TreatWarningsAsErrors Condition="'$(CI)' == 'true'">true</TreatWarningsAsErrors> <GenerateResxSource>true</GenerateResxSource> <GenerateResxSourceEmitFormatMethods>true</GenerateResxSourceEmitFormatMethods> <ExcludeFromSourceOnlyBuild Condition="'$(IsUnitTestProject)' == 'true'">true</ExcludeFromSourceOnlyBuild> <RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot> <EnableWindowsTargeting Condition="'$(DotNetBuildSourceOnly)' != 'true'">true</EnableWindowsTargeting> <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled> <!-- VS does not require Windows PDBs to be published anymore. --> <PublishWindowsPdb>false</PublishWindowsPdb> <SharedSourceRoot>$(MSBuildThisFileDirectory)src\Shared\</SharedSourceRoot> <SharedFilesRoot>$(SharedSourceRoot)files\</SharedFilesRoot> <!-- Embed source files that are not tracked by the source control manager in the PDB. --> <EmbedUntrackedSources>true</EmbedUntrackedSources> <!-- NU1505: Working around https://github.com/dotnet/sdk/issues/24747 NETSDK1233: Working around https://github.com/dotnet/sdk/issues/51678 until we move our Windows CI to VS2026 images. --> <NoWarn>$(NoWarn);NU1505;NETSDK1233</NoWarn> <!-- Working around https://github.com/microsoft/msbuild/pull/4764 --> <EmbeddedResourceUseDependentUponConvention>false</EmbeddedResourceUseDependentUponConvention> <!-- By default, nothing builds from source build. Individual projects can opt in instead --> <ExcludeFromSourceOnlyBuild>true</ExcludeFromSourceOnlyBuild> <NetFxVS>net472</NetFxVS> <NetVS>net10.0</NetVS> <NetVSCode>net10.0</NetVSCode> <NetVSAndVSCode>$(NetVS)</NetVSAndVSCode> <NetVSAndVSCode Condition="'$(NetVS)' != '$(NetVSCode)'">$(NetVS);$(NetVSCode)</NetVSAndVSCode> </PropertyGroup> <PropertyGroup Label="VSIX Settings"> <RazorVSSDKTargetPlatformRegRootSuffix>RoslynDev</RazorVSSDKTargetPlatformRegRootSuffix> <RazorIsProductComponent>false</RazorIsProductComponent> <RazorVsixInstallationAttributes>AllUsers="true" Experimental="true"</RazorVsixInstallationAttributes> <!-- Base folder for Razor Language Services content inside the chosen installation root --> <RazorExtensionInstallationFolderBase>Microsoft\RazorLanguageServices</RazorExtensionInstallationFolderBase> <!-- Sub-folder used by ServiceHub core components --> <RazorServiceHubCoreSubFolder>ServiceHubCore</RazorServiceHubCoreSubFolder> </PropertyGroup> <PropertyGroup Condition="'$(OfficialBuildId)' != ''"> <RazorExtensionInstallationRoot>CommonExtensions</RazorExtensionInstallationRoot> <RazorVisualStudioInsertionComponent>Microsoft.VisualStudio.RazorExtension</RazorVisualStudioInsertionComponent> <RazorIsProductComponent>true</RazorIsProductComponent> </PropertyGroup> <!-- There are effectively three modes that are needed for our source build TFMs and this is where we calculate them --> <PropertyGroup Condition="'$(DotNetBuildSourceOnly)' == 'true'"> <NetVS>$(NetCurrent)</NetVS> <NetVSCode>$(NetCurrent)</NetVSCode> <NetVSAndVSCode>$(NetVS);$(NetVSCode)</NetVSAndVSCode> </PropertyGroup> <ItemGroup> <AdditionalFiles Include="$(RepositoryRoot)BannedSymbols.txt" /> <!-- This language support type (used for init-only properties) is linked directly into every project to avoid conflicts with the same type that is included in Microsoft.CodeAnalysis.ExternalAccess.Razor, which allows InternalsVisibleTo access to Razor tooling. --> <Compile Condition="'$(SkipLanguageSupport)' != 'true'" Include="$(SharedFilesRoot)LanguageSupport\IsExternalInit.cs" Link="LanguageSupport\IsExternalInit.cs" /> </ItemGroup> <PropertyGroup Label="Package and Assembly Metadata"> <PackageLicenseExpression>MIT</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> <!-- For InternalsVisibleTo items--> <PropertyGroup Label="Public Keys"> <MoqPublicKey>0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7</MoqPublicKey> <RazorKey>0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb</RazorKey> <VisualStudioKey>002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293</VisualStudioKey> </PropertyGroup> </Project>