STEP-file-parser icon indicating copy to clipboard operation
STEP-file-parser copied to clipboard

Compile with Visual Studio 2022?

Open ED-robert opened this issue 5 months ago • 0 comments

I'm trying to compile this with Visual Studio 2022, and first I got a complaint that the "AssemblyInfo.cs" file was missing, so I removed it from the .csproj file which made it build.

However, when I run the exe using a minimal STEP file as an argument, I get the following:

Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\data\ap203e2_mim_lf.exp'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamReader..ctor(String path)
   at STEP_Parser.EXPRESS_Schema.ParseSchema() in C:\Users\X\Downloads\STEP-file-parser\EXPRESS_Schema.cs:line 127
   at STEP_Parser.EXPRESS_Schema..ctor(String[] filenames) in C:\Users\X\Downloads\STEP-file-parser\EXPRESS_Schema.cs:line 42
   at STEP_Parser.Program.Main(String[] args) in C:\Users\X\Downloads\STEP-file-parser\Program.cs:line 12

I'm an industrial designer and not a developer, so I'm wondering if someone who sees this could please assist?

ED-robert avatar Aug 26 '25 12:08 ED-robert