-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSimpleMSI.csproj
More file actions
114 lines (92 loc) · 4.94 KB
/
SimpleMSI.csproj
File metadata and controls
114 lines (92 loc) · 4.94 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!--
SimpleMSI - MSI creation tool.
Copyright (C) 2025 Julian Rossbach
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>SimpleMSI</RootNamespace>
<RuntimeIdentifiers>any;win-x86;win-x64;win-arm64</RuntimeIdentifiers>
</PropertyGroup>
<PropertyGroup>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
<DisableImplicitNuGetFallbackFolder>true</DisableImplicitNuGetFallbackFolder>
<ContinuousIntegrationBuild Condition="'$(GITHUB_ACTIONS)' == 'true'">true</ContinuousIntegrationBuild>
<RestoreLockedMode Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</RestoreLockedMode>
<Deterministic Condition="'$(ContinuousIntegrationBuild)' == 'true'">true</Deterministic>
</PropertyGroup>
<!--Package specific configuration-->
<PropertyGroup>
<MinVerTagPrefix>v</MinVerTagPrefix>
<MinVerMinimumMajorMinor>1.0</MinVerMinimumMajorMinor>
<MinVerDefaultPreReleaseIdentifiers>dev.0</MinVerDefaultPreReleaseIdentifiers>
<PackAsTool>true</PackAsTool>
<ToolCommandName>simplemsi</ToolCommandName>
<Title>SimpleMSI</Title>
<Authors>Julian Rossbach</Authors>
<Description>Simple config-based tool to build MSI packages.</Description>
<Copyright>Copyright (C) $([System.DateTime]::Now.Year.ToString()) $(Authors)</Copyright>
<RepositoryUrl>https://github.com/Juff-Ma/SimpleMSI</RepositoryUrl>
<PackageTags>MSI;WiX;WixSharp;publish;pack</PackageTags>
<PackageIcon>SimpleMSI.png</PackageIcon>
<PackageLicenseExpression>AGPL-3.0-or-later</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<ApplicationIcon>assets\SimpleMSI.ico</ApplicationIcon>
</PropertyGroup>
<!--Customize MinVer behaviour-->
<Target Name="CustomVersioning" AfterTargets="MinVer">
<PropertyGroup>
<AssemblyVersion>$(MinVerMajor).$(MinVerMinor).0.0</AssemblyVersion>
<!-- Use the highest possible revision number so debug releases or manual releases are always regarded as higher -->
<DefaultRevisionNumber>65535</DefaultRevisionNumber>
<FileVersion Condition="'$(Configuration)'=='Debug'">$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).$(DefaultRevisionNumber)</FileVersion>
<GITHUB_RUN_NUMBER Condition="'$(GITHUB_RUN_NUMBER)' == ''">$(DefaultRevisionNumber)</GITHUB_RUN_NUMBER>
<FileVersion Condition="'$(Configuration)'=='Release'">$(MinVerMajor).$(MinVerMinor).$(MinVerPatch).$(GITHUB_RUN_NUMBER)</FileVersion>
</PropertyGroup>
</Target>
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<DebugType>embedded</DebugType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<DebugType>none</DebugType>
<PublishSelfContained>true</PublishSelfContained>
<PublishReadyToRun>true</PublishReadyToRun>
</PropertyGroup>
<!--This is a hack to publish dotnet tools with windows only functionality-->
<!--Courtesy of: https://github.com/dotnet/sdk/issues/12055#issuecomment-2126355866-->
<Target Name="HackBeforePackToolValidation" BeforeTargets="_PackToolValidation">
<PropertyGroup>
<TargetPlatformIdentifier></TargetPlatformIdentifier>
<TargetPlatformMoniker></TargetPlatformMoniker>
</PropertyGroup>
</Target>
<Target Name="HackAfterPackToolValidation" AfterTargets="_PackToolValidation" BeforeTargets="PackTool">
<PropertyGroup>
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
</PropertyGroup>
</Target>
<ItemGroup>
<PackageReference Include="DotMake.CommandLine" Version="3.1.0" />
<PackageReference Include="MinVer" Version="6.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Tomlyn" Version="0.19.0" />
<PackageReference Include="WixSharp.Core" Version="2.12.0" />
</ItemGroup>
<ItemGroup>
<None Include="README.md" Pack="True" PackagePath="/" />
<None Include="assets/SimpleMSI.png" Pack="True" PackagePath="/" />
<EmbeddedResource Include="Template.msi.toml" />
<Content Include="assets\SimpleMSI.ico" />
</ItemGroup>
</Project>