Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Merge pull request #155 from art0007i/patch-2
Browse files Browse the repository at this point in the history
replace broken copy to plugin functionality with an actually working one
  • Loading branch information
Xlinka committed Sep 6, 2023
2 parents 11daacd + c2e1790 commit 585bf3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 0 additions & 5 deletions NEOSPlus.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,18 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
AutoPostX|Any CPU = AutoPostX|Any CPU
CopyToPlugin|Any CPU = CopyToPlugin|Any CPU
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{08A94620-ECB7-41FD-8C9C-C11F2EBFC776}.AutoPostX|Any CPU.ActiveCfg = AutoPostX|Any CPU
{08A94620-ECB7-41FD-8C9C-C11F2EBFC776}.AutoPostX|Any CPU.Build.0 = AutoPostX|Any CPU
{08A94620-ECB7-41FD-8C9C-C11F2EBFC776}.CopyToPlugin|Any CPU.ActiveCfg = Debug|Any CPU
{08A94620-ECB7-41FD-8C9C-C11F2EBFC776}.CopyToPlugin|Any CPU.Build.0 = Debug|Any CPU
{08A94620-ECB7-41FD-8C9C-C11F2EBFC776}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{08A94620-ECB7-41FD-8C9C-C11F2EBFC776}.Debug|Any CPU.Build.0 = Debug|Any CPU
{08A94620-ECB7-41FD-8C9C-C11F2EBFC776}.Release|Any CPU.ActiveCfg = Release|Any CPU
{08A94620-ECB7-41FD-8C9C-C11F2EBFC776}.Release|Any CPU.Build.0 = Release|Any CPU
{88053493-5CC5-41EA-B598-816373CF48FE}.AutoPostX|Any CPU.ActiveCfg = AutoPostX|Any CPU
{88053493-5CC5-41EA-B598-816373CF48FE}.AutoPostX|Any CPU.Build.0 = AutoPostX|Any CPU
{88053493-5CC5-41EA-B598-816373CF48FE}.CopyToPlugin|Any CPU.ActiveCfg = CopyToPlugin|Any CPU
{88053493-5CC5-41EA-B598-816373CF48FE}.CopyToPlugin|Any CPU.Build.0 = CopyToPlugin|Any CPU
{88053493-5CC5-41EA-B598-816373CF48FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{88053493-5CC5-41EA-B598-816373CF48FE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{88053493-5CC5-41EA-B598-816373CF48FE}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
9 changes: 6 additions & 3 deletions NEOSPlus/NEOSPlus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<LangVersion>10</LangVersion>
<Copyright>Copyright © 2022</Copyright>
<Product>NEOSPlus</Product>
<!-- SET THIS BOOL TO TRUE TO COPY TO PLUGINS V -->
<CopyToPlugins Condition="'$(CopyToPlugins)'==''">false</CopyToPlugins>
</PropertyGroup>
<PropertyGroup>
<NeosPath>$(MSBuildThisFileDirectory)NeosVR\</NeosPath>
Expand All @@ -17,9 +19,6 @@
<NeosPath Condition="Exists('E:\Neos\app\')">E:\Neos\app\</NeosPath>
<NeosPath Condition="Exists('E:\SteamLibrary/steamapps/common/NeosVR/')">E:\SteamLibrary/steamapps/common/NeosVR/</NeosPath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'CopyToPlugin|AnyCPU'">
<PostBuildEvent>echo Copying "$(TargetPath)" to "$(NeosPath)\Libraries"</PostBuildEvent>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AutoPostX|AnyCPU' ">
<PostBuildEvent>cd "$(ProjectDir)"
powershell -NoProfile -ExecutionPolicy Bypass ./Scripts/PostBuild.ps1 '$(NeosPath)' $(ConfigurationName)
Expand Down Expand Up @@ -82,4 +81,8 @@
<ProjectReference Include="..\SourceGenerators\SourceGenerators.csproj" OutputItemType="Analyzer" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3"> </PackageReference>
</ItemGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CopyToPlugins)'=='true'">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(NeosPath)Libraries" />
<Message Text="Copied $(TargetFileName) to $(NeosPath)Libraries" Importance="high" />
</Target>
</Project>

0 comments on commit 585bf3d

Please sign in to comment.