✅ Adding Dependencies for a Script
I need to be able to run the example scripts given in the readme of the following library: https://github.com/Finzenku/Ps2IsoTools. I have been able to install .net on Linux, and have successfully installed the library into a project. However, I can't figure out how to properly import the library to allow for the example scripts to be run.
14 Replies
If you're using a competent IDE, you can just write the code and use quick fixes to import the appropriate namespace
If not, you'll have to import it manually with a
using
at the top of the fileUnknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Yeah, I'm just trying to run the example code they provided there. I'm not, at least yet, trying to at least write any significant code
Right now the code I'm trying to run is the following
and I'm getting the errors
/home/henry/ps2_editing/Program.cs(5,26): error CS0246: The type or namespace name 'UdfReader' could not be found (are you missing a using directive or an assembly reference?) [/home/henry/ps2_editing/ps2_editing.csproj]
/home/henry/ps2_editing/Program.cs(11,2): error CS0246: The type or namespace name 'FileIdentifier' could not be found (are you missing a using directive or an assembly reference?) [/home/henry/ps2_editing/ps2_editing.csproj]
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
yeah it is within a csproj
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
here's the .csproj file for the project:
`<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Ps2IsoTools" Version="1.0.1" />
</ItemGroup>
</Project>
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
It's there my dude
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Is there a way to figure out what those statments should be without a configured IDE?
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View
Yeah, that makes sense, I'll configure the IDE and add the necessary use staements.
Unknown User•17mo ago
Message Not Public
Sign In & Join Server To View