-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInstDotNet.csproj
More file actions
67 lines (56 loc) · 2.74 KB
/
InstDotNet.csproj
File metadata and controls
67 lines (56 loc) · 2.74 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework> <!-- This was the missing line -->
<AssemblyName>InstDotNet</AssemblyName>
<RootNamespace>InstDotNet</RootNamespace>
<InvariantGlobalization>true</InvariantGlobalization>
<!-- You can try 'full' for maximum size reduction -->
<TrimMode>partial</TrimMode>
<ImplicitUsings>enable</ImplicitUsings>
<!-- Version Information -->
<Version>1.0.1</Version>
<AssemblyVersion>1.0.1.0</AssemblyVersion>
<FileVersion>1.0.1.0</FileVersion>
<VersionPrefix>1.0.1</VersionPrefix>
<VersionSuffix></VersionSuffix>
<Company>Dynamic Devices</Company>
<Product>CGA Coordinate Mapping</Product>
<Copyright>Copyright © Dynamic Devices</Copyright>
<Description>UWB to GPS coordinate mapping service</Description>
<!-- Build metadata - will be set by MSBuild target -->
<BuildDate></BuildDate>
<GitCommitHash></GitCommitHash>
</PropertyGroup>
<!-- Target to get git commit hash and build date -->
<Target Name="GetBuildMetadata" BeforeTargets="BeforeBuild">
<PropertyGroup>
<BuildDate>$([System.DateTime]::UtcNow.ToString("yyyy-MM-dd HH:mm:ss UTC"))</BuildDate>
</PropertyGroup>
<Exec Command="git rev-parse --short HEAD" ConsoleToMSBuild="true" IgnoreExitCode="true" WorkingDirectory="$(MSBuildProjectDirectory)">
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommitHashRaw" />
</Exec>
<PropertyGroup>
<GitCommitHash Condition="'$(GitCommitHashRaw)' == '' Or '$(GitCommitHashRaw)' == ' '">unknown</GitCommitHash>
<GitCommitHash Condition="'$(GitCommitHashRaw)' != '' And '$(GitCommitHashRaw)' != ' '">$(GitCommitHashRaw)</GitCommitHash>
</PropertyGroup>
<!-- Embed build metadata as assembly metadata -->
<ItemGroup>
<AssemblyMetadata Include="BuildDate" Value="$(BuildDate)" />
<AssemblyMetadata Include="GitCommitHash" Value="$(GitCommitHash)" />
</ItemGroup>
</Target>
<ItemGroup>
<PackageReference Include="MQTTnet" Version="5.0.1.1416" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="8.0.0" />
</ItemGroup>
<!-- Copy appsettings.json to output directory -->
<ItemGroup>
<None Update="appsettings.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>