cs-util-com / cscore

cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
https://cs-util-com.github.io/cscore/
Apache License 2.0
196 stars 32 forks source link

Can't import CSCore namespace #18

Closed Leonetienne closed 5 years ago

Leonetienne commented 5 years ago

using CSCore doesn't work.

Assets\test.cs(4,7): error CS0246: The type or namespace name 'CSCore' could not be found (are you missing a using directive or an assembly reference?)

I imported the plugin via the asset store. This is a fresh and clean project version 2019.1.10f1. I am using Visual Studio 2019

cs-util commented 5 years ago

Hey @Leonetienne I just tested with the same Unity version in a fresh empty project and did not have any problems

From the error it sounds like you have created a file test.cs and are trying to import there the namespace "CSCore" which does not exist, the correct import would in your classes would be: using com.csutil;

I will add a section about the namespaces in the "Getting started" section

Leonetienne commented 5 years ago

Thank you for the quick response. The com.csutil namespace is indeed present. Finally haha


Von: CsUtil.com notifications@github.com Gesendet: Freitag, 19. Juli 2019 06:16 An: cs-util-com/cscore cscore@noreply.github.com Cc: Leonetienne Leonetienne@hotmail.de; Mention mention@noreply.github.com Betreff: Re: [cs-util-com/cscore] Can't import CSCore namespace (#18)

Hey @Leonetiennehttps://github.com/Leonetienne I just tested with the same Unity version in a fresh empty project and did not have any problems

From the error it sounds like you have created a file test.cs and are trying to import there the namespace "CSCore" which does not exist, the correct import would in your classes would be: using com.csutil;

I will add a section about the namespaces in the "Getting started" section

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/cs-util-com/cscore/issues/18?email_source=notifications&email_token=AJYEGVMI7IRAWWR4DGSRXR3QAE5YTA5CNFSM4IE62OYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2KQTOA#issuecomment-513083832, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJYEGVJU2AC6JUIF5YO6673QAE5YTANCNFSM4IE62OYA.

cs-util commented 5 years ago

Ok great, let me know once you tried a few features what you think 👍