Gandhi Gaming 1869
Gandhi Gaming 1869
CC#
Created by Gandhi Gaming 1869 on 7/17/2023 in #help
✅ Adding Dependencies for a Script
Yeah, that makes sense, I'll configure the IDE and add the necessary use staements.
55 replies
CC#
Created by Gandhi Gaming 1869 on 7/17/2023 in #help
✅ Adding Dependencies for a Script
Is there a way to figure out what those statments should be without a configured IDE?
55 replies
CC#
Created by Gandhi Gaming 1869 on 7/17/2023 in #help
✅ Adding Dependencies for a Script
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>
55 replies
CC#
Created by Gandhi Gaming 1869 on 7/17/2023 in #help
✅ Adding Dependencies for a Script
yeah it is within a csproj
55 replies
CC#
Created by Gandhi Gaming 1869 on 7/17/2023 in #help
✅ Adding Dependencies for a Script
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
using Ps2IsoTools;

class TestClass{
static void Main(string[] args){
using (var reader = new UdfReader("/home/Downloads/Wallace & Gromit - The Curse of the Were-Rabbit (USA).iso")){

// Get list of all files
List<string> fullNames = reader.GetAllFileFullNames();

// FileIdentifiers are used to reference files on the ISO
FileIdentifier? fileId = reader.GetFileByName("file-name");

if (fileId is not null)
{
// // Read data from file
// using (BinaryReader br = new(reader.GetFileStream(fileId)))
// {
// Console.WriteLine(br.ReadString());
// }

// // Copy file from the ISO to your local drive
// reader.CopyFile(fileId, "path-to-copy-to");
System.Console.WriteLine(fileId.ToString());
}
}
}
}
using Ps2IsoTools;

class TestClass{
static void Main(string[] args){
using (var reader = new UdfReader("/home/Downloads/Wallace & Gromit - The Curse of the Were-Rabbit (USA).iso")){

// Get list of all files
List<string> fullNames = reader.GetAllFileFullNames();

// FileIdentifiers are used to reference files on the ISO
FileIdentifier? fileId = reader.GetFileByName("file-name");

if (fileId is not null)
{
// // Read data from file
// using (BinaryReader br = new(reader.GetFileStream(fileId)))
// {
// Console.WriteLine(br.ReadString());
// }

// // Copy file from the ISO to your local drive
// reader.CopyFile(fileId, "path-to-copy-to");
System.Console.WriteLine(fileId.ToString());
}
}
}
}
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]
55 replies