-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.csproj
40 lines (34 loc) · 1.51 KB
/
Build.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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Metalsharp" Version="0.9.0-rc.6" />
<PackageReference Include="Metalsharp.LiquidTemplates" Version="0.9.0-rc.5" />
<PackageReference Include="Metalsharp.SimpleBlog" Version="0.9.0-rc.2" />
<PackageReference Include="System.ServiceModel.Syndication" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
<None Update="Config\**\*"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None>
<None Update="Site\**\*"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None>
<None Update="Static\**\*"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None>
<None Update="Templates\**\*"><CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory></None>
</ItemGroup>
<Target Name="GenerateCsxFile" AfterTargets="Build">
<ItemGroup>
<SourceFiles Include="Program.cs" />
</ItemGroup>
<Copy SourceFiles="@(SourceFiles)" DestinationFolder="$(OutputPath)" />
<WriteLinesToFile File="build.csx" Overwrite="true"
Lines="
#! "net8.0"
#r "nuget: Metalsharp, 0.9.0-rc.6"
#r "nuget: Metalsharp.LiquidTemplates, 0.9.0-rc.5"
#r "nuget: Metalsharp.SimpleBlog, 0.9.0-rc.2"
#r "nuget: System.ServiceModel.Syndication, 8.0.0"
"
/>
<Exec Command="type @(SourceFiles) >> build.csx" />
</Target>
</Project>