小编vkl*_*vet的帖子

使用包含空白路径的args启动进程

我需要从一个PowerShell脚本启动一个进程并传递这样的参数:-a -s f1d:\ some directory\with path\file.iss中的空白来做到这一点,我写了下面的代码:

$process = [System.Diagnostics.Process]::Start("$setupFilePath", '-a -s -f1"d:\some directory\with blanks in a path\fileVCCS.iss"') 
$process.WaitForExit()
Run Code Online (Sandbox Code Playgroud)

结果进程启动但最后一个参数:-f1d:\ some directory\with path\file.iss中的空格未正确传递.请帮忙

powershell command-line command-line-arguments

13
推荐指数
3
解决办法
5万
查看次数

在Lambpatcher.Invoke()中使用lambda表达式作为参数

我有这样的问题:有一些方法

private List<int> GetStatusList()
        {
            return (List<int>)GetValue(getSpecifiedDebtStatusesProperty);
        }
Run Code Online (Sandbox Code Playgroud)

在主线程中调用它 - 我使用

`delegate List<int> ReturnStatusHandler();` ...

this.Dispatcher.Invoke(new ReturnStatusHandler(GetStatusList));
Run Code Online (Sandbox Code Playgroud)

我怎么能这样做,使用lambda表达式而不是自定义委托和方法?

lambda expression dispatcher c#-4.0

8
推荐指数
2
解决办法
5954
查看次数

Xamarin studio for windows问题:框架未安装.NETPortable配置文件136

我想使用xamarin studio for windows开发我的应用程序的Android版本.以前我在Mac上使用它.问题是当我在Windows机器上打开解决方案时,由于引用的可移植子集的问题,所有可移植项目都无法构建."框架未安装.NETPortable配置文件136"显示在引用trey中.安装了以下工具:Mono for Windows 3.2.3; MDK 3.4; Xamarin.Android 4.12.4; 适用于VS 2010的PortableLibraryTools.

portable-class-library xamarin xamarin-studio

2
推荐指数
1
解决办法
1004
查看次数