committed by
GitHub
8 changed files with 43 additions and 91 deletions
@ -1,17 +1,18 @@ |
|||||
<Project> |
<Project> |
||||
<Import Project="$(MSBuildThisFileDirectory)/build/AvaloniaPublicKey.props"/> |
<Import Project="$(MSBuildThisFileDirectory)/build/AvaloniaPublicKey.props"/> |
||||
<Import Project="$(MSBuildThisFileDirectory)/build/TargetFrameworks.props"/> |
<Import Project="$(MSBuildThisFileDirectory)/build/TargetFrameworks.props"/> |
||||
<Import Project="$(MSBuildThisFileDirectory)/build/WarnAsErrors.props" /> |
|
||||
<PropertyGroup> |
<PropertyGroup> |
||||
<PackageOutputPath Condition="'$(PackageOutputPath)' == ''">$(MSBuildThisFileDirectory)build-intermediate/nuget</PackageOutputPath> |
<PackageOutputPath Condition="'$(PackageOutputPath)' == ''">$(MSBuildThisFileDirectory)build-intermediate/nuget</PackageOutputPath> |
||||
<AvaloniaPreviewerNetCoreToolPath>$(MSBuildThisFileDirectory)\src\tools\Avalonia.Designer.HostApp\bin\$(Configuration)\$(AvsCurrentTargetFramework)\Avalonia.Designer.HostApp.dll</AvaloniaPreviewerNetCoreToolPath> |
<AvaloniaPreviewerNetCoreToolPath>$(MSBuildThisFileDirectory)\src\tools\Avalonia.Designer.HostApp\bin\$(Configuration)\$(AvsCurrentTargetFramework)\Avalonia.Designer.HostApp.dll</AvaloniaPreviewerNetCoreToolPath> |
||||
<!-- https://github.com/dotnet/msbuild/issues/2661 --> |
<!-- https://github.com/dotnet/msbuild/issues/2661 --> |
||||
<AddSyntheticProjectReferencesForSolutionDependencies>false</AddSyntheticProjectReferencesForSolutionDependencies> |
<AddSyntheticProjectReferencesForSolutionDependencies>false</AddSyntheticProjectReferencesForSolutionDependencies> |
||||
<RunApiCompat>False</RunApiCompat> |
<RunApiCompat>False</RunApiCompat> |
||||
<LangVersion>14.0</LangVersion> |
<LangVersion>14.0</LangVersion> |
||||
<CreateHardLinksForCopyAdditionalFilesIfPossible>true</CreateHardLinksForCopyAdditionalFilesIfPossible> |
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == ''">$(AvnTreatWarningsAsErrors)</TreatWarningsAsErrors> |
||||
<CreateHardLinksForCopyFilesToOutputDirectoryIfPossible>true</CreateHardLinksForCopyFilesToOutputDirectoryIfPossible> |
<TreatWarningsAsErrors Condition="'$(TreatWarningsAsErrors)' == '' And '$(Configuration)' == 'Release'">true</TreatWarningsAsErrors> |
||||
<CreateHardLinksForCopyLocalIfPossible>true</CreateHardLinksForCopyLocalIfPossible> |
<CreateHardLinksForCopyAdditionalFilesIfPossible>true</CreateHardLinksForCopyAdditionalFilesIfPossible> |
||||
<CreateHardLinksForPublishFilesIfPossible>true</CreateHardLinksForPublishFilesIfPossible> |
<CreateHardLinksForCopyFilesToOutputDirectoryIfPossible>true</CreateHardLinksForCopyFilesToOutputDirectoryIfPossible> |
||||
|
<CreateHardLinksForCopyLocalIfPossible>true</CreateHardLinksForCopyLocalIfPossible> |
||||
|
<CreateHardLinksForPublishFilesIfPossible>true</CreateHardLinksForPublishFilesIfPossible> |
||||
</PropertyGroup> |
</PropertyGroup> |
||||
</Project> |
</Project> |
||||
|
|||||
@ -1,11 +1,7 @@ |
|||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
<!-- |
|
||||
The Nullable annotations on netstandard2.0 are incomplete and incorrect in places. Ignore |
|
||||
nullable warnings before .NET 6 and make them errors on later target frameworks. |
|
||||
--> |
|
||||
<PropertyGroup> |
<PropertyGroup> |
||||
<Nullable>enable</Nullable> |
<Nullable>enable</Nullable> |
||||
<WarningsAsErrors Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">$(WarningsAsErrors);nullable</WarningsAsErrors> |
<!-- The nullable annotations on netstandard2.0 are incomplete and incorrect in places. Ignore them. --> |
||||
<NoWarn Condition="!$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">$(NoWarn);nullable</NoWarn> |
<NoWarn Condition="'$(TargetFramework)' == 'netstandard2.0'">$(NoWarn);nullable</NoWarn> |
||||
</PropertyGroup> |
</PropertyGroup> |
||||
</Project> |
</Project> |
||||
|
|||||
@ -1,28 +1,16 @@ |
|||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
||||
|
|
||||
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))"> |
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))"> |
||||
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings> |
<SuppressTrimAnalysisWarnings>false</SuppressTrimAnalysisWarnings> |
||||
<EnableTrimAnalyzer>true</EnableTrimAnalyzer> |
<EnableTrimAnalyzer>true</EnableTrimAnalyzer> |
||||
<TrimmerSingleWarn>false</TrimmerSingleWarn> |
<TrimmerSingleWarn>false</TrimmerSingleWarn> |
||||
<IsTrimmable>true</IsTrimmable> |
<IsTrimmable>true</IsTrimmable> |
||||
</PropertyGroup> |
|
||||
|
|
||||
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))"> |
|
||||
<IsAotCompatible Condition="'$(IsAotCompatible)' == ''">true</IsAotCompatible> |
<IsAotCompatible Condition="'$(IsAotCompatible)' == ''">true</IsAotCompatible> |
||||
|
<ILLinkTreatWarningsAsErrors>$(TreatWarningsAsErrors)</ILLinkTreatWarningsAsErrors> |
||||
</PropertyGroup> |
</PropertyGroup> |
||||
|
|
||||
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))"> |
|
||||
<ILLinkTreatWarningsAsErrors>true</ILLinkTreatWarningsAsErrors> |
|
||||
<!-- Trim warnings --> |
|
||||
<WarningsAsErrors>$(WarningsAsErrors);IL2000;IL2001;IL2002;IL2003;IL2004;IL2005;IL2006;IL2007;IL2008;IL2009;IL2010;IL2011;IL2012;IL2013;IL2014;IL2015;IL2016;IL2017;IL2018;IL2019;IL2020;IL2021;IL2022;IL2023;IL2024;IL2025;IL2026;IL2027;IL2028;IL2029;IL2030;IL2031;IL2032;IL2033;IL2034;IL2035;IL2036;IL2037;IL2038;IL2039;IL2040;IL2041;IL2042;IL2043;IL2044;IL2045;IL2046;IL2047;IL2048;IL2049;IL2050;IL2051;IL2052;IL2053;IL2054;IL2055;IL2056;IL2057;IL2058;IL2059;IL2060;IL2061;IL2062;IL2063;IL2064;IL2065;IL2066;IL2067;IL2068;IL2069;IL2070;IL2071;IL2072;IL2073;IL2074;IL2075;IL2076;IL2077;IL2078;IL2079;IL2080;IL2081;IL2082;IL2083;IL2084;IL2085;IL2086;IL2087;IL2088;IL2089;IL2090;IL2091;IL2092;IL2093;IL2094;IL2095;IL2096;IL2097;IL2098;IL2099;IL2100;IL2101;IL2102;IL2103;IL2104;IL2105;IL2106;IL2107;IL2108;IL2109;IL2110;IL2111;IL2112;IL2113;IL2114;IL2115;IL2116;IL2117;IL2118;IL2119;IL2120;IL2121;IL2122;IL2123;IL2124;IL2125;IL2126;IL2127;IL2128;IL2129;IL2130;IL2131;IL2132;IL2133;IL2134;IL2135;IL2136;IL2137;IL2138;IL2139;IL2140;IL2141;IL2142;IL2143;IL2144;IL2145;IL2146;IL2147;IL2148;IL2149;IL2150;IL2151;IL2152;IL2153;IL2154;IL2155;IL2156;IL2157</WarningsAsErrors> |
|
||||
<!-- NativeAOT warnings --> |
|
||||
<WarningsAsErrors Condition="'$(IsAotCompatible)' == 'true'">$(WarningsAsErrors);IL3050;IL3051;IL3052;IL3053;IL3054;IL3055;IL3056</WarningsAsErrors> |
|
||||
</PropertyGroup> |
|
||||
|
|
||||
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) AND '$(EnableRuntimeMarshalling)' != 'true'"> |
|
||||
<WarningsAsErrors>$(WarningsAsErrors);CA1420;CA1421</WarningsAsErrors> |
|
||||
</PropertyGroup> |
|
||||
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) AND '$(EnableRuntimeMarshalling)' != 'true'"> |
<ItemGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0')) AND '$(EnableRuntimeMarshalling)' != 'true'"> |
||||
<AssemblyAttribute Include="System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute" /> |
<AssemblyAttribute Include="System.Runtime.CompilerServices.DisableRuntimeMarshallingAttribute" /> |
||||
</ItemGroup> |
</ItemGroup> |
||||
|
|
||||
</Project> |
</Project> |
||||
|
|||||
@ -1,23 +0,0 @@ |
|||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|
||||
<!-- Keep in sync with .editorconfig --> |
|
||||
<PropertyGroup Condition="'$(AvsEnableDevWarningsNotAsErrors)' == 'true'"> |
|
||||
<!-- CS0649: Field 'field' is never assigned to, and will always have its default value 'value' --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS0649</WarningsNotAsErrors> |
|
||||
<!-- CS0162: Remove unreachable code --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);CS0162</WarningsNotAsErrors> |
|
||||
<!-- CA2211:Non-constant fields should not be visible --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);CA2211</WarningsNotAsErrors> |
|
||||
<!-- CA1821: Remove empty finalizers --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);CA1821</WarningsNotAsErrors> |
|
||||
<!-- CA1823: Avoid unused private fields --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);CA1823</WarningsNotAsErrors> |
|
||||
<!-- AVLN2203: DuplicateSetterError --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);AVLN2203</WarningsNotAsErrors> |
|
||||
<!-- AVLN2205: RequiredTemplatePartMissing --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);AVLN2205</WarningsNotAsErrors> |
|
||||
<!-- AVLN2207: TemplatePartWrongType --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);AVLN2207</WarningsNotAsErrors> |
|
||||
<!-- AVLN2208: ItemContainerInsideTemplate --> |
|
||||
<WarningsNotAsErrors>$(WarningsNotAsErrors);AVLN2208</WarningsNotAsErrors> |
|
||||
</PropertyGroup> |
|
||||
</Project> |
|
||||
Loading…
Reference in new issue