-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
56 lines (50 loc) · 2.82 KB
/
Copy pathDirectory.Build.props
File metadata and controls
56 lines (50 loc) · 2.82 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
<Project>
<PropertyGroup>
<!-- Do not import "Directory.Build.props" file into the parent directory -->
<ImportDirectoryBuildProps>false</ImportDirectoryBuildProps>
<!-- Solution directory -->
<SlnDir>$(MSBuildThisFileDirectory)</SlnDir>
<!-- Solution readme file -->
<SlnReadme>$([MSBuild]::NormalizePath($(SlnDir),'README.md'))</SlnReadme>
<!-- icon file -->
<IconFile>$([MSBuild]::NormalizePath($(SlnDir),'docs','icon','icon.png'))</IconFile>
</PropertyGroup>
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<LangVersion>latest</LangVersion>
<UseArtifactsOutput>true</UseArtifactsOutput>
</PropertyGroup>
<PropertyGroup Label="package metadata">
<version>1.0.1</version>
<PackageIcon>icon.png</PackageIcon>
<PackageTags>autolaunch autostart</PackageTags>
<PackageProjectUrl>https://github.com/Linlccc/AutoLaunch</PackageProjectUrl>
<RepositoryUrl>https://github.com/Linlccc/AutoLaunch</RepositoryUrl>
<Description>AutoLaunch provides a cross-platform feature for automatically launching applications or executable files at login, suitable for .NET.</Description>
<!-- You need to manually set IsPackable in the packaged project to true -->
<IsPackable>false</IsPackable>
<PackageId>$(AssemblyName)</PackageId>
<PackageReadmeFile Condition="Exists('README.md') Or Exists('$(SlnReadme)')">README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<RepositoryType>git</RepositoryType>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<Authors>Linlccc</Authors>
<Company>$(Authors)</Company>
<Product>AutoLaunch</Product>
<Copyright>(c) 2025 $(Authors)</Copyright>
</PropertyGroup>
<ItemGroup>
<!-- If there is a readme in the project, add it to the package -->
<None Condition="Exists('README.md')" Include="README.md" Pack="true" PackagePath="/"/>
<!-- If there is no readme in the project && there is a readme in the solution, add it to the package -->
<None Condition="!Exists('README.md') And Exists('$(SlnReadme)')" Include="$(SlnReadme)" Visible="false" Pack="true" PackagePath="/"/>
<!-- If there is an icon, add it to the package -->
<None Condition="Exists('$(IconFile)')" Include="$(IconFile)" Visible="false" Pack="true" PackagePath="/"/>
</ItemGroup>
</Project>