Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions LabApi.Examples/SDK_template_.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net48</TargetFramework>
<OutputType>Library</OutputType>
<AssemblyName>YourPluginName</AssemblyName>
<RootNamespace>YourPluginNamespace</RootNamespace>

<!-- Disable implicit references to manually bind Unity .NET -->
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>

<!-- NuGet config (optional) -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed, feel free to remove this, plugins published to nugets are really weird, if needed their own developers can set this up

<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Authors>YourName</Authors>
<PackageId>YourPluginID</PackageId>
<Version>1.0.0</Version>
<Description>Your SCP:SL plugin description</Description>
</PropertyGroup>

<PropertyGroup>
<!-- Define Unity DLL folder -->
<UNITY_REFERENCES>C:\Program Files (x86)\Steam\steamapps\common\SCP Secret Laboratory Dedicated Server\SCPSL_Data\Managed</UNITY_REFERENCES>
</PropertyGroup>
Comment on lines +20 to +23
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not needed as we use env variables


<ItemGroup>
<!-- Essential Unity and Framework references -->
<Reference Include="mscorlib">
<HintPath>$(UNITY_REFERENCES)\mscorlib.dll</HintPath>
</Reference>
<Reference Include="System">
<HintPath>$(UNITY_REFERENCES)\System.dll</HintPath>
</Reference>
<Reference Include="System.Core">
<HintPath>$(UNITY_REFERENCES)\System.Core.dll</HintPath>
</Reference>
<Reference Include="netstandard">
<HintPath>$(UNITY_REFERENCES)\netstandard.dll</HintPath>
</Reference>

<!-- Game assemblies -->
<Reference Include="Assembly-CSharp">
<HintPath>$(UNITY_REFERENCES)\Assembly-CSharp.dll</HintPath>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check this out and use the proper paths for it https://github.com/northwood-studios/LabAPI/blob/master/LabApi/LabApi.csproj#L48

Take it as a template

</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>$(UNITY_REFERENCES)\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(UNITY_REFERENCES)\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AudioModule">
<HintPath>$(UNITY_REFERENCES)\UnityEngine.AudioModule.dll</HintPath>
</Reference>
</ItemGroup>

<ItemGroup>
<!-- LabAPI NuGet -->
<PackageReference Include="Northwood.LabAPI" Version="1.1.0" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<PackageReference Include="Northwood.LabAPI" Version="1.1.0" />
<PackageReference Include="Northwood.LabAPI"/>

</ItemGroup>

</Project>