-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
69 lines (55 loc) · 2.42 KB
/
Directory.Build.props
File metadata and controls
69 lines (55 loc) · 2.42 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<Project InitialTargets="MutableString_SetIcon;MutableString_AddREADME">
<PropertyGroup>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Authors>NiTiS-Dev and contributors</Authors>
<PackageTags>$(PackageTags);fast;file;size;filesize</PackageTags>
<Description>A small package with FileSize type.</Description>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<TargetFrameworks>net9.0;net6.0;net4.8</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<PackageOutputPath>$(MSBuildThisFileDirectory)/outPackages</PackageOutputPath>
<LangVersion>latest</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>NiTiS</RootNamespace>
<VersionPrefix>1.0.0</VersionPrefix>
<NoWarn>$(NoWarn);IDE0290;IDE0305</NoWarn>
<DebugType>portable</DebugType>
<EmbedAllSources>true</EmbedAllSources>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.1.1" PrivateAssets="All"/>
<PackageReference Include="DotNet.ReproducibleBuilds.Isolated" Version="1.1.1" PrivateAssets="All"/>
</ItemGroup>
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">
<IsAotCompatible>true</IsAotCompatible>
<EnableAotAnalyzer>true</EnableAotAnalyzer>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">
<IsTrimmable>true</IsTrimmable>
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
<TrimMode>full</TrimMode>
</PropertyGroup>
<!-- Setup the icon for libraries -->
<Target Name="MutableString_SetIcon" Condition="'$(IsPackable)' == 'true'">
<PropertyGroup>
<PackageIcon>logo.png</PackageIcon>
</PropertyGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)/logo.png" Pack="true" PackagePath="/" />
</ItemGroup>
</Target>
<!-- Setup README file -->
<Target Name="MutableString_AddREADME" Condition="'$(IsPackable)' == 'true'">
<PropertyGroup>
<PackageReadmeFile>README.md</PackageReadmeFile>
</PropertyGroup>
<ItemGroup>
<None Include ="$(MSBuildThisFileDirectory)/README.md" Pack="true" PackagePath="/" />
</ItemGroup>
</Target>
</Project>