看起来我在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) 我试图绑定一个在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) 我尝试过在Intellij IDEA 13 Ultimate上使用Lombok.然而.当我使用特定注释时,我得到了所有应该可用的方法的着名错误"找不到符号",例如我用作注释的那些@Builder,@AllArgsConstructor和@Data.
我已经设置了我的编译器以启用注释处理,我深入研究了它,但没有解决方法如何解决它.
任何建议或提示都会很好.
我从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) 为什么我在下面的代码中没有出现编译错误?我得到一个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) 嗨,我试图将虚拟文本文件上传到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) 只是一个关于Xamarin.Forms中与FrameLayout(Android)等价的问题的初学者问题?
提取字符串中给出的日期的好方法是什么?
例如:
string block = "This should try to get a date 2005-10-26";
//TODO! I WANT THE DATE
对我有什么好的建议吗?
正则表达式可能吗?
我想在崩溃和解体时更改扩展器的切换器.这意味着,我想放置一个图像.有没有更简单的方法在XAML中执行此操作而不是构建ypur自己的扩展器模板?
我似乎无法找到System.Windows.Media我的C#项目的参考.它根本不存在!
帮助和提示?

c# ×5
android ×3
xaml ×3
.net ×2
java ×2
wpf ×2
xamarin ×2
amazon-s3 ×1
android-ndk ×1
assemblies ×1
date ×1
dll ×1
inheritance ×1
intellij-13 ×1
lombok ×1
media ×1
mono ×1
regex ×1
string ×1
transfer ×1
windows ×1
wpf-controls ×1