Ir para conteúdo

Featured Replies

Postado

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.

Postado

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)

Postado
  • Autor

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 +

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

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo