Philip-Trettner / GlmSharp

Open-source semi-generated GLM-flavored math library for .NET/C#
MIT License
47 stars 18 forks source link

Can't find assembly references directory in Linux #11

Closed ghost closed 3 years ago

ghost commented 3 years ago

If I downloaded GlmSharp via command-line in Ubuntu with nuget install glmsharp then where would the assembly references be located...? I have tried mcs -pkg:glm test.cs, mcs -pkg:glmsharp test.cs, etc... and have had no luck in locating them in the filesystem.

Would you have any suggestions?

Thanks

Philip-Trettner commented 3 years ago

Hm I've never used it on linux before.

GlmSharp has the following assembly refs:

    <Reference Include="System" />
    <Reference Include="System.Core" />
    <Reference Include="System.Numerics" />
    <Reference Include="System.Runtime.Serialization" />
    <Reference Include="System.Xml.Linq" />
    <Reference Include="System.Data.DataSetExtensions" />
    <Reference Include="Microsoft.CSharp" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />

I'm not sure if all of them are supported on linux.

There is also GlmSharpCompat, which has less references and only uses:

    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />

so you could test if that works.

ghost commented 3 years ago

Wow okay. I discovered that it was installed in current directory.

All I had to do was mcs -reference:/path/to/GlmSharp.0.9.8/lib/Net20/GlmSharp.dll example.cs.

My bad. XD.

Thanks anyway.