Vlek / RuinsAndRiches

Ruins & Riches Ultima Online Server Files
7 stars 0 forks source link

Create .NET project for code #89

Closed Vlek closed 1 year ago

Vlek commented 1 year ago

I think that my IDE isn't finding references to things because it is not opening it as a real .NET project and instead as a folder.

In order to correct this, I am not sure, but I might have to follow the steps to create a new project and then add the files to the project: https://learn.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code?pivots=dotnet-7-0#create-the-app-1

Vlek commented 1 year ago

I tried doing this with VS code.

Ran into a lot of issues. Doesn't appear that it comes directly in the IDE, it's telling me to use a console command to build the console app.

When I did this though, I ran into errors. Researching those errors, I came to find out that there were several dotnet packages that were klobbering each other due to how dotnet used to not be packaged in Ubuntu.

Following the results for that, specifically for zsh as the package name needed to be in quotes which screwed me up for a little bit, I was able to get that figured out.

I then used the command, but now I have a base package but it's not pointing to anything correctly.

I found that there is a main.cs that I should probably point the solution to, and that I should also rename the project as it defaulted to the folder name which happens to be data. No good.

Also, it appears that it has some hard-coded values for paths in the project configurations? I do not need the project to know exactly where it is and have that shared on github. No thanks. What the french toast, Windows?

Vlek commented 1 year ago

Looks like we need a .sln or .csproj for omnisharp to kick off.

Vlek commented 1 year ago

So we need both an sln and a csproj. The solution file is a per-project collection file and the csproj is an individual project.

Vlek commented 1 year ago

Fixed in #130