-
Notifications
You must be signed in to change notification settings - Fork 22
Add csproj for Headless: Alternate implementation #35
Changes from 9 commits
7a51be5
a8a97de
bd05008
5bd9768
62e6107
1b82bda
e2dfe02
024a9e8
030f3d5
b625478
66c788d
942b72c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,18 @@ | |
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>NeosModLoader</RootNamespace> | ||
<AssemblyTitle>NeosModLoader</AssemblyTitle> | ||
<Headless Condition="'$(Headless)'==''">false</Headless> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since later on we're testing only against true and false (and ignoring the possibility that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 942b72c |
||
<AssemblyName Condition="'$(Headless)'=='false'">NeosModLoader</AssemblyName> | ||
<AssemblyName Condition="'$(Headless)'=='true'">NeosModLoaderHeadless</AssemblyName> | ||
<AssemblyTitle>$(AssemblyName)</AssemblyTitle> | ||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo> | ||
<TargetFramework>net462</TargetFramework> | ||
<FileAlignment>512</FileAlignment> | ||
<LangVersion>9.0</LangVersion> | ||
<Nullable>enable</Nullable> | ||
<Deterministic>true</Deterministic> | ||
<CopyToLibraries Condition="'$(CopyToLibraries)'==''">true</CopyToLibraries> | ||
<CopyToLibraries Condition="'$(CopyToLibraries)'=='' And '$(Headless)'=='false'">true</CopyToLibraries> | ||
<CopyToLibraries Condition="'$(CopyToLibraries)'=='' And '$(Headless)'=='true'">false</CopyToLibraries> | ||
<DebugSymbols Condition="'$(Configuration)'=='Release'">false</DebugSymbols> | ||
<DebugType Condition="'$(Configuration)'=='Release'">None</DebugType> | ||
</PropertyGroup> | ||
|
@@ -24,18 +28,23 @@ | |
|
||
<ItemGroup> | ||
<PackageReference Include="Lib.Harmony" Version="2.2.1" /> | ||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" Condition="'$(Headless)'=='true'" /> | ||
<Reference Include="Newtonsoft.Json" Condition="'$(Headless)'=='false'"> | ||
<HintPath>$(NeosPath)Neos_Data\Managed\Newtonsoft.Json.dll</HintPath> | ||
</Reference> | ||
<Reference Include="BaseX"> | ||
<HintPath>$(NeosPath)Neos_Data\Managed\BaseX.dll</HintPath> | ||
</Reference> | ||
<Reference Include="FrooxEngine"> | ||
<HintPath>$(NeosPath)Neos_Data\Managed\FrooxEngine.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Newtonsoft.Json"> | ||
<HintPath>$(NeosPath)Neos_Data\Managed\Newtonsoft.Json.dll</HintPath> | ||
</Reference> | ||
</ItemGroup> | ||
|
||
<Target Name="PostBuild" AfterTargets="PostBuildEvent" Condition="'$(CopyToLibraries)'=='true'"> | ||
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(NeosPath)Libraries" /> | ||
<Message Text="Copied $(TargetFileName) to $(NeosPath)Libraries" Importance="high" /> | ||
</Target> | ||
|
||
</Project> | ||
|
||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nitpick, multiple extra unnecessary empty lines There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in 66c788d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume these should be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in b625478