-
Notifications
You must be signed in to change notification settings - Fork 34
Add SDK-style .csproj template for LabAPI plugin development targetin… #229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
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 | ||||
|---|---|---|---|---|---|---|
| @@ -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) --> | ||||||
| <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
Contributor
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. 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> | ||||||
|
Contributor
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. 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" /> | ||||||
|
Contributor
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.
Suggested change
|
||||||
| </ItemGroup> | ||||||
|
|
||||||
| </Project> | ||||||
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.
Not needed, feel free to remove this, plugins published to nugets are really weird, if needed their own developers can set this up