我有一个包含16个C#项目的Visual Studio解决方案.我还有一个单独的build.proj
文件,其中包含三个<Target>
s:
Build
,其中包含<MSBuild>
对*.sln 的引用Package
,包含<MakeDir>
和<CopyCommands>
将生成的DLL/EXE文件以及各种数据文件复制到$(StagePath)
目录.Deploy
,将文件从阶段路径复制到部署路径.我能够运行命令xbuild /t:Deploy build.proj
来构建*.sln并将其文件复制到适当的位置,直到最近IT部门决定将我的Documents文件夹移动到网络驱动器上.
现在,每当我尝试运行这个xbuild命令时,我都会遇到类似下面的错误.(引用是同一解决方案中的一个依赖项.)
error CS0234: The type or namespace name `Util' does not exist in the namespace `Contoso'. Are you missing an assembly reference?
Run Code Online (Sandbox Code Playgroud)
但每当我在Xamarin Studio的同一个*.sln上进行"Build All"时,我会得到一个成功的构建,其中包含0个错误和0个警告.那么,如果Xamarin Studio可以,xbuild为什么不能找到这些汇编参考?
使用Visual Studio 2015 update 2获取Xamarin应用程序解决方案,包括Xamarin.Forms(PCL),Xamarin.Android和Xamarin.iOS项目.
在今天将Xamarin.Forms从2.1.0.6529升级到2.2.0.31之后,VisualStudio中的Xamarin.Android应用程序的调试版本始终失败,并显示以下消息:
Xamarin.Android.Common.targets(1853,3): error XA5213: java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -jar
Run Code Online (Sandbox Code Playgroud)
我当然乐于接受增加的建议$(JavaMaximumHeapSize)
,它看起来像$()
语法的MSBuild属性,但我不确定在哪里设置它.
JavaMaximumHeapSize
在Visual Studio中为Xamarin.Android构建指定的方式或位置?
尝试构建运行http服务器的go程序的静态链接版本,并使用net包来确定和解析传入请求的IP地址.使用此构建语句:
CGO_ENABLED=0 go install -a -ldflags '-s' .
Run Code Online (Sandbox Code Playgroud)
这个序言在我的程序中:
package main
import (
"encoding/json"
"errors"
"fmt"
"log"
"net"
"net/http"
"path/filepath"
"strings"
"golang.org/x/blog/content/context/userip"
"github.com/oschwald/maxminddb-golang"
)
Run Code Online (Sandbox Code Playgroud)
这与build 1.3一起工作,生成一个静态链接的程序,但是没有使用go 1.4.2.构建成功,但程序没有静态链接.
有谁知道发生了什么?