-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSendGmail.csproj
49 lines (49 loc) · 2.25 KB
/
SendGmail.csproj
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
<Project>
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net46</TargetFrameworks>
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<EnableDefaultItems>false</EnableDefaultItems>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="System.Net.Http" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>
<ItemGroup>
<Compile Include="NativeConsole.cs" />
<Compile Include="NativeCredential.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
<Target Name="AfterResolveReferences" Condition="'$(Configuration)'=='Release'">
<Exec Command="git.exe log -1 --format=%%h ." ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="GitCommit" />
</Exec>
<PropertyGroup>
<InfoVersionFile>$(IntermediateOutputPath)AssemblyInfoVersion.cs</InfoVersionFile>
<InfoVersionNew>[assembly:System.Reflection.AssemblyInformationalVersion("$(GitCommit)")]</InfoVersionNew>
</PropertyGroup>
<!-- rewrite version file if version changed -->
<ReadLinesFromFile File="$(InfoVersionFile)">
<Output TaskParameter="Lines" PropertyName="InfoVersionOld"/>
</ReadLinesFromFile>
<WriteLinesToFile File="$(InfoVersionFile)" Overwrite="true" Lines="$(InfoVersionNew)" Condition="'$(InfoVersionOld)'!='$(InfoVersionNew)'" />
<!-- create the item dynamically to prevent spurious rebuilds -->
<ItemGroup>
<Compile Include="$(InfoVersionFile)" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="@(ReferenceCopyLocalPaths)" Condition="'%(ReferenceCopyLocalPaths.Extension)' == '.dll'">
<LogicalName>$([System.String]::new('%(ReferenceCopyLocalPaths.DestinationSubDirectory)%(ReferenceCopyLocalPaths.Filename)%(ReferenceCopyLocalPaths.Extension)').ToLowerInvariant ())</LogicalName>
</EmbeddedResource>
</ItemGroup>
</Target>
</Project>