question

deskcheck1-0579 avatar image
0 Votes"
deskcheck1-0579 asked Bruce-SqlWork answered

>Deploying NetCoreApp3.1 Console Application to Linux

Hi,

In my VS 2019 VB.Net application, I have a Application Arguments in the Project Properties as follows:

 64 E:\model_run_test\ true all true

where 64 = number of cores
E:\ = Drive where directory is located
...etc.

Now I'm deploying my console application to a Linux CentOS7 cluster server.

I was given a relative directory path to upload my files: let's say:

 /project/myprojectdirectory/dotnetcore

How do I modify my Application Arguments accordingly? I am only uploading the executable application to Linux.

Appreciate any help.

dotnet-runtimeoffice-teams-linux-itprodotnet-cli
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

if that's the folder you want. on linux you use valid linux paths (there are no drive letters).

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered deskcheck1-0579 commented

That is an absolute path, not relative. What folder do you want it be?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

That's the problem. I have absolute path in my VS project. Now, I'm assigned a relative path to the main cluster-server.

So in production server: the location is: /project/myprojectdirectory/dotnetcore

My development machine: the absolute path, E:\ drive.

Should I change my Application Arguments to: /project/myprojectdirectory/dotnetcore/model_run_test?


Will that work in Linux?

Thanks...

0 Votes 0 ·