WPF项目编译时出现“Program '*' does not contain a static 'Main' method suitable for an entry point”错误,   解决方法:    自定义一个静态入口     然后 项目属性 -> 应用程序 ->启动对象 ,选择新创建的这个静态类    示例代码: public static class Program { [System.STAThreadAttribute()] [System.Diagnostics.Debu…
WPF error: does not contain a static 'Main' method suitable for an entry point does not contain a static 'Main' method suitable for an entry point 在Visual Studio中删除App.xaml从别的位置拷贝一个后会出现的编译错误,原因在于 默认的App.xaml在属性页中的Build…
Installing Wine 1.5: configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries(转载) 转自: http://askubuntu.com/questions/123273/installing-wine-1-5-configure-error-cannot-build-a-32-bit-program-you-need-t ./config…
dotnet restore 源代码:https://github.com/dotnet/cli/tree/rel/1.0.0/src/dotnet/commands/dotnet-restore 入口:https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-restore/Program.cs 作用:主要是寻找当前目录下的项目文件(project.json),然后利用NuGet库还原整个项目的依赖库,然后遍…
这里特别蛋疼的一件事是官方英文文档和中文文档命令参数略有不同 中文文档: //通用平台下安装指定的软件包: sudo yum install git gcc make pcre-devel php-devel //编译 git clone git://github.com/phalcon/cphalcon.git cd cphalcon/build sudo ./install //添加扩展到你的php配置文件 #Centos/RedHat: Add a file called phalcon.…
起因 安装Phalcon可以参考github上面的README.md 下面是我在阿里云ECS服务器上面执行命令的过程: # 安装依赖 sudo yum install php-devel pcre-devel gcc make re2c # 编译安装 git clone git://github.com/phalcon/cphalcon.git cd cphalcon/build # 这里最好指定一下php的具体路径,以免有多个php版本的时候安装到别的版本里面去了 # 可以用php打印phpi…
本例是在用VS2008打开项目是报错 未找到C:\Program Files\MSBuild\Microsoft\VisualStudio\V10.0 In the last article Build and deploy web application project using NANT script i discusses how various options and configurations can be set on command line to overrride sett…
在安装lxml时出现如下错误 gcc: internal compiler error: Killed (program cc1) 通过查看dmesg发现下述错误信息[2517343.500178] Out of memory: Kill process 5051 (cc1) score 632 or sacrifice child[2517343.501833] Killed process 5051 (cc1) total-vm:471664kB, anon-rss:326648kB, fi…
maven在build构建时,加载资源文件时需要配置资源文件插件: 1,在pom.xml文件中加入 <build> <finalName>${project.build.target.file.name}</finalName> <directory>${basedir}/target</directory>  <sourceDirectory>${basedir}/src/main/java</sourceDirectory&…
rpm build error error message:/usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/RPMS find: invalid predicate `' error: Bad exit status from /var/tmp/rpm-tmp.86590 (%install) The error appears to be caused by an empty RPM_BUILD_ROOT variable. Below…