-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathChatPlus.csproj
More file actions
43 lines (36 loc) · 1.89 KB
/
ChatPlus.csproj
File metadata and controls
43 lines (36 loc) · 1.89 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
<Project Sdk="Microsoft.NET.Sdk">
<!-- Import tModLoader mod properties -->
<Import Project="..\tModLoader.targets" />
<!-- General -->
<PropertyGroup>
<!-- Ignore warning -->
<ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>None</ResolveAssemblyWarnOrErrorOnTargetArchitectureMismatch>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Remove="Core\Features\Mentions\NewFolder\**" />
<Compile Remove="Core\Features\Mentions\NewFolder\**" />
<EmbeddedResource Remove="Core\Features\Mentions\NewFolder\**" />
<None Remove="Core\Features\Mentions\NewFolder\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Krafs.Publicizer" PrivateAssets="true" Version="2.2.1" />
<Publicize Include="tModLoader" IncludeVirtualMembers="false" IncludeCompilerGeneratedMembers="false" />
<Publicize Include="ReLogic" IncludeVirtualMembers="false" IncludeCompilerGeneratedMembers="false" />
</ItemGroup>
<!-- Locate all effect files -->
<ItemGroup Condition="'$(DesignTimeBuild)' != 'true'">
<EffectFiles Include="**\*.fx" />
</ItemGroup>
<ItemGroup>
<Folder Include="Assets\Fonts\" />
</ItemGroup>
<!-- Locate FXC (Shader compiler) -->
<PropertyGroup>
<FxcCompilerPath>.\Assets\Effects\fxc.exe</FxcCompilerPath>
</PropertyGroup>
<!-- Effect File Compilation -->
<Target Name="BuildEffects" BeforeTargets="BuildMod" Condition="$([MSBuild]::IsOSPlatform('Windows'))" Inputs="@(EffectFiles->'%(RecursiveDir)%(FileName)%(Extension)')" Outputs="@(EffectFiles->'%(RecursiveDir)%(FileName).fxc')">
<!-- Echo here so it logs which file is being compiled -->
<Exec Command="@(EffectFiles->'echo ----- Compiling effect: %(RecursiveDir)%(FileName)%(Extension) ----- && "$(FxcCompilerPath)" "%(RecursiveDir)%(FileName)%(Extension)" /T fx_2_0 /nologo /O2 /Fo "%(RecursiveDir)%(FileName).fxc" 

')" IgnoreExitCode="true" />
</Target>
</Project>