-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpotifyPreventLock.csproj
More file actions
53 lines (44 loc) · 1.89 KB
/
SpotifyPreventLock.csproj
File metadata and controls
53 lines (44 loc) · 1.89 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWindowsForms>true</UseWindowsForms>
<!-- Version Control - Update these for each release -->
<Version>1.1.1</Version>
<VersionSuffix Condition="'$(Configuration)' == 'Debug'">dev</VersionSuffix>
<!-- Application Settings -->
<ApplicationIcon>app.ico</ApplicationIcon>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
<Deterministic>true</Deterministic>
<SelfContained>false</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Management" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Win32.Registry" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<!-- Embedded Resources -->
<EmbeddedResource Include="app.ico" />
<EmbeddedResource Include="appoff.ico" />
<!-- Include settings file in output -->
<None Update="settings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<!-- Auto-versioning for debug builds -->
<Target Name="SetDebugVersion" BeforeTargets="CoreCompile" Condition="'$(Configuration)' == 'Debug'">
<PropertyGroup>
<VersionSuffix>dev-$([System.DateTime]::Now.ToString("yyyyMMdd-HHmm"))</VersionSuffix>
<InformationalVersion>$(Version)-$(VersionSuffix)</InformationalVersion>
</PropertyGroup>
</Target>
<!-- Ensure icons are properly embedded -->
<Target Name="ValidateIconFiles" BeforeTargets="Build">
<Error Text="app.ico is missing" Condition="!Exists('app.ico')" />
<Error Text="appoff.ico is missing" Condition="!Exists('appoff.ico')" />
</Target>
</Project>