小编Eas*_*all的帖子

Xamarin.Forms Android绑定库错误

我目前正面临有关Xamarin Forms Android Bindings库的问题.我在我的绑定项目中放了一个.jar库,我意识到库没有完全加载.

当我构建我的绑定项目时,它正确编译,但我的输出中仍然有一些警告.

1> BINDINGSGENERATOR:警告BG8102:类Java.Util.LinkedHashMap具有未知的基类型Java.Util.HashMap.

1> BINDINGSGENERATOR:警告BG8103:类Com.MyParams具有无效的基本类型java.util.LinkedHashMap.

1> BINDINGSGENERATOR:警告BG8701:托管类型Com.TagOp中方法GetParams中的返回类型com.MyParams无效.

1> BINDINGSGENERATOR:警告BG8801:托管类型Com.TagOp中方法TagOps中的参数类型com.MyParams无效.

1> BINDINGSGENERATOR:警告BG8801:托管类型Com.TagOp中方法TagOps中的参数类型com.MyParams无效.

1> BINDINGSGENERATOR:警告BG8801:托管类型Com.Tag中方法TagPage中的参数类型com.MyParams无效.

在我的Android代码中,我无法使用Com.MyParams该类,因为它没有加载.

自从为Visual Studio 2017更新Xamarin以来会出现此问题.

你有任何线索来解决这个问题吗?提前致谢.

binding xamarin.android xamarin xamarin.forms

7
推荐指数
1
解决办法
630
查看次数

Visual Studio 2017解决方案组文件

我最近将我的Visual Studio 2017更新到版本15.3,我意识到我的文件不再分组了.

在更新之前,我有这样的事情:

    • file.component.ts
      • file.component.html
      • file.component.css

现在,自15.3视觉工作室更新后,我有这样的事情:

    • file.component.ts
    • file.component.html
    • file.component.css

Visual Studio上是否有任何配置可以恢复第一个示例行为?

谢谢.

visual-studio visual-studio-2017

6
推荐指数
0
解决办法
213
查看次数

Angular 6-共享模块中的自定义管道未导出

我的Angular架构由3个模块组成。

  • AppModule (应用预置和逻辑所在的位置)
  • CoreModule (包含我的服务以访问API)
  • SharedModule (包含我的模型,管道,指令等...)

我想在我添加一个新的管道SharedModule,所以我创建它,然后将其添加到declarationsexports该领域SharedModuleNgModule装饰。

然后,在中AppModule导入,SharedModule并且应该可以访问我的管道。但是,那件事,我做不到。相反,我有以下错误:

未捕获的错误:模板解析错误:找不到管道“ rankingposition”

有代码:

rankposition.pipe.ts

import { Pipe, PipeTransform } from "@angular/core";

@Pipe({ name: 'rankingposition' })
export class RankingPositionPipe implements PipeTransform {
    transform(value: any, ...args: any[]) {
        // Do stuff    
    }
}
Run Code Online (Sandbox Code Playgroud)

shared.module.ts

import { NgModule } from "@angular/core";
import { RankingPositionPipe } from "@app/shared/pipes/ranking-position.pipe";

@NgModule({
    declarations: [RankingPositionPipe],
    exports: [RankingPositionPipe]
})
export class SharedModule {}
Run Code Online (Sandbox Code Playgroud)

app.module.ts

import { …
Run Code Online (Sandbox Code Playgroud)

typescript angular-pipe ng-modules angular

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