Skip to content
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

[.NET 8] The type or namespace name 'ManualLogSource' could not be found #15

Closed
p4nu opened this issue Jun 14, 2024 · 1 comment · Fixed by #16
Closed

[.NET 8] The type or namespace name 'ManualLogSource' could not be found #15

p4nu opened this issue Jun 14, 2024 · 1 comment · Fixed by #16

Comments

@p4nu
Copy link

p4nu commented Jun 14, 2024

While following the tutorial of writing a basic plugin and running dotnet build with no edits to Plugin.cs I get an error:

error CS0246: The type or namespace name 'ManualLogSource' could not be found (are you missing a using directive 
 or an assembly reference?) [C:\Program Files (x86)\Steam\steamapps\common\Timberborn\BepInEx\plugins\MyFirs 
tPlugin\MyFirstPlugin.csproj]

.NET version: 8.0.300
Template version: 2.0.0-be.3

How to reproduce

  1. Create a project using this command:
    dotnet new bepinex5plugin -n MyFirstPlugin -T netstandard2.1 -U 2023.1.20

  2. Add referencing game libraries:
    dotnet add package Timberborn.GameLibs --version 0.5.7-r.0

  3. Run dotnet build

@PhantomGamers
Copy link
Contributor

fixed in #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants