-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExampleMod.csproj
More file actions
36 lines (30 loc) · 1.33 KB
/
ExampleMod.csproj
File metadata and controls
36 lines (30 loc) · 1.33 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<PlatformTarget>x64</PlatformTarget>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<BaseOutputPath>..\..\bin\ExampleMod</BaseOutputPath>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Framework\RealLoaderFramework.Sdk\RealLoaderFramework.Sdk.csproj">
<Private>false</Private>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Reference Include="GeneratedSdk">
<HintPath>$(ModsBuildFolder)\..\Pal\Binaries\Win64\Sdk\source\GeneratedSdk\bin\Debug\net9.0\GeneratedSdk.dll</HintPath>
</Reference>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(ModsBuildFolder)' != ''">
<ItemGroup>
<_CopyItems Include="$(TargetDir)\*.*" Visible="false" />
</ItemGroup>
<Copy SourceFiles="@(_CopyItems)" DestinationFolder="$(ModsBuildFolder)\ExampleMod" SkipUnchangedFiles="true" OverwriteReadOnlyFiles="true" />
<Exec Command="echo Successfully copied $(AssemblyName) to $(ModsBuildFolder)" />
</Target>
</Project>