小编Khi*_*uan的帖子

在Visual Studio上运行Xamarin Forms iOS的GetBuiltProjectOutputRecursive错误

看起来我在Visual Studio上运行Xamarin.iOS时遇到了这个奇怪的问题.这发生在我更新到最新的Xamarin(今天)之后.

我已经连接到我的Mac了.我试过谷歌,没有回答......

"错误MSB4057:项目中不存在目标"GetBuiltProjectOutputRecursive"

问题是什么?在更新之前,它工作了!

1>------ Build started: Project: GTS.Mobile.iOS, Configuration: Debug iPhoneSimulator ------
1>  Generated session id: 04dbf5285bd918e0f3e1fc41e6f65f8c
1>  Generated build app name: GTSMobileiOS
1>  Connecting to Mac server 192.168.9.164...
1>C:\Users\kkh\Computas\CargoNet\GTS.Mobile\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets(243,5): warning : All projects referencing GTS.Mobile.csproj must install nuget package Microsoft.Bcl.Build. For more information, see http://go.microsoft.com/fwlink/?LinkID=317569.
1>  Consider app.config remapping of assembly "System.Runtime, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "1.5.11.0" [] to Version "4.0.0.0" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Facades\System.Runtime.dll] to solve conflict and get rid of warning.
1>  Consider app.config remapping …
Run Code Online (Sandbox Code Playgroud)

c# mono visual-studio xamarin xamarin.forms

13
推荐指数
1
解决办法
1907
查看次数

绑定XAML中Itemscontrol之外的Property

我试图绑定一个在Itemscontrol之外的Property.然而,这似乎不起作用.

似乎在ItemsControl中,DataTemplate它指的是集合内部而不是它之外的内容.我已经尝试使用RelativeResource,并为ViewModel引用了AncestorType.

代码(VM):

public class Test {
  public string GetThis {get{return "123";} set{}}
  public List<string> IterateProperty {get; set;}
}
Run Code Online (Sandbox Code Playgroud)

XAML(查看):

<ItemsControl ItemsSource="{Binding Path=IterateProperty}">
  <ItemsControl.ItemTemplate>
    <DataTemplate>
      <TextBlock Text="I want to bind the string property GetThis!" />
Run Code Online (Sandbox Code Playgroud)

.net c# wpf xaml caliburn.micro

10
推荐指数
2
解决办法
4210
查看次数

龙目岛与IDEA 13:找不到符号

我尝试过在Intellij IDEA 13 Ultimate上使用Lombok.然而.当我使用特定注释时,我得到了所有应该可用的方法的着名错误"找不到符号",例如我用作注释的那些@Builder,@AllArgsConstructor@Data.

我已经设置了我的编译器以启用注释处理,我深入研究了它,但没有解决方法如何解决它.

任何建议或提示都会很好.

java intellij-idea lombok intellij-13

7
推荐指数
2
解决办法
8342
查看次数

build_android.sh Android NDK配置:错误:C编译器无法创建可执行文件

我从build_android.sh收到此错误:

./build_android.sh
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-androideabi-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-androideabi-gcc... /home/kkho/home/kkho/adt-bundle-linux-x86-20130917/android-ndk-9/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc --sysroot=/home/kkho/home/kkho/adt-bundle-linux-x86-20130917/android-ndk-9/platforms/android-8/arch-arm/
checking whether the C compiler works... no …
Run Code Online (Sandbox Code Playgroud)

android android-ndk

5
推荐指数
0
解决办法
2010
查看次数

为什么ClassCastException但不是编译错误?

为什么我在下面的代码中没有出现编译错误?我得到一个ClassCastException有点混乱的东西.是因为它们有关系吗?

class Ink {}

Interface Printable {}
class ColorInk extends Ink implements Printable {}

class BlackInk extends Ink {}


class TwistInTaleCasting {
   public static void main(String args[]) {
       Printable printable = null;
       BlackInk blackInk = new BlackInk();
       printable = (Printable)blackInk;
   }
}
Run Code Online (Sandbox Code Playgroud)

java inheritance classcastexception

5
推荐指数
1
解决办法
715
查看次数

上传文件不适用于Android中的TransferUtility Amazon S3

嗨,我试图将虚拟文本文件上传到Amazon S3.但它不起作用,但日志生成了一个id.当我刷新Amazon S3存储桶仪表板时.该文件尚未转移.

public class AmazonService extends AsyncTask<String, Boolean, Boolean> {
    Context mContext;
    public AmazonService(Context context) {
        mContext = context;
    }

    @Override
    protected Boolean doInBackground(String... params) {
        CognitoCachingCredentialsProvider credentialsProvider = new CognitoCachingCredentialsProvider(
                mContext,
                "us-east-1:ec361bf5-52b9-477b-9a68-7e2b5f70de07", // Identity Pool ID
                Regions.US_EAST_1 // Region
        );
        AmazonS3Client client =
                new AmazonS3Client(credentialsProvider);
        TransferUtility transferUtility = new TransferUtility(client, mContext);
        TransferObserver observer = transferUtility.upload("elevator-app","Video/",new File("dummy.txt") );
        Log.d("Test", observer.getId() + " " + observer.getBytesTransferred());

        return true;
    }
}
Run Code Online (Sandbox Code Playgroud)

// AndroidManifest.xml中需要的服务

<service android:name= "com.amazonaws.mobileconnectors.s3.transferutility.TransferService" android:enabled="true" />
Run Code Online (Sandbox Code Playgroud)

media android amazon-s3 transfer

5
推荐指数
1
解决办法
2581
查看次数

Xamarin.Forms布局等同于FrameLayout

只是一个关于Xamarin.Forms中与FrameLayout(Android)等价的问题的初学者问题?

xaml android android-layout xamarin xamarin.forms

5
推荐指数
1
解决办法
2134
查看次数

在字符串C#中提取日期?

提取字符串中给出的日期的好方法是什么?

例如:

string block = "This should try to get a date 2005-10-26"; //TODO! I WANT THE DATE

对我有什么好的建议吗?

正则表达式可能吗?

c# regex windows string date

4
推荐指数
1
解决办法
2786
查看次数

扩展时在Wpf中更改ToggleButton for Expander

我想在崩溃和解体时更改扩展器的切换器.这意味着,我想放置一个图像.有没有更简单的方法在XAML中执行此操作而不是构建ypur自己的扩展器模板?

.net c# wpf xaml wpf-controls

3
推荐指数
1
解决办法
2155
查看次数

我找不到System.Windows.Media命名空间

我似乎无法找到System.Windows.Media我的C#项目的参考.它根本不存在!

帮助和提示? 在此输入图像描述

c# dll assemblies visual-studio-2012

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