打开本地浏览器,并在本地Docker容器中运行C#aplication
我有一个运行c#的应用程序的应用程序,它会不时打开本地浏览器,但是我想将应用程序放入docker容器中,并且当应用程序运行时,浏览器不会从我的计算机上打开。这是我的代码
var url = "url to open";
var psi = new ProcessStartInfo();
psi.FileName = uri;
psi.UseShellExecute = true;
Process.Start(psi);
I have an application running net core 6 with c#, it is opening the local browser from time to time, but I want to put the application in the docker container, and there, when the application runs, the browser does not open from my machine. here is my code
var url = "url to open";
var psi = new ProcessStartInfo();
psi.FileName = uri;
psi.UseShellExecute = true;
Process.Start(psi);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论