Unable to Run Shell Locally

Im not the most experienced so please forgive me. I am trying to run my shell program locally, but I get a long list of errors pertaining to duplicate attributes. I have tried going to these files and commenting these attributes out but it still doesnt work. There is a screenshot attached of my error list. Im lost as to what im doing wrong.

Duplicate ‘System.Reflection.AssemblyCompanyAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyConfigurationAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyFileVersionAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyInformationalVersionAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyProductAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyTitleAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyVersionAttribute’ attribute
Duplicate ‘global::System.Runtime.Versioning.TargetFrameworkAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyCompanyAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyConfigurationAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyFileVersionAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyInformationalVersionAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyProductAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyTitleAttribute’ attribute
Duplicate ‘System.Reflection.AssemblyVersionAttribute’ attribute

Thanks for helping :slight_smile:

Hey @gitCommitment, could you upload your code to GitHub and share the link? It will be much easier to debug if I can run it directly.

@andy1li here is a link to my github with the latest version

1 Like

@andy1li it looks like the entire .obj directory is in my gitignore file. im guessing that entire file is only needed for the codecrafters testing? it appears that is where the errors are originating from.

@gitCommitment I was able to run your shell both on the remote tester and locally:

Could you share the exact steps you’re taking to run it locally? That’ll help me reproduce the issue and figure out what’s going wrong.

@andy1li so I guess if I run the file it does work. What I am trying to do when getting these errors is running the program from within Visual Studio for debugging.

It looks like there is an entire directory .obj that is in my gitignore file. That is where those errors are stemming from.

So when im inside my solution in VS im using F5 or ctrl + F5 to test the program and that is when I get those errors.

@gitCommitment Could you try adding <GenerateAssemblyInfo>false</GenerateAssemblyInfo> to your codecrafters-shell.csproj file?

Let me know how it goes!

@andy1li MY MAN! That worked after adding that property and then commenting out the other generated files. I appreciate your help. What a headache.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.