msbuild
/
Directory.Build.props
90 строк · 4.5 Кб
1<?xml version="1.0" encoding="utf-8"?>
2<Project>3<Import Project="Sdk.props" Sdk="Microsoft.DotNet.Arcade.Sdk" />4
5<PropertyGroup Condition="'$(CopyrightNetFoundation)' != ''">6<Copyright>$(CopyrightNetFoundation)</Copyright>7<PackageLicenseExpression>MIT</PackageLicenseExpression>8</PropertyGroup>9
10<PropertyGroup>11<Product>Microsoft® Build Tools®</Product>12<Configurations>Debug;Release;MachineIndependent</Configurations>13</PropertyGroup>14
15<PropertyGroup>16<FullFrameworkTFM>net472</FullFrameworkTFM>17
18<!--19When updating the version of .NET Core for MSBuild, this property is the 'source of truth'.
20Other locations to update the version number:
21global.json
22eng/cibuild_bootstrapped_msbuild.ps1
23eng/cibuild_bootstrapped_msbuild.sh
24scripts/Deploy-MSBuild.ps1
25src/Framework/README.md
26src/Utilities/README.md
27-->
28<!-- When building in source-only modes, let the TFM float based on what arcade is in use.29When building in normal modes (independent build or a dotnet product build), set explicitly. -->
30<LatestDotNetCoreForMSBuild>net8.0</LatestDotNetCoreForMSBuild>31<LatestDotNetCoreForMSBuild Condition="'$(DotNetBuildFromSource)' == 'true' or '$(DotNetBuildSourceOnly)' == 'true'">$(NetCurrent)</LatestDotNetCoreForMSBuild>32</PropertyGroup>33
34<PropertyGroup>35<DOTNET_INSTALL_DIR Condition="'$(DOTNET_INSTALL_DIR)' == ''">$(RepoRoot).dotnet\</DOTNET_INSTALL_DIR>36
37<!-- Repository and project URLs (used in nuget packages) -->38<RepositoryUrl>https://github.com/dotnet/msbuild</RepositoryUrl>39<PackageProjectUrl>http://go.microsoft.com/fwlink/?LinkId=624683</PackageProjectUrl>40<PackageIcon>MSBuild-NuGet-Icon.png</PackageIcon>41<PackageTags>MSBuild</PackageTags>42
43<TargetMSBuildToolsVersion>Current</TargetMSBuildToolsVersion>44</PropertyGroup>45
46<PropertyGroup>47<GenerateNeutralResourcesLanguageAttribute>false</GenerateNeutralResourcesLanguageAttribute>48
49<!--50NU1507: ManagePackageVersionsCentrally implies source mapping, which we should consider turning on but it's nontrivial
51NU1603: Microsoft.xunit.netcore.extensions package has dependencies to versions which aren't published, so ignore those warnings
52NU5105: we're explicitly opting in to semver2, as is most of .NET Core
53CS1701 and CS1702 are by default ignored by Microsoft.NET.Sdk, but if you define the NoWarn property in Directory.Build.props,
54you don't get those defaults.
55SYSLIB0011: Removing binary formatter will happen as part of a larger .NET-wide effort.
56SYSLIB0037 & SYSLIB0044: The deprecated AssemblyName members could require a bigger refactor for us: https://github.com/dotnet/msbuild/issues/7902
57RS0016 & RS0017: Roslyn analyzers seem to be bugged, claiming that API's that exist don't and vise-versa: https://github.com/dotnet/msbuild/issues/7903
58-->
59
60<NoWarn>$(NoWarn);NU1507;NU1603;NU5105;1701;1702;SYSLIB0011;SYSLIB0037;SYSLIB0044;RS0016;RS0017;</NoWarn>61</PropertyGroup>62
63<!-- Configuration MSBuild for portable (xcopy-install) toolsets: works on WinNT and linux/mac via Mono, isolates from machine environment:64uses only tools installed with it, ignores Registry and GAC and Visual Studio installations to provide the same build experience on all machines -->
65<PropertyGroup Condition="'$(Configuration)' == 'MachineIndependent'">66<DebugSymbols Condition="'$(DebugSymbols)' == ''">true</DebugSymbols>67<Optimize Condition="'$(Optimize)' == ''">true</Optimize>68<DebugType Condition="'$(DebugType)' == ''">none</DebugType>69<MachineIndependentBuild>true</MachineIndependentBuild>70</PropertyGroup>71
72<PropertyGroup>73<DefaultItemExcludes>$(DefaultItemExcludes);*.log</DefaultItemExcludes>74<DefaultItemExcludes>$(DefaultItemExcludes);*.binlog</DefaultItemExcludes>75
76<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>77
78<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>79<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>80<DirectoryPackagesPropsPath>$([MSBuild]::NormalizePath('$(MSBuildThisFileDirectory)', 'eng', 'Packages.props'))</DirectoryPackagesPropsPath>81
82<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>83</PropertyGroup>84
85<!-- Enable SDK supplied netanalyzers for all target frameworks -->86<PropertyGroup>87<EnableNETAnalyzers>true</EnableNETAnalyzers>88</PropertyGroup>89
90</Project>91