Ir para conteúdo
  • Cadastre-se

Posts Recomendados

Quando tento compilar ou usar o Debug, ele da os seguintes erros:

The referenced assembly "TibiaAPI" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.

Namespace or type specified in the Imports 'Tibia' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Namespace or type specified in the Imports 'Tibia.Util' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Namespace or type specified in the Imports 'Tibia.Objects' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Namespace or type specified in the Imports 'Tibia.Constants' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Type 'Client' is not defined.

Type 'Player' is not defined.

'Client' is not declared. It may be inaccessible due to its protection level.

Namespace or type specified in the Imports 'Tibia' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Namespace or type specified in the Imports 'Tibia.Util' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Namespace or type specified in the Imports 'Tibia.Objects' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Namespace or type specified in the Imports 'Tibia.Constants' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.

Type 'Client' is not defined.

Type 'Player' is not defined.

Eu baixei o Tibia API 2.9.10, fui em Add Reference e selecionei ele. Segui o tutorial do Renato Ribeiro certinho, mas está dando esses erros. Para ver os códigos clique aqui.

Obrigado.

Link para o post
Compartilhar em outros sites

Verifique a referência do Framework que você está usando no seu projeto (Menu "Project" -> "Nomedoprojeto Proprieties" -> Aba "Application" -> Target framework:). Veja se já está selecionado .NET Framework 4 (ou semelhante)

Link para o post
Compartilhar em outros sites

Aqui foi um pouco diferente, tive que ir na aba Compile -> Advanced Compile Options, e lá tive de trocar de NET Framework 4 (Client) para Net Framework 4.

Obrigado flamer, pela ajuda.

REP +

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo