我们刚刚启动了一个新的(我们的第一个)Silverlight项目,我们希望使用MVVM制作后台Silverlight应用程序.我们的应用程序需要通过某种菜单UI进行导航.
我一直在网上寻找各种框架(Galasoft MVVM Light Toolkit/Silverlight.FX/Prism)以帮助构建MVVM应用程序,但我发现很难找出最适合我们需求的框架.
有没有人有任何经验/技巧可供选择哪个更大的应用程序,其中包含许多视图和导航.
此外,导航应用程序是获取"框架"应用程序(框架内导航)的最佳方式还是有更好的方法?
我想在使用 WSL2 的 vscode 中使用类似oh-my-bash 的东西。但是根据文档:
在 WSL 中启动 VS Code Remote 时,不会运行任何 shell 启动脚本。这样做是为了避免针对 shell 调整的启动脚本出现问题。如果您想运行其他命令或修改环境,可以在设置脚本中完成
~/.vscode-server/server-env-setup(内部人士~/.vscode-server-insiders/server-env-setup:)。如果存在,则在服务器启动之前处理该脚本。
我添加了一个~/.vscode-server/server-env-setup,根据日志发现并执行了它,但我的 Linux 技能非常基础,我不知道如何安装我的配置文件。我努力了
bash ~/.profile
Run Code Online (Sandbox Code Playgroud)
……但这似乎没有任何作用。我也尝试过
#!/bin/bash
source ~/.profile
Run Code Online (Sandbox Code Playgroud)
这给了我一个错误/mnt/c/Users/cber/.vscode/extensions/ms-vscode-remote.remote-wsl-0.40.3/scripts/wslServer.sh: 3: /home/cber/.vscode-server/server-env-setup: source: not found
更新
下面回答了如何获取配置文件的问题,但我在 WSL2 上的 vs-code 中使用powerline-go 的问题仍然存在,但我将其移至一个新问题以结束此问题。
我目前正在尝试NServiceBus,它在我的系统上运行良好.现在我想在我们的一个内部服务器上安装它,以记录从头开始设置nservicebus需要做什么.我目前的策略是调用NServiceBus.Host /installInfrastructure哪个似乎有效,它报告安装了RavenDB和Msmq和DTC.但是,当我尝试运行我的示例应用程序(作为管理员)时,我得到一个例外:
2012-12-07 15:13:43,599 [1] FATAL NServiceBus.Hosting.GenericHost [(null)] <(null)> - System.InvalidOperationException: There is a problem with the input queue: FormatName:DIRECT=OS:dev\private$\els.bus.els.service. See the enclosed exception for details. ---> System.Messaging.MessageQueueException: The queue does not exist or you do not have sufficient permissions to perform the operation.
at System.Messaging.MessageQueue.MQCacheableInfo.get_Transactional()
at System.Messaging.MessageQueue.get_Transactional()
at NServiceBus.Unicast.Queuing.Msmq.MsmqMessageReceiver.QueueIsTransactional()
--- End of inner exception stack trace ---
at NServiceBus.Unicast.Queuing.Msmq.MsmqMessageReceiver.QueueIsTransactional()
at NServiceBus.Unicast.Queuing.Msmq.MsmqMessageReceiver.Init(Address address, Boolean transactional)
at NServiceBus.Unicast.Transport.Transactional.TransactionalTransport.NServiceBus.Unicast.Transport.ITransport.Start(Address address)
at NServiceBus.Unicast.UnicastBus.NServiceBus.IStartableBus.Start(Action startupAction)
at NServiceBus.Hosting.GenericHost.Start()
Run Code Online (Sandbox Code Playgroud)
有什么我想念的吗?