¿Por qué me aparece el error CS0246: no se pudo encontrar el tipo o el nombre del espacio de nombres?
estoy usandoGruñido C # API para enviar notificaciones a gruñido.
Ahora he guardado el contenido de la url anterior en un archivo llamadoSnarlNetwork.cs
y el contenido de mitest.cs
archivo son:
using SnarlNetworkProtocol;
using System;
class test
{
public static void Main(String[] args)
{
SNP snarl_object = new SNP();
string hostname = "localhost";
string hostport = "9887";
string appName = "Spotify";
bool val = snarl_object.register(hostname, hostport, appName);
if (val == true)
{
string title = "hello";
string message = "world";
string timeout = "5";
bool newval = snarl_object.notify(hostname, hostport, appName, null, title, message, timeout);
if (newval == true)
{
Console.WriteLine("sucessfull");
}
}
}
}
Ahora cuando intento compilar mi archivo test.cs usandocsc test.cs
Obtuve el siguiente error:
C:\Users\Noob\csharp>csc test.cs
Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.4926
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.
test.cs(1,7): error CS0246: The type or namespace name 'SnarlNetworkProtocol' could not be found (are you missing a using directive or an assembly reference?)
Entonces, ¿qué estoy haciendo mal aquí porque, según mi opinión, no me falta nada?using directive
.