Directory.Build.props (56 lines of code) (raw):

<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot> <RepoEngPath>$(MSBuildThisFileDirectory)eng</RepoEngPath> <RepoSrcPath>$(RepoRoot)src</RepoSrcPath> <CurrentDotnetFramework>net9.0</CurrentDotnetFramework> <IsTestProject Condition="$(MSBuildProjectName.EndsWith('.Tests'))">true</IsTestProject> <IsNoDocProject Condition="$(MSBuildProjectName.StartsWith('NoDocs'))">true</IsNoDocProject> <CentralPackagesFile>$(MSBuildThisFileDirectory)Packages.Data.props</CentralPackagesFile> <AzureCoreSharedSources>$(MSBuildThisFileDirectory)/src/assets/Azure.Core.Shared/</AzureCoreSharedSources> <FakeAzureCoreTestFrameworkSources>$(MSBuildThisFileDirectory)/src/assets/TestFramework/</FakeAzureCoreTestFrameworkSources> <ShouldUseCentralVersions Condition="'$(ShouldUseCentralVersions)' == ''">true</ShouldUseCentralVersions> <NoWarn Condition="'$(IsTestGenerationTestProject)' == 'true'">$(NoWarn);CS1591</NoWarn> <NoWarn>$(NoWarn);NU5105;AZPROVISION001</NoWarn> <!-- Test client libraries won't be in the approved namespace list --> <NoWarn Condition="'$(IsTestGenerationSrcProject)' == 'true'">$(NoWarn);AZC0001</NoWarn> <!-- Test client libraries can have single word class names --> <NoWarn Condition="'$(IsTestGenerationSrcProject)' == 'true'">$(NoWarn);AZC0012</NoWarn> <!-- TODO we should figure out how to make our generator create the right thing for these two warnings https://github.com/Azure/autorest.csharp/issues/3706 --> <NoWarn Condition="'$(IsTestGenerationSrcProject)' == 'true'">$(NoWarn);AZC0006;AZC0007</NoWarn> <!-- TODO new project need this--> <NoWarn Condition="'$(IsTestGenerationSrcProject)' == 'true'">$(NoWarn);AZC0008</NoWarn> <NoWarn Condition="'$(IsUnbranded)' == 'true'">AZC0107</NoWarn> <NoWarn Condition="'$(IsNoDocProject)' == 'true'">$(NoWarn);CS1591</NoWarn> <NoWarn Condition="'$(IsTestGenerationSampleProject)' == 'true'">$(NoWarn);CS1591</NoWarn> <IncludeSharedSourceInLocalBuild Condition="!$(MSBuildProjectName.StartsWith('AutoRest.')) And '$(IsTestGenerationTestProject)' != 'true'">true</IncludeSharedSourceInLocalBuild> </PropertyGroup> <!-- Setup default project properties --> <PropertyGroup> <Configuration Condition="'$(Configuration)' == ''">Debug</Configuration> <Platform Condition="'$(Platform)' == ''">AnyCPU</Platform> <PlatformName Condition="'$(PlatformName)' == ''">$(Platform)</PlatformName> </PropertyGroup> <!-- Setup common output paths --> <PropertyGroup> <ArtifactsDir Condition="'$(ArtifactsDir)' == ''">$(RepoRoot)artifacts\</ArtifactsDir> <ArtifactsObjDir>$(ArtifactsDir)obj\</ArtifactsObjDir> <ArtifactsBinDir>$(ArtifactsDir)bin\</ArtifactsBinDir> <ArtifactsPackagesDir>$(ArtifactsDir)packages\$(Configuration)\</ArtifactsPackagesDir> <TreatWarningsAsErrors>true</TreatWarningsAsErrors> <OutDirName Condition="'$(OutDirName)' == ''">$(MSBuildProjectName)</OutDirName> <BaseOutputPath Condition="'$(BaseOutputPath)' == ''">$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)$(OutDirName)\'))</BaseOutputPath> <OutputPath Condition="'$(PlatformName)' == 'AnyCPU'">$(BaseOutputPath)$(Configuration)\</OutputPath> <OutputPath Condition="'$(PlatformName)' != 'AnyCPU'">$(BaseOutputPath)$(PlatformName)\$(Configuration)\</OutputPath> <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)' == ''">$([System.IO.Path]::GetFullPath('$(ArtifactsObjDir)$(OutDirName)\'))</BaseIntermediateOutputPath> <IntermediateOutputPath Condition="'$(PlatformName)' == 'AnyCPU'">$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath> <IntermediateOutputPath Condition="'$(PlatformName)' != 'AnyCPU'">$(BaseIntermediateOutputPath)$(PlatformName)\$(Configuration)\</IntermediateOutputPath> <PackageOutputPath>$(ArtifactsPackagesDir)</PackageOutputPath> <CodeAnalysisRuleSet>$(RepoEngPath)\CodeAnalysis.ruleset</CodeAnalysisRuleSet> </PropertyGroup> <PropertyGroup Condition="'$(IsUnbranded)' != 'true'"> <SignAssembly>true</SignAssembly> <AssemblyOriginatorKeyFile>$(RepoEngPath)/AzureSDKClient.snk</AssemblyOriginatorKeyFile> <AssemblyOriginatorKeyFile Condition="$(IsTestProject) == 'true'">$(RepoEngPath)/AzSdkTestLibKey.snk</AssemblyOriginatorKeyFile> <DelaySign>false</DelaySign> <PublicSign>false</PublicSign> </PropertyGroup> <PropertyGroup> <ImportDefaultReferences>false</ImportDefaultReferences> <LangVersion>latest</LangVersion> </PropertyGroup> </Project>