forked from dahall/Vanara
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
45 lines (43 loc) · 3.29 KB
/
Directory.Build.props
File metadata and controls
45 lines (43 loc) · 3.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<Project>
<PropertyGroup>
<TargetFrameworks Condition="'$(ExclSlnTargets)' != 'true'">net48;net5.0;net6.0;net7.0;net8.0-windows;net9.0-windows;net10.0-windows;netstandard2.0;netstandard2.1;netcoreapp3.1</TargetFrameworks>
<!-- Defined variable for projects that do not support .NET Standard -->
<TargetFrameworksNotStd>net48;net6.0;net7.0;net8.0-windows;net9.0-windows;net10.0-windows;netcoreapp3.1</TargetFrameworksNotStd>
<TargetFrameworksNotStdCore>net48;net6.0;net7.0;net8.0-windows;net9.0-windows;net10.0-windows</TargetFrameworksNotStdCore>
<Configurations>Debug;Release</Configurations>
<Platforms>AnyCPU</Platforms>
<Version>5.0.1</Version>
<PackageVersion>5.0.1</PackageVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EnableUnsafeBinaryFormatterSerialization>true</EnableUnsafeBinaryFormatterSerialization>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<IncludeSource>true</IncludeSource>
<LangVersion>latest</LangVersion>
<NeutralLanguage>en-US</NeutralLanguage>
<Nullable>enable</Nullable>
<SignAssembly>true</SignAssembly>
<NoWarn>$(NoWarn);NETSDK1138;SYSLIB0003;SYSLIB0004;SYSLIB0011;IL2026;IL2050;IL2075;IL2067;IL2070;IL2072;IL2077;IL2080;IL2087;IL2090;CS0169;CS0618;CS0649;CA1041;CA1069;CA1401;CA1510;CA2101;SYSLIB1054;SYSLIB1096;</NoWarn>
<AccelerateBuildsInVisualStudio>true</AccelerateBuildsInVisualStudio>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
<!-- Custom generator -->
<ItemGroup Condition="!$(MSBuildProjectName.StartsWith('Vanara.CodeGen'))">
<ProjectReference Include="$(MSBuildThisFileDirectory)CodeGen\Generator\Vanara.CodeGen.csproj" ReferenceOutputAssembly="false" OutputItemType="Analyzer" PrivateAssets="all" />
<ProjectReference Include="$(MSBuildThisFileDirectory)CodeGen\Analyzer\Vanara.CodeGen.Analyzer.csproj" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
<ProjectReference Include="$(MSBuildThisFileDirectory)CodeGen\CodeFixes\Vanara.CodeGen.CodeFixes.csproj" ReferenceOutputAssembly="false" OutputItemType="Analyzer" />
<ProjectReference Include="$(MSBuildThisFileDirectory)Core\Vanara.Core.csproj" OutputItemType="Analyzer" Condition="'$(MSBuildProjectName)'!='Vanara.Core'"/>
</ItemGroup>
<PropertyGroup Condition="'$(MSBuildProjectExtension)'=='.csproj'">
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
</PropertyGroup>
<Import Project="Package.targets" />
<Import Project="$(MSBuildThisFileDirectory)SourceLink.targets" Condition="('$(MSBuildProjectExtension)'=='.csproj' Or '$(MSBuildProjectExtension)'=='.vbproj') And !$(MSBuildProjectDirectory.Contains('UnitTests')) And !$(MSBuildProjectName.StartsWith('Vanara.CodeGen'))" />
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)docs\icons\Vanara64x64.png" Pack="true" PackagePath="\" />
<Compile Include="$(MSBuildThisFileDirectory)AsmDef.cs" Link="AsmDef.cs" Condition="'$(MSBuildProjectExtension)'=='.csproj' And !$(MSBuildProjectName.StartsWith('Vanara.CodeGen'))" />
</ItemGroup>
</Project>