/
Rnwood.Smtp4dev.Desktop.csproj
63 lines (47 loc) · 2.06 KB
/
Rnwood.Smtp4dev.Desktop.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ApplicationIcon>app\icon.ico</ApplicationIcon>
<RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
</PropertyGroup>
<ItemGroup>
<SupportedPlatform Include="Windows" />
</ItemGroup>
<ItemGroup>
<None Remove="icon.ico" />
<None Remove="icon.svg" />
</ItemGroup>
<ItemGroup>
<Content Include="app\icon.ico">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="app\icon.svg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="H.NotifyIcon" Version="2.0.131" />
<PackageReference Include="ParallelExtensionsExtras.NetFxStandard" Version="2.1.0" />
<PackageReference Include="Photino.NET" Version="2.6.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Rnwood.Smtp4dev\Rnwood.Smtp4dev.csproj" />
</ItemGroup>
<Target Name="CopyMainApp" BeforeTargets="BeforeBuild">
<Message Importance="high" Text="Publishing Rnwood.Smtp4dev to $(MSBuildProjectDirectory)\$(BaseIntermediateOutputPath)\server" />
<MSBuild Projects="../Rnwood.Smtp4dev/Rnwood.Smtp4dev.csproj" Targets="Publish" Properties="Configuration=$(Configuration);Platform=$(Platform);RuntimeIdentifier=$(RuntimeIdentifier);SelfContained=$(SelfContained);PublishDir=$(MSBuildProjectDirectory)\$(BaseIntermediateOutputPath)\server"></MSBuild>
<ItemGroup>
<Smtp4DevRuntimeFiles Include="$(MSBuildProjectDirectory)\$(BaseIntermediateOutputPath)\server\wwwroot\**\*" />
</ItemGroup>
<Copy SourceFiles="@(Smtp4DevRuntimeFiles)" DestinationFolder="$(MSBuildProjectDirectory)\wwwroot\%(RecursiveDir)" />
<ItemGroup>
<Content Include="$(MSBuildProjectDirectory)\wwwroot\**">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Target>
</Project>