Changes at csproj to copy lang and dlls after compilation
This commit is contained in:
parent
b958fbb40b
commit
6e7386c546
2 changed files with 29 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
|||
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Relative path to the WASDMenuAPI source code -->
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="../WASDMenuAPI - SRC Files/WASDMenuAPI.csproj" />
|
||||
</ItemGroup>
|
||||
|
|
@ -39,4 +40,31 @@
|
|||
</EmbeddedResource>
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<SourceLangDir>$(MSBuildProjectDirectory)\src\lang</SourceLangDir>
|
||||
<ServerLangDir>$(MSBuildProjectDirectory)\..\jRandomSkills - Server Files\plugins\jRandomSkills\languages</ServerLangDir>
|
||||
<SourceDLL>$(MSBuildProjectDirectory)\bin\Debug\net8.0</SourceDLL>
|
||||
<ServerDLL>$(MSBuildProjectDirectory)\..\jRandomSkills - Server Files\plugins\jRandomSkills</ServerDLL>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Copy language files to server directory -->
|
||||
<Target Name="CopyLangFilesToServer" AfterTargets="Build">
|
||||
<Message Text="Copying language files from $(SourceLangDir) to $(ServerLangDir)" Importance="High" />
|
||||
<ItemGroup>
|
||||
<LangFiles Include="$(SourceLangDir)\**\*.*" />
|
||||
</ItemGroup>
|
||||
<MakeDir Directories="$(ServerLangDir)" Condition="!Exists('$(ServerLangDir)')" />
|
||||
<Copy SourceFiles="@(LangFiles)" DestinationFiles="@(LangFiles->'$(ServerLangDir)\\%(RecursiveDir)%(Filename)%(Extension)')" SkipUnchangedFiles="false" />
|
||||
</Target>
|
||||
|
||||
<!-- Copy compiled DLL to server directory -->
|
||||
<Target Name="CopyDLLToServer" AfterTargets="Build">
|
||||
<Message Text="Copying compiled DLL from $(SourceDLL) to $(ServerDLL)" Importance="High" />
|
||||
<ItemGroup>
|
||||
<CompiledDLL Include="$(SourceDLL)\jRandomSkills.dll" />
|
||||
<CompiledDLL Include="$(SourceDLL)\WASDMenuAPI.dll" />
|
||||
</ItemGroup>
|
||||
<MakeDir Directories="$(ServerDLL)" Condition="!Exists('$(ServerDLL)')" />
|
||||
<Copy SourceFiles="@(CompiledDLL)" DestinationFiles="@(CompiledDLL->'$(ServerDLL)\\%(Filename)%(Extension)')" SkipUnchangedFiles="false" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ VisualStudioVersion = 17.9.34728.123
|
|||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "jRandomSkills", "jRandomSkills.csproj", "{1412DD25-558C-425A-A7F6-347C970136E5}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WASDMenuAPI", "..\..\..\source\repos\WASDMenuAPI-master\WASDMenuAPI\WASDMenuAPI.csproj", "{E13A84FA-EAB5-CAC7-8143-DD55AB40EAB5}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WASDMenuAPI", "../WASDMenuAPI - SRC Files/WASDMenuAPI.csproj", "{E13A84FA-EAB5-CAC7-8143-DD55AB40EAB5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue