-
Notifications
You must be signed in to change notification settings - Fork 119
/
SadConsole.Host.FNA.csproj
78 lines (66 loc) · 3.31 KB
/
SadConsole.Host.FNA.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\MSBuild\Common.props" />
<PropertyGroup>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<!--<Nullable>enable</Nullable>-->
<Version>$(SadConsole_Host_FNA_Version)</Version>
<AssemblyTitle>SadConsole FNA Host</AssemblyTitle>
<Description>A graphics hosting library for SadConsole that targets FNA.</Description>
<PackageId>SadConsole.Host.FNA</PackageId>
<PackageTags>sadconsole;fna;roguelike;cli;xna;game;development;console;ansi;ascii;textmode;dotnet</PackageTags>
<PackageReleaseNotes>
- Reversioned to follow new versioning scheme.
- Configuration namespace was moved to SadConsole directly. Only library specific config options are here now.
- Package contains all dependencies now.
</PackageReleaseNotes>
</PropertyGroup>
<!-- Custom properties -->
<PropertyGroup>
<UseProjectReferences>true</UseProjectReferences>
<DefineConstants>$(DefineConstants);MONOGAME;FNA</DefineConstants>
<Platforms>AnyCPU;x64</Platforms>
<RootNamespace>SadConsole.Host.MonoGame</RootNamespace>
</PropertyGroup>
<!-- FNA references -->
<ItemGroup>
<Reference Include="FNA">
<HintPath>.\FNA\FNA.dll</HintPath>
</Reference>
<None Update=".\FNA\*\*.*">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<None Include=".\FNA\*.*" Pack="true" PackagePath="lib\net8.0" />
<None Include=".\FNA\*.*" Pack="true" PackagePath="lib\net7.0" />
<None Include=".\FNA\*.*" Pack="true" PackagePath="lib\net6.0" />
<None Include=".\FNA\*\*.*" Pack="true" PackagePath="lib\net8.0\FNA" />
<None Include=".\FNA\*\*.*" Pack="true" PackagePath="lib\net7.0\FNA" />
<None Include=".\FNA\*\*.*" Pack="true" PackagePath="lib\net6.0\FNA" />
</ItemGroup>
<ItemGroup>
<!-- Make sure none of the monogame project compiles -->
<Compile Include="..\SadConsole.Host.MonoGame\**\*.cs" Exclude="..\SadConsole.Host.MonoGame\obj\**\*.*;$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
<Compile Remove="..\SadConsole.Host.MonoGame\**\*.Wpf.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Condition=" '$(UseProjectReferences)' == 'true' " Include="..\SadConsole\SadConsole.csproj" />
<PackageReference Condition=" '$(UseProjectReferences)' != 'true' " Include="SadConsole" Version="$(SadConsole_Version)" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<!-- Get rid of the WPF-specific files -->
<Compile Remove="**\*.Wpf.cs" />
<Compile Remove="Xaml\**" />
</ItemGroup>
<ItemGroup>
<None Include="..\SadConsole\Resources\nugeticon.png" pack="true" PackagePath="." />
<None Include="..\SadConsole\Resources\readme.txt" pack="true" PackagePath="." />
<None Include="README.md" pack="true" PackagePath="." />
</ItemGroup>
<Target Name="CopyPackage" AfterTargets="Pack">
<Copy SourceFiles="$(OutputPath)\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="$(OutputPath)..\..\..\nuget" />
<Copy SourceFiles="$(OutputPath)\$(PackageId).$(PackageVersion).snupkg" DestinationFolder="$(OutputPath)..\..\..\nuget" />
</Target>
<Import Project="..\SadConsole.Host.Shared\SadConsole.Host.Shared.projitems" Label="Shared" />
</Project>