deployment-tools icon indicating copy to clipboard operation
deployment-tools copied to clipboard

Internal Error of Could not find a part of the path when mage on linux

Open hatzhang opened this issue 2 years ago • 6 comments
trafficstars

When trying to mage application, i got the following path separator related issue. I believe the right path should be '/Temp/2.0.0.0/', instead of '/Temp/2.0.0.0\'.

root@4d4e7e505f74:/Temp# ls
2.0.0.0 root@4d4e7e505f74:/Temp# dotnet mage -new Application -t 2.0.0.0/MyStarter.manifest -fd 2.0.0.0 -v 2.0.0.0 -n MyStarterTest Internal error, please try again. Could not find a part of the path '/Temp/2.0.0.0\'.

Do we have a way to avoid this?

hatzhang avatar Nov 24 '22 06:11 hatzhang

[Triage] We do not officially support building ClickOnce deployments on non-Windows machines. If the community would like to support this, we would gladly accept the contribution.

NikolaMilosavljevic avatar Feb 06 '24 22:02 NikolaMilosavljevic

We are using Winform as frontend, and aspnetcore/corewcf as backend, they are talking through wcf/corewcf. And we run the backend in linux server/container, and we want to host click-once server in linux too, which is easy, since it only serve a bunch of static files. And we want the mage process of the winform apps to happen on the linux server too, there will be some client side configuration file changes in different environment, thus the manifest will change accordingly. We can't generate the manifest ahead, since there will be some unknown environments(our customer). We prepared a script, which will do the mage automatically when we do application upgrade. This worked in windows server/container. So it would be nice if this tool can work in linux, this way one linux server/container will do.

hatzhang avatar Feb 19 '24 08:02 hatzhang

Here is the fix for the directory not found issue, however, this just pushes the issue down the line to Issue #125

image

jwwise-best avatar Apr 03 '24 17:04 jwwise-best

Thanks @jwwise-best. It is true that dotnet-mage has limited usage on Linux due to lack of signing support.

However, we welcome all PRs that can improve this codebase.

NikolaMilosavljevic avatar Apr 03 '24 17:04 NikolaMilosavljevic

I have a branch with the changeset to address this issue. Can you add me as a contributor so that I can submit a PR?

jwwise-best avatar Apr 03 '24 17:04 jwwise-best

I have a branch with the changeset to address this issue. Can you add me as a contributor so that I can submit a PR?

Everyone with read access should be able to submit a PR. Contributor access is not required.

MichaelSimons avatar Apr 03 '24 18:04 MichaelSimons