我正在尝试使用bash改善构建自动化。我的shell脚本还有很多不足之处,但从本质上讲,我希望能够使用bash shell脚本来运行MSBuild.exe
某些构建开关中的传递。所以myscript.sh
有一行:
C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe /maxcpucount:8 /verbosity:q /p:Configuration=Debug C:/Myfolder/Main.sln
Run Code Online (Sandbox Code Playgroud)
由于导致失败/p:Configuration=Debug
。我可以肯定地说,没有工作就可以执行MSBuild.exe
。
有人可以帮忙吗?
我有一个类有一个工厂方法和一个受保护的构造函数定义为采取一些参数.
public class MyClass
{
protected void MyClass(int agr1, int arg2)
{
//set private backing fields for public readonly properties
}
public static MyClass From(int arg1, int arg2)
{
return new MyClass(arg1, arg2);
}
}
Run Code Online (Sandbox Code Playgroud)
然而,当我使用typeof(MyClass).GetConstructors(BindingFlags.NonPublic)
返回的数组时,其中包含零项.有谁看到我做错了什么?
谢谢