Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# (.NET) App Runner #1176

Closed
4 of 5 tasks
XdGoldenTigerOfficial opened this issue Dec 11, 2024 · 8 comments
Closed
4 of 5 tasks

C# (.NET) App Runner #1176

XdGoldenTigerOfficial opened this issue Dec 11, 2024 · 8 comments

Comments

@XdGoldenTigerOfficial
Copy link

XdGoldenTigerOfficial commented Dec 11, 2024

Module Request

An app runner that builds/compiles the C# solution, and runs the built code upon instance start.
Also allows us to upload, and edit files via the file manager tab of the panel.

I confirm:

  • that I have searched for an existing module request for this application.
  • that the server is an official server distributed by the games publishers/developers.
  • that the server is available to the general public.
  • that the server can be run headless (without a GUI).
  • I have already attempted to create a configuration myself using the configuration tool
@Greelan
Copy link
Collaborator

Greelan commented Dec 11, 2024

I've got a draft template in my dev branch: Greelan/AMPTemplates:dev. Haven't really tested it yet as I don't have a convenient project to use for it. Happy receive feedback

@XdGoldenTigerOfficial
Copy link
Author

@Greelan Hey mate, I was finally able to get it added to my AMP.
But for some reason, I am able to build the SLN, But when I try to start the app, It shows this error.
(I was going to create an Issue on your repo, But the Issues button wasnt there, so decided to let you know in here)

Image

and here is my Dotnet App Runner Settings

Image

@XdGoldenTigerOfficial
Copy link
Author

I have even tried using the executable file instead of the DLL, and shows the same error.
I have also had a play around with the settings, and nothing seems to work.

@Greelan
Copy link
Collaborator

Greelan commented Feb 10, 2025

"dotnet restore" is not a command line arg to dotnet

Also location paths don't need a leading slash

@XdGoldenTigerOfficial
Copy link
Author

Ah alright. I am a bit slow 😅
Will try again and let you know.

@Greelan
Copy link
Collaborator

Greelan commented Feb 10, 2025

Ever since .NET 2.0, "dotnet build" automatically restores packages: https://learn.microsoft.com/en-us/nuget/consume-packages/package-restore#restore-by-using-the-dotnet-cli

@XdGoldenTigerOfficial
Copy link
Author

XdGoldenTigerOfficial commented Feb 10, 2025 via email

@Greelan
Copy link
Collaborator

Greelan commented Feb 10, 2025

If you have any other suggestions, let me know

@Greelan Greelan closed this as completed Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants