Skip to content

Conversation

@iomatix
Copy link

@iomatix iomatix commented Jul 23, 2025

…g .NET Framework 4.8

Provides a clean, NuGet-ready SDK-style .csproj template for SCP:SL plugin developers using LabAPI and Unity assemblies.

Key features:

  • Targets .NET Framework 4.8, matching LabAPI requirements
  • Uses manual Unity DLL references to resolve mscorlib compatibility
  • Disables implicit framework references to avoid CS7069 errors
  • Supports NuGet packaging via Microsoft.NET.Sdk
  • Includes audio module and core Unity engine references

Helps new developers avoid common build issues and sets up a smooth foundation for plugin creation.

…g .NET Framework 4.8

Provides a clean, NuGet-ready SDK-style .csproj template for SCP:SL plugin developers using LabAPI and Unity assemblies. 

Key features:
- Targets .NET Framework 4.8, matching LabAPI requirements
- Uses manual Unity DLL references to resolve mscorlib compatibility
- Disables implicit framework references to avoid CS7069 errors
- Supports NuGet packaging via Microsoft.NET.Sdk
- Includes audio module and core Unity engine references

Helps new developers avoid common build issues and sets up a smooth foundation for plugin creation.
@davidsebesta1
Copy link
Contributor

We use enviromental variables instead of defining the paths in csproj. This way you wont have to change it in every project you create, but only once.

@davidsebesta1 davidsebesta1 added the question Further information is requested label Jul 31, 2025
<!-- Disable implicit references to manually bind Unity .NET -->
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>

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

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

Comment on lines +20 to +23
<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>
Copy link
Member

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>
<!-- LabAPI NuGet -->
<PackageReference Include="Northwood.LabAPI" Version="1.1.0" />
Copy link
Member

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"/>


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

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

VALERA771 pushed a commit to VALERA771/LabAPI that referenced this pull request Sep 8, 2025
* Isolated room creation from base game.

* Added camera toy wrapper

* Added camera property to camera toy wapper

---------

Co-authored-by: ced777ric <44529860+ced777ric@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-changes question Further information is requested

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants